To confirm (now that I am at work), here's my settings: xwiki.authentication.ldap=1 xwiki.authentication.ldap.server=myadserver.myhost.com xwiki.authentication.ldap.check_level=1 xwiki.authentication.ldap.port=389 xwiki.authentication.ldap.base_DN=dc=myntdomain,dc=mlan xwiki.authentication.ldap.bind_DN=cn={0},cn=Users,dc=,myntdomain,dc=mlan xwiki.authentication.ldap.bind_pass={1} xwiki.authentication.ldap.UID_attr=sAMAccountName # Used to be "cn" xwiki.authentication.ldap.fields_mapping=name=cn,last_name=sn,first_name=givenName,fullname=displayName,mail=cn,ldap_dn=dn Regards, Brian. Neil Sedger <xwiki-users@mole y.org.uk> To [email protected] 08/09/2007 11:37 cc AM Subject [xwiki-users] Authenticating to Please respond to AD/LDAP xwiki-users@objec tweb.org Is the example AD configuration in the Wiki the right way to do things? My understanding is that the bind_DN and bind_pass are for setting the username and password XWiki will use to connect to the LDAP server in order to do a search, then the UID_attr field is searched for the username entered on the form. If that is correct then the bind_dn and bind_pass should either be hardcoded to a special AD user with restricted privileges, or left blank to bind anonymously. (I see no mention of anonymous binding?) For the first of these XWiki connects to AD ok but then seems to 'authenticate OK' whatever username/password I enter on the form even if the user does not exist in AD at all. Is this a bug? I can't seem to get anonymous binding to work - if I leave bind_dn and bind_pass empty or comment out the entries entirely I always get the 'LDAP Bind failed with Exception Invalid Credentials' error message. My LDAP server does allow anonymous binding - I've tested this in LDAP Browser. Cheers Neil -- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws ----------------------------------------- CONFIDENTIALITY STATEMENT: This e-mail transmission contains information that is intended to be confidential. It is intended only for the addressee named above. If you receive this e-mail in error, please do not read, copy, or disseminate it. If you are not the intended recipient, any disclosure, copying, distribution or use of the contents of this information is prohibited. Please reply to the message immediately by informing the sender that the message was misdirected. After replying, please erase it from your computer system. Your assistance in correcting this error is appreciated.