On Tue, 2004-05-11 at 10:14, Kuldeep Singh Tomar wrote:
> Hi Ray,
> 
> Thanks for your response. I was trying this script also but no success.
> 
> I was using following values:
> 
> $ldap[ʽuserʼ] = ʽtomarʼ;
> $ldap[ʽpassʼ] = ʽpasswdʼ;
> $ldap[ʽhostʼ] = ʽdc02-del3.vc-del.vcustomer.comʼ;
> $ldap[ʽportʼ] = 389;
> $ldap[ʽdnʼ]   = ʽcnʼ.$ldap[ʽuserʼ].ʼ,ou=Department,o=Company Nameʼ;
> $ldap[ʽbaseʼ] = ʽʼ;
> 
> but still getting same error message:
> 
> Warning: ldap_bind():  Unable to bind to server: Can't contact LDAP 
> server in /usr/local/
> apache2/htdocs/test6.php on line 14

You need to make sure that the server is listening on the appropriate
port...from what I understand ads might not listen on 389 but on another
port.

> Do I need to do any specific change at ADS side or any extra parameter 
> in dn side. Had you done any change in ADS server?

Your dn does need to be different. You need to have the appropriate dn
for the user that is binding.

I did not connect directly to ads...i connected to exchange and that was
the middleware to ads. It was easier doing that then connecting to ads.

--
ray

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to