Hello I need some help to set up the LDAP user store for WSO2 ESB:
I have my ldap host: ldap://my.domain.ac.uk:389
the basedn dc=my,dc=domain,dc=ac,dc=uk
username password: Name Surname mypassword
I can’t figure out how to succesfully configure the user-mgt.xml file of the WSO2 ESB, I get “
LDAPUserStoreManager Carbon cannot function without an Admin Username
DefaultRealm Cannot create org.wso2.carbon.user.core.ldap.LDAPUserStoreManager . Error is : null“
my configuration for ldap is:
<UserStoreManager class="org.wso2.carbon.user.core.ldap.LDAPUserStoreManager">
<Property name="ReadOnly">true</Property>
<Property name="MaxUserNameListLength">100</Property>
<Property name="ConnectionURL">ldap://my.domain.ac.uk:389</Property>
<Property name="ConnectionName">cn=Name Surname,ou=Users,dc=my,dc=domain,dc=ac,dc=uk</Property>
<Property name="ConnectionPassword">mypassword</Property>
<Property name="UserSearchBase">ou=Users,dc=my,dc=domain,dc=ac,dc=uk</Property>
<Property name="UserNameListFilter">(objectClass=sAMAccountName)</Property>
<Property name="UserNameAttribute">uid</Property>
<Property name="ReadLDAPGroups">false</Property>
<Property name="GroupSearchBase">ou=Users,dc=my,dc=domain,dc=ac,dc=uk</Property>
<Property name="GroupNameListFilter">(objectClass=groupOfNames)</Property>
<Property name="GroupNameAttribute">uid</Property>
<Property name="MembershipAttribute">member</Property>
<Property name="UserRolesCacheEnabled">true</Property>
<Property name="ReplaceEscapeCharactersAtUserLogin">true</Property>
</UserStoreManager>
any suggestion?
thanks
In user-mgt.xml there’s following config element,
Make sure you have a user called admin in your LDAP. Or provide a username that exist in LDAP. HTH.