Public feed #601142

Mine

public text v1 · immutable
Raw Edit
·published 2007-07-03 10:05 UTC
rendered paste body
$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";
			}
	}

}