PHP LDAP Bind Authentication With Active Directory


<?php
$ldapserver 
'ldap://dc.name.domain/';
$ds=ldap_connect($ldapserver);
$r=ldap_bind($ds,$username."@your.domain",$password);    
?>
© 2011 Adam Gerson.