Subversion Repositories ALCASAR

Rev

Rev 658 | Rev 675 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 658 Rev 659
Line 286... Line 286...
286
echo $message;
286
echo $message;
287
$pos = strpos($ldap_server, "//");
287
$pos = strpos($ldap_server, "//");
288
if ($pos!==false){
288
if ($pos!==false){
289
	$new_ldap_server = explode("//",$ldap_server); //pour discriminer le host et le protocole dans la notation "ldap://192.168.182.10" ou "ldaps://monldap.monentreperise.com"
289
	$new_ldap_server = explode("//",$ldap_server); //pour discriminer le host et le protocole dans la notation "ldap://192.168.182.10" ou "ldaps://monldap.monentreperise.com"
290
} else {
290
} else {
291
	$new_ldap_server = $ldap_server.
291
	$new_ldap_server = $ldap_server;
292
}
292
}
293
if (($ldap == "ldap") && (function_exists('ldap_connect'))){
293
if (($ldap == "ldap") && (function_exists('ldap_connect'))){
294
	echo "<div align='center'><br>";	
294
	echo "<div align='center'><br>";	
295
	switch(ldap_test($new_ldap_server, $ldap_identity, $ldap_password)){
295
	switch(ldap_test($new_ldap_server, $ldap_identity, $ldap_password)){
296
		case -2:
296
		case -2: