I guess you have followed the guide here [1]; Have you changed the AdminUser in the user-mgt.xml configuration on the top, it has to be an existing user in the LDAP user store.
Thanks, Ruwan [1] - http://wso2.org/project/solutions/identity/3.0.0/docs/user-core/admin_guide.html#LDAP Víctor Álvarez wrote: > Hello, > > I've got this running config : > > <UserStoreManager > class="org.wso2.carbon.user.core.ldap.LDAPUserStoreManager"> > <Property name="ConnectionURL">xxxxxxxxx</Property> > <Property name="ConnectionName">cn=admin,dc=domain,dc=cat</Property> > <Property name="ConnectionPassword">yyyyyy</Property> > <Property name="UserSearchBase">dc=fje,dc=cat</Property> > <Property name="UserNameListFilter">(objectClass=inetOrgPerson)</Property> > <Property name="UserNameAttribute">cn</Property> > <Property name="ReadLDAPGroups">false</Property> > <Property name="GroupSearchBase">dc=domain,dc=cat</Property> > <Property name="GroupSearchFilter">(objectClass=groupOfNames)</Property> > <Property name="GroupNameAttribute">ou</Property> > <Property name="MembershipAttribute">member</Property> > </UserStoreManager> > > > the user admin is a securityObject on LDAP while standar users are > inerOrgPerson > > i would like to identify the users for a special attribute (mail) > > but if i try this configuration : > > <UserStoreManager > class="org.wso2.carbon.user.core.ldap.LDAPUserStoreManager"> > <Property name="ConnectionURL">xxxxxxxxx</Property> > <Property name="ConnectionName">cn=admin,dc=domain,dc=cat</Property> > <Property name="ConnectionPassword">yyyyyy</Property> > <Property name="UserSearchBase">dc=fje,dc=cat</Property> > <Property name="UserNameListFilter">(objectClass=inetOrgPerson)</Property> > <Property name="UserNameAttribute">mail</Property> > <Property name="ReadLDAPGroups">false</Property> > <Property name="GroupSearchBase">dc=domain,dc=cat</Property> > <Property name="GroupSearchFilter">(objectClass=groupOfNames)</Property> > <Property name="GroupNameAttribute">ou</Property> > <Property name="MembershipAttribute">member</Property> > </UserStoreManager> > > > i get the error : > > Carbon cannot function without an Admin Username > {org.wso2.carbon.user.core.ldap.LDAPUserStoreManager} > [2010-07-15 14:02:41,741] ERROR - Cannot create > org.wso2.carbon.user.core.ldap.LDAPUserStoreManager . Error is : null > {org.wso2.carbon.user.core.common.Defa > ultRealm} > java.lang.reflect.InvocationTargetException > at > sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) > at > sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) > at > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) > at java.lang.reflect.Constructor.newInstance(Unknown Source) > at > org.wso2.carbon.user.core.common.DefaultRealm.createObjectWithOptions(DefaultRealm.java:149) > at > org.wso2.carbon.user.core.common.DefaultRealm.initializeObjects(DefaultRealm.java:102) > at > org.wso2.carbon.user.core.common.DefaultRealm.init(DefaultRealm.java:68) > at > org.wso2.carbon.user.core.common.DefaultRealmService.initializeRealm(DefaultRealmService.java:185) > at > org.wso2.carbon.user.core.common.DefaultRealmService.<init>(DefaultRealmService.java:89) > at > org.wso2.carbon.user.core.internal.Activator.startDeploy(Activator.java:28) > > > > Is not possible to identify admin user and standard users without same > attribute name? Carbon is trying to user the UserNameAttribute on the > LDAP connection? > > Thanks in advance > > -- > Víctor Álvarez > Incoming IT www.incomingIT.com <http://www.incomingIT.com> > www.twitter.com/incomingIT <http://www.twitter.com/incomingIT> > Escribiendo en y sobre Accesibilidad Web: > http://accesibilidad.blogspot.com > > > ------------------------------------------------------------------------ > > _______________________________________________ > Carbon-dev mailing list > Carbon-dev@wso2.org > https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev > -- Ruwan Linton Software Architect & Product Manager, WSO2 ESB; http://wso2.org/esb WSO2 Inc.; http://wso2.com Lean . Enterprise . Middleware phone: +1 408 754 7388 ext 51789 email: ru...@wso2.com; cell: +94 77 341 3097 blog: http://blog.ruwan.org linkedin: http://www.linkedin.com/in/ruwanlinton tweet: http://twitter.com/ruwanlinton _______________________________________________ Carbon-dev mailing list Carbon-dev@wso2.org https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev