Hello, I've read previous messages on the list concerning LDAP connection, but i've found nothing that matches my problem. I try to connect to a LDAP server.
My problem is that in order to access the LDAP server (even for just browsing it) i need to give the server a user AND a password. (when i access LDAP throught a client such as LDAP Browser, i have to give a User DN and a password). Does the users.ldap.properties file allow this kind of authentification ? or is it only possible to use public login ? I've modified the users.ldap.properties like this: --------------------------------------------------------------------------------------------------------------- # Configuration file for e-pfl project users.ldap.context.factory = com.sun.jndi.ldap.LdapCtxFactory users.ldap.url = ldap://10.33.13.169:389/ users.ldap.authentification.mode = simple users.ldap.public.bind.dn = DC=AIX-WINDOWS2000,DC=com # if you need to login to do public browsing of the directory, uncomment the following line and enter the password. users.ldap.public.bind.password= SQLI1 # the following value will be used as the user key, if it's not found the user will not be used ! users.ldap.uid.search.attribute = sn users.ldap.uid.search.name = OU=Users, OU=ZooTechnie, DC=AIX-WINDOWS2000,DC=com users.ldap.dn.identifier.attribute = cn users.ldap.search.countlimit = 100 # the following defines the attributes to use for wildcard search such as *=*test* users.ldap.search.wildcards.attributes = ou, cn, o, c, mail, uid, uniqueIdentifier, givenName, sn, dn # Map attribute, that indicate which LDAP attribute to map to Jahia standard properties # Make sure you comment out the ones you are not using, especially if the LDAP # repository contains same names attributes. If you don't searching users will # most probably not work correctly. users.ldap.username.attribute.map = sn users.ldap.firstname.attribute.map = givenName users.ldap.lastname.attribute.map = cn #users.ldap.email.attribute.map = mail users.ldap.organization.attribute.map = ou --------------------------------------------------------------------------------------------------------------- The debug log shows this error when, in the Administration menu, i try to retrieve the list of users of the LDAP server: 144672 [Thread-25] DEBUG - started 144672 [Thread-25] DEBUG - started 144672 [Thread-25] DEBUG - Attempting connection to LDAP repository on ldap://10.33.13.169:389/... 144672 [Thread-25] DEBUG - Using authentification mode to connect to public dir... 144672 [Thread-25] WARN - javax.naming.AuthenticationException: [LDAP: error code 49 - 80090308: LdapErr: DSID-0C09030B, comment: AcceptSecurityContext error,data 57, v893 ] 144672 [Thread-25] DEBUG - reconnect failed, returning null context... 144672 [Thread-25] WARN - javax.naming.NamingException: Context is null ! 144672 [Thread-25] DEBUG - Context passed is null, ignoring it... 144687 [Thread-25] DEBUG - Dispatching to servlet path = [/jsp/jahia/administration/admin.jsp] 144703 [Thread-25] DEBUG - Printing content output to real writer 144703 [Thread-25] DEBUG - Connection was already previously terminated, ignoring ! 144703 [Thread-25] DEBUG - --[ POST Request End ] -- Thanks a lot for your help !! Regards, Guillaume.
