authentication - Authenticating in PHP using LDAP through Active Directory -
i'm looking way authenticate users through ldap php (with active directory being provider). ideally, should able run on iis 7 (adldap on apache). had done similar, success?
- edit: i'd prefer library/class code that's ready go... it'd silly invent wheel when has done so.
importing whole library seems inefficient when need 2 lines of code...
$ldap = ldap_connect("ldap.example.com"); if ($bind = ldap_bind($ldap, $_post['username'], $_post['password'])) { // log them in! } else { // error message }
Comments
Post a Comment