Re: ADS authentication
| From: | Ray Hunter | Date: | Tue, 11 May 2004 16:44:01 +0000 |
| Subject: | Re: ADS authentication | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-185930@lists.php.net to get a copy of this message | ||
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