Active Directory on local server and intranet on external server.

Posted by cvack on Stack Overflow See other posts from Stack Overflow or by cvack
Published on 2010-05-06T11:11:44Z Indexed on 2010/05/06 11:18 UTC
Read the original article Hit count: 248

Filed under:
|
|
|
|

I have a local Active Directory server and a external web server where my intranet is located.

$ad = ldap_connect("ldap://ip-address") or die("Couldn't connect to AD!");
ldap_set_option($ad, LDAP_OPT_PROTOCOL_VERSION, 3);
$bd = ldap_bind( $ad, "user@domain", "password") or die("Can't bind to server.");

When I run this on a local web server it succesfully binds the connection. If I run the same code on the external server its unable to bind the ldap connection. Both port 389 and 636 is open on the AD server.

I've tried google for an answer, but all the tutorials is for Active Directory and webserver on the same server. Is this even possible?

© Stack Overflow or respective owner

Related posts about active-directory

Related posts about ldap