mhearse has asked for the wisdom of the Perl Monks concerning the following question:
<?php // using ldap bind $ldaprdn = 'username@mydomain.COM'; // ldap rdn or dn $ldappass = 'mypassword'; // associated password // connect to ldap server $ldapconn = ldap_connect("LDAP IP") or die("Could not connect to LDAP server."); if ($ldapconn) { // binding to ldap server $ldapbind = ldap_bind($ldapconn, $ldaprdn, $ldappass); // verify binding if ($ldapbind) { echo "LDAP bind successful..."; } else { echo "LDAP bind failed..."; } } ?>
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Simple LDAP auth for CGI
by Anonymous Monk on Dec 30, 2014 at 23:21 UTC | |
Re: Simple LDAP auth for CGI
by Anonymous Monk on Dec 30, 2014 at 23:18 UTC | |
A reply falls below the community's threshold of quality. You may see it by logging in. |