-
1. Log into GateIn with unregistered users (but identified by jaas login module)
mposolda Mar 31, 2011 12:57 PM (in response to felixb)Hello,
there is CustomMembershipLoginModule in GateIn portal, which can be uncommented in server/default/deploy/gatein.ear/META-INF/gatein-jboss-beans.xml and it can be used to add authenticated user into some group in portal database (for example member:/platform/users ). Source code of this login module is here http://anonsvn.jboss.org/repos/gatein/portal/trunk/component/identity/src/main/java/org/exoplatform/services/organization/idm/CustomMembershipLoginModule.java and some additional informations are here https://issues.jboss.org/browse/GTNPORTAL-1347 .
This login module can be used only to assign roles but it cannot be used to add user into portal database, so it's not so powerfull as SynchronizingLoginModule in JBoss Portal. You can try to implement your own login module if you want this feature and register new user. You can use Organization API, which is described in GateIn reference guide.
-
2. Log into GateIn with unregistered users (but identified by jaas login module)
felixb Apr 2, 2011 2:16 AM (in response to mposolda)Hello Marek,
Thanks for the answer! That's what I need.
Anyway, I'm running the 3.1 version of GateIn and I can't find this module either in the gatein-jboss-beans.xml or in the .jars. Is there classes to add to get those features?
-
3. Log into GateIn with unregistered users (but identified by jaas login module)
trong.tran Apr 2, 2011 5:17 AM (in response to felixb)1 of 1 people found this helpfulit was added to 3.2 version only which is still in development. You would take a look at :
1/ JIRA issue https://issues.jboss.org/browse/GTNPORTAL-1347
2/ the commit http://fisheye.jboss.org/changelog/gatein?cs=3597
-
4. Log into GateIn with unregistered users (but identified by jaas login module)
felixb Apr 4, 2011 4:14 AM (in response to trong.tran)Thx for the info Trong Tran!
-
5. Log into GateIn with unregistered users (but identified by jaas login module)
stevepamer Apr 7, 2011 8:17 AM (in response to felixb)Has anyone retrofit this to 3.1 GA?
I would like to try this as I am having trouble getting external LDAP users to work correctly.
I can log them in but the top banner (logout) is missing.
Has anyone posted a jar with the necessary items?
Thanks in Advance.
Steve
-
6. Log into GateIn with unregistered users (but identified by jaas login module)
mposolda Apr 7, 2011 4:22 PM (in response to stevepamer)Hello Steve,
This will be available in GateIn 3.2 and currently is in GateIn trunk. You can try to build GateIn from sources if you want this feature.
Another thing is that you can try to compile and package login module class by yourself. The easiest way (with maven) can be:
- Create your maven project and add only CustomMembershipLoginModule into this project
- Add some necessary dependencies. I think that list of dependencies mentioned here http://anonsvn.jboss.org/repos/gatein/portal/tags/3.1.0-GA/component/identity/pom.xml should work. It may be also good to use the same parent as mentioned pom.xml so that you will have correct versions of components.
- Build project with "mvn package" and put JAR into server/default/deploy/gatein.ear/lib/
- Add your login module into server/default/deploy/gatein.ear/META-INF.gatein-jboss-beans.xml
You can also try to build it without maven (simply with javac and manual adding of needed dependencies into classpath)
Good luck,
Marek