Problem
Portal is not able to recognize users registered in WebSphere Commerce
Solution
If you add a new object class with the value
dominoPerson
for a user registered in WebSphere Commerce in LDAP, it can be used to login. The problem could be fixed with the following steps.
- Delete wcsadmin from LDAP, on the LDAP machine
- Change wcsadmin's login id in the user registry table to its short form in the Websphere Commerce db, on the Websphere Commerce machine. For example if you were having cn=wcsadmin, and o=ibm, you should change it to wcsadmin.
- Change wcsportalldap.xml under
<commerce>/xml/ldap
directory as follows:<ldapsetting> <ldaprdn rdnName="cn" keyAttrName="logonId" keyObjName="UserRegistry"/> <ldapocs objClass="top;person;organizationalPerson;inetOrgPerson;dominoPerson"/> <ldapbase defaultBase="ou=people,o=ibm" searchBase="o=ibm"/> </ldapsetting>
and save the file. This instructs commerce server to add the newdominoPerson
object class while creating a new user in the LDAP server. - Restart Websphere Commerce
- Logon to adminconsole with wcsadmin.
- Add wcsadmin to the wpsadmins group on LDAP machine.