Public feed
#601142
$ldapconn = ldap_connect("10.10.99.4")
or die("Impossible de se connecter au serveur LDAP.");
function connexion_ldap(){
if ($ldapconn)
{
//Connexion au serveur LDAP
$ldapbind = ldap_bind($ldapconn, $ldaprdn, $ldappass);
// Identification
if ($ldapbind) {
echo "Connexion LDAP réussie ";
}
else
{
echo "Connexion LDAP échouée";
}
}
}