that looks good, i think you should better use "uid" instead of "cn"... btw, i mentioned some authentication-problem earlier in this list. take a look at the php-manual @ ldap_bind() for a workaround if the same thing is happening to you (testscript works fine, loginscript does not !?!)... You'll find a function there by edi@..... which might help you out >So should i give >$ldaprdn = 'cn=user,ou=Users,dc=mydomain,dc=com'; > sorry for that delayed reply... being at work now :) Björn Bartels -Development/IT-Services- ---------------------------------------------- dbusiness.de gmbh digital business & printing gmbh Greifswalder Str. 152 D-10409 Berlin Fon: [0.30] 4.21.19.95 Fax: [0.30] 4.21.19.74 www.dbusiness.de info@xxxxxxxxxxxx ftp://dbusiness.dyndns.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php