Dear Wiki user, You have subscribed to a wiki page or wiki category on "Portals Wiki" for change notification.
The "Jetspeed2/LDAP-howto" page has been changed by chau nguyen: http://wiki.apache.org/portals/Jetspeed2/LDAP-howto?action=diff&rev1=2&rev2=3 1. Giving default roles to a new user 1. Create a user in jetspeed already defined in ldap. + 1. Create a simple ldap configuration from the demo + 1. Setup a ldap server (using apacheDS) + + Install Apache Directory Studio. (Play around with this to get to know the + user interface) + Once you know. + + Create any LDAP server - prefer 1.5.5+. + right click & open configuration on the newly create LDAP server. + click on partition tab -> click add. + ID: (must be same as you saw in jetspeed.properties) sevenSeas + Suffix: o=sevenSeas. (CTRL-S to save) Start up the server. + + 1. Installing demo + Jetspeed-2.2.2 (Demo or Minimal) either one. + Apache Directory Studio 2.0 (this allow you to have apacheDS 1.5.3 up to + 2.0) which is good for different test setup. + + 1. Setup jetspeed ldap mode + To configure Jetspeed-2.2.2 to work with LDAP - + open spring-filter-key.properties (webapps/jetspeed/WEB-INF/conf) and + change: + spring.filter.key=portal to spring.filter.key=portal.ldap. (this will make + jetspeed connect to LDAP). + + 1. Setup jetspeed propertie file + + To verify the connection between jetspeed and LDAP: + open jetspeed.properties in (webapps/jetspeed/WEB-INF/conf) - + Default connection for jetspeed to LDAP is should be the same as already + configured in this section. + Make sure you understand what is here. + LDAP require: (1 organism, 3 organization unit) + o=sevenSeas (change this if you want to name something else, make sure it is + same when configured in LDAP). + ou=Users + ou=Roles + ou=Group + + Good. You are now done with setup jetspeed-2.2.2 to connect to LDAP + ApacheDS. + + + 1. Populating Ldap with sample users + + This must be done in order to load any sevenSeas.ldif file you have + successful or create your own without loading ldif file. + + Manually - + + Right click on Root DSE - select new Entry. + create from scratch - add object class: organization - RDN = o=sevenSeas + + right click on o=sevenSeas - add object class: OrganizationUnit - RDN = + ou=Groups + Repeat and create for RDN=ou=Roles, RDN=ou=Users. + + + + Make connection with LDAP server using (connection Tab in Apache Directory + Studio) + hostname: localhost + port:10389 + click on next: Bind DN: uid=admin,ou=system + bindpassword: secret. (finish) + open connection. + once connection is made. + Go to LDAP Browser - + + This must be done in order to load any sevenSeas.ldif file you have + successful or create your own without loading ldif file. + + Manually - + + Right click on Root DSE - select new Entry. + create from scratch - add object class: organization - RDN = o=sevenSeas + + right click on o=sevenSeas - add object class: OrganizationUnit - RDN = + ou=Groups + Repeat and create for RDN=ou=Roles, RDN=ou=Users. + + To get you started to login into Jetspeed. + right click on ou=Users in the LDAP Browser and create new entry - + objectclass is inetOrgPerson, sn=admin, + cn=admin,uid=admin,userPassword=password; + Note: Right click on the editor page to create "new attribute" for + userPassword and uid. + + Good you are now ready to do a test run. + + Start up Jetspeed. + Login with user: admin/password + + If you login successful, you good to go. + If you have problem, make sure LDAP setup is matching with what configured + in jetspeed.properties LDAP section. + + Other thought on adding a new user. simply just create new user in jetspeed + and you will able see it display on LDAP Server when you refresh. + + This new user won't be admin. + To make this user become admin, + + Go to LDAP Browser - right click on Roles - new entry - select object class: + extensibleObject & groupofNames. + cn=admin + member - cn=admin,ou=Roles,o=sevenSeas + member- uid=(newlycreateusername),ou=Users,o=sevenSeas +
