Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Actually, in a good way, you need to know your LDAP scheme, where and what lies. You may also need to initiate a TLS session. What is the ldap server itself? Microsoft AD or SLAPD?
Well, something like this for example (authorization):
$ldap = ldap_connect("ldap.example.com");
if ($bind = ldap_bind($ldap, $_POST['username'], $_POST['password'])) {
// log them in!
} else {
// error message
}
apt-cache search php ldap
php5-ldap - LDAP module for
php5
well then
sudo apt-get install php5-ldap
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question