correction d'une erreur dans dolibarr_ldap_unbind
This commit is contained in:
parent
e10f0fc675
commit
f5ae84848e
@ -1,5 +1,6 @@
|
|||||||
<?PHP
|
<?PHP
|
||||||
/* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
|
* Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -35,14 +36,36 @@ Function dolibarr_ldap_bind($ds)
|
|||||||
{
|
{
|
||||||
$ldapbind = ldap_bind($ds, LDAP_SERVER_DN, LDAP_SERVER_PASS);
|
$ldapbind = ldap_bind($ds, LDAP_SERVER_DN, LDAP_SERVER_PASS);
|
||||||
}
|
}
|
||||||
/* else
|
|
||||||
{
|
|
||||||
$ldapbind = ldap_bind($ds, $dn); -- connection anonyme desactivee
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
return $ldapbind;
|
return $ldapbind;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Function dolibarr_ldap_unbind($ds)
|
||||||
|
{
|
||||||
|
|
||||||
|
$ldapunbind = ldap_unbind($ds);
|
||||||
|
|
||||||
|
return $ldapunbind;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Function dolibarr_ldap_getversion($ds)
|
||||||
|
{
|
||||||
|
ldap_get_option($ds, LDAP_OPT_PROTOCOL_VERSION, $version);
|
||||||
|
|
||||||
|
return $version;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Function dolibarr_ldap_setversion($ds,$version)
|
||||||
|
{
|
||||||
|
$ldapsetversion = ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, $version)
|
||||||
|
|
||||||
|
return $ldapsetversion;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
Function ldap_unacc($str)
|
Function ldap_unacc($str)
|
||||||
{
|
{
|
||||||
$stu = ereg_replace("é","e",$str);
|
$stu = ereg_replace("é","e",$str);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user