Scenario: Sun One LDAP Version 5.2 is installed on the same machine as WebSphere Portal 6.1. To use a custom LDAP schema as I extended the inetOrgPerson object and created a vPerson Object.
Once the LDAP Server is installed, I created a suffix called dc=mycompany,dc=com and initialized this suffix. All these steps can be done using Sun One Administration Console.
After the LDAP installation, I created the following groups and users.
groups are created under ou=Groups,dc=mycompany,dc=com and
users are created under ou=People,dc=mycompany,dc=com branch.
Groups:
Once the LDAP Server is installed, I created a suffix called dc=mycompany,dc=com and initialized this suffix. All these steps can be done using Sun One Administration Console.
After the LDAP installation, I created the following groups and users.
groups are created under ou=Groups,dc=mycompany,dc=com and
users are created under ou=People,dc=mycompany,dc=com branch.
Groups:
- cn=wpsadmins,ou=groups,dc=mycompany,dc=com
- cn=wcmadmins,ou=groups,dc=mycompany,dc=com
- cn=wpsContentAdminstrators,ou=groups,dc=mycompany,dc=com
People:
- uid=wpsadmin,ou=people,dc=mycompany,dc=com
- uid=wcmadmin,ou=people,dc=mycompany,dc=com
You can also use the PortalUsers.ldif and ContentUsers.ldif files from Portal Installation setup. Modify these files and import into LDAP.Once the Sun one LDAP is setup properly, using an LDAP client I did test to bind as wpsadmin making sure it works.
With the portal 6.1 version, the security is enabled by default with file system Realm. Using the ConfigEngine the security can be switched to LDAP.
I did enable the Sun one LDAP in a VMM Stand Alone configuration.
Step 1: Edit the wp_security_sunone.properties file.
The above file is in
vPortalGroup =cn=wcmadmins,ou=groups,dc=mycompany,dc=com
Run ConfigEngine.bat validate-standalone-ldap -DWasPassword=secret -DparentProperties=
If the LDAP validation is successfull, the helper file values can be propagated to the wkplc.properties file, this can be done easily by running the above command with -DsaveParentProperties=true.
Run ConfigEngine.bat validate-standalone-ldap -DWasPassword=secret -DparentProperties=
Then apply the changes to Portal.
ConfigEngine.bat wp-modify-ldap-security -DWasPassword=secret
Stop and restart the server1 and WebSphere_Portal.