diff --git a/htdocs/adherents/ldap.php b/htdocs/adherents/ldap.php index 6bb412abd7e..47fb5c00a64 100644 --- a/htdocs/adherents/ldap.php +++ b/htdocs/adherents/ldap.php @@ -79,7 +79,7 @@ $result = restrictedArea($user, 'adherent', $object->id, '', '', 'socid', 'rowid if ($action == 'dolibarr2ldap') { $ldap = new Ldap(); - $result = $ldap->connect_bind(); + $result = $ldap->connectBind(); if ($result > 0) { $info = $object->_load_ldap_info(); @@ -183,7 +183,7 @@ print ''; // Lecture LDAP $ldap = new Ldap(); -$result = $ldap->connect_bind(); +$result = $ldap->connectBind(); if ($result > 0) { $info = $object->_load_ldap_info(); $dn = $object->_load_ldap_dn($info, 1); diff --git a/htdocs/adherents/type_ldap.php b/htdocs/adherents/type_ldap.php index 5e4e4822c72..bd202e5a21a 100644 --- a/htdocs/adherents/type_ldap.php +++ b/htdocs/adherents/type_ldap.php @@ -59,7 +59,7 @@ if ($reshook < 0) { if (empty($reshook)) { if ($action == 'dolibarr2ldap') { $ldap = new Ldap(); - $result = $ldap->connect_bind(); + $result = $ldap->connectBind(); if ($result > 0) { $object->listMembersForMemberType('', 1); @@ -149,7 +149,7 @@ print ''; // LDAP reading $ldap = new Ldap(); -$result = $ldap->connect_bind(); +$result = $ldap->connectBind(); if ($result > 0) { $info = $object->_load_ldap_info(); $dn = $object->_load_ldap_dn($info, 1); diff --git a/htdocs/admin/ldap.php b/htdocs/admin/ldap.php index 3a21d0ca030..cc1fd97fe62 100644 --- a/htdocs/admin/ldap.php +++ b/htdocs/admin/ldap.php @@ -279,7 +279,7 @@ if (function_exists("ldap_connect")) { if ($action == 'test') { $ldap = new Ldap(); // The parameters are provided and recovered through $conf - $result = $ldap->connect_bind(); + $result = $ldap->connectBind(); if ($result > 0) { // Test ldap connect and bind print img_picto('', 'info').' '; diff --git a/htdocs/admin/ldap_contacts.php b/htdocs/admin/ldap_contacts.php index d18a88340aa..c515f7a06d2 100644 --- a/htdocs/admin/ldap_contacts.php +++ b/htdocs/admin/ldap_contacts.php @@ -300,7 +300,7 @@ if (function_exists("ldap_connect")) { // Test synchro $ldap = new Ldap(); - $result = $ldap->connect_bind(); + $result = $ldap->connectBind(); if ($result > 0) { $info = $object->_load_ldap_info(); diff --git a/htdocs/admin/ldap_groups.php b/htdocs/admin/ldap_groups.php index c98341a6779..e746027b8e4 100644 --- a/htdocs/admin/ldap_groups.php +++ b/htdocs/admin/ldap_groups.php @@ -244,7 +244,7 @@ if (function_exists("ldap_connect")) { // Test synchro $ldap = new Ldap(); - $result = $ldap->connect_bind(); + $result = $ldap->connectBind(); if ($result > 0) { $info = $object->_load_ldap_info(); @@ -288,7 +288,7 @@ if (function_exists("ldap_connect")) { // Test synchro $ldap = new Ldap(); - $result = $ldap->connect_bind(); + $result = $ldap->connectBind(); if ($result > 0) { $required_fields = array( diff --git a/htdocs/admin/ldap_members.php b/htdocs/admin/ldap_members.php index 7e1828d6a69..c151bcae9f3 100644 --- a/htdocs/admin/ldap_members.php +++ b/htdocs/admin/ldap_members.php @@ -451,7 +451,7 @@ if (function_exists("ldap_connect")) { // Test synchro $ldap = new Ldap(); - $result = $ldap->connect_bind(); + $result = $ldap->connectBind(); if ($result > 0) { $info = $object->_load_ldap_info(); diff --git a/htdocs/admin/ldap_members_types.php b/htdocs/admin/ldap_members_types.php index 8e20ede24d9..11ffa2de41e 100644 --- a/htdocs/admin/ldap_members_types.php +++ b/htdocs/admin/ldap_members_types.php @@ -207,7 +207,7 @@ if (function_exists("ldap_connect")) { // Test synchro $ldap = new Ldap(); - $result = $ldap->connect_bind(); + $result = $ldap->connectBind(); if ($result > 0) { $info = $object->_load_ldap_info(); diff --git a/htdocs/admin/ldap_users.php b/htdocs/admin/ldap_users.php index aa71d0381b6..50b8656abed 100644 --- a/htdocs/admin/ldap_users.php +++ b/htdocs/admin/ldap_users.php @@ -423,7 +423,7 @@ if (function_exists("ldap_connect")) { // Test synchro $ldap = new Ldap(); - $result = $ldap->connect_bind(); + $result = $ldap->connectBind(); if ($result > 0) { $info = $object->_load_ldap_info(); @@ -466,7 +466,7 @@ if (function_exists("ldap_connect")) { // Test synchro $ldap = new Ldap(); - $result = $ldap->connect_bind(); + $result = $ldap->connectBind(); if ($result > 0) { $required_fields = array( diff --git a/htdocs/contact/ldap.php b/htdocs/contact/ldap.php index 0692572d396..4d74382ad4e 100644 --- a/htdocs/contact/ldap.php +++ b/htdocs/contact/ldap.php @@ -56,7 +56,7 @@ if ($action == 'dolibarr2ldap') { $db->begin(); $ldap = new Ldap(); - $result = $ldap->connect_bind(); + $result = $ldap->connectBind(); $info = $object->_load_ldap_info(); $dn = $object->_load_ldap_dn($info); @@ -161,7 +161,7 @@ print ''; // Lecture LDAP $ldap = new Ldap(); -$result = $ldap->connect_bind(); +$result = $ldap->connectBind(); if ($result > 0) { $info = $object->_load_ldap_info(); $dn = $object->_load_ldap_dn($info, 1); diff --git a/htdocs/core/class/ldap.class.php b/htdocs/core/class/ldap.class.php index ef048be0508..b477cb35632 100644 --- a/htdocs/core/class/ldap.class.php +++ b/htdocs/core/class/ldap.class.php @@ -303,7 +303,6 @@ class Ldap // Connection handling methods ------------------------------------------- - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps /** * Connect and bind * Use this->server, this->serverPort, this->ldapProtocolVersion, this->serverType, this->searchUser, this->searchPassword @@ -311,9 +310,8 @@ class Ldap * * @return int if KO: <0 || if bind anonymous: 1 || if bind auth: 2 */ - public function connect_bind() + public function connectBind() { - // phpcs:enable global $dolibarr_main_auth_ldap_debug; $connected = 0; diff --git a/htdocs/core/login/functions_ldap.php b/htdocs/core/login/functions_ldap.php index 9308acfd3df..fe6737eb6e1 100644 --- a/htdocs/core/login/functions_ldap.php +++ b/htdocs/core/login/functions_ldap.php @@ -112,7 +112,7 @@ function check_user_password_ldap($usertotest, $passwordtotest, $entitytotest) // If admin login or ldap auth filter provided // Code to get user in LDAP from an admin connection (may differ from user connection, done later) if ($ldapadminlogin || $dolibarr_main_auth_ldap_filter) { - $result = $ldap->connect_bind(); + $result = $ldap->connectBind(); if ($result > 0) { $resultFetchLdapUser = $ldap->fetch($usertotest, $userSearchFilter); //dol_syslog('functions_ldap::check_user_password_ldap resultFetchLdapUser='.$resultFetchLdapUser); @@ -148,7 +148,7 @@ function check_user_password_ldap($usertotest, $passwordtotest, $entitytotest) // Test with this->seachUser and this->searchPassword //print $resultFetchLdapUser."-".$ldap->ldapUserDN."-".$ldap->searchUser.'-'.$ldap->searchPassword;exit; - $result = $ldap->connect_bind(); + $result = $ldap->connectBind(); if ($result > 0) { if ($result == 2) { // Connection is ok for user/pass into LDAP $login = $usertotest; diff --git a/htdocs/core/triggers/interface_50_modLdap_Ldapsynchro.class.php b/htdocs/core/triggers/interface_50_modLdap_Ldapsynchro.class.php index ccd403aa611..721a76ca24e 100644 --- a/htdocs/core/triggers/interface_50_modLdap_Ldapsynchro.class.php +++ b/htdocs/core/triggers/interface_50_modLdap_Ldapsynchro.class.php @@ -83,7 +83,7 @@ class InterfaceLdapsynchro extends DolibarrTriggers dol_syslog("Trigger '".$this->name."' for action '$action' launched by ".__FILE__.". id=".$object->id); if (getDolGlobalString('LDAP_SYNCHRO_ACTIVE') && getDolGlobalInt('LDAP_SYNCHRO_ACTIVE') === Ldap::SYNCHRO_DOLIBARR_TO_LDAP) { $ldap = new Ldap(); - $result = $ldap->connect_bind(); + $result = $ldap->connectBind(); if ($result > 0) { $info = $object->_load_ldap_info(); @@ -105,7 +105,7 @@ class InterfaceLdapsynchro extends DolibarrTriggers dol_syslog("Trigger '".$this->name."' for action '$action' launched by ".__FILE__.". id=".$object->id); if (getDolGlobalString('LDAP_SYNCHRO_ACTIVE') && getDolGlobalInt('LDAP_SYNCHRO_ACTIVE') === Ldap::SYNCHRO_DOLIBARR_TO_LDAP) { $ldap = new Ldap(); - $result = $ldap->connect_bind(); + $result = $ldap->connectBind(); if ($result > 0) { if (empty($object->oldcopy) || !is_object($object->oldcopy)) { @@ -184,7 +184,7 @@ class InterfaceLdapsynchro extends DolibarrTriggers dol_syslog("Trigger '".$this->name."' for action '$action' launched by ".__FILE__.". id=".$object->id); if (getDolGlobalString('LDAP_SYNCHRO_ACTIVE') && getDolGlobalInt('LDAP_SYNCHRO_ACTIVE') === Ldap::SYNCHRO_DOLIBARR_TO_LDAP) { $ldap = new Ldap(); - $result = $ldap->connect_bind(); + $result = $ldap->connectBind(); if ($result > 0) { if (empty($object->oldcopy) || !is_object($object->oldcopy)) { @@ -217,7 +217,7 @@ class InterfaceLdapsynchro extends DolibarrTriggers dol_syslog("Trigger '".$this->name."' for action '$action' launched by ".__FILE__.". id=".$object->id); if (getDolGlobalInt("LDAP_SYNCHRO_ACTIVE") === Ldap::SYNCHRO_DOLIBARR_TO_LDAP && getDolGlobalString('LDAP_SERVER_TYPE') == "activedirectory") { $ldap = new Ldap(); - $result = $ldap->connect_bind(); + $result = $ldap->connectBind(); if ($result > 0) { $info = $object->_load_ldap_info(); $dn = $object->_load_ldap_dn($info); @@ -246,7 +246,7 @@ class InterfaceLdapsynchro extends DolibarrTriggers dol_syslog("Trigger '".$this->name."' for action '$action' launched by ".__FILE__.". id=".$object->id); if (getDolGlobalString('LDAP_SYNCHRO_ACTIVE') && getDolGlobalInt('LDAP_SYNCHRO_ACTIVE') === Ldap::SYNCHRO_DOLIBARR_TO_LDAP) { $ldap = new Ldap(); - $result = $ldap->connect_bind(); + $result = $ldap->connectBind(); if ($result > 0) { $info = $object->_load_ldap_info(); @@ -264,7 +264,7 @@ class InterfaceLdapsynchro extends DolibarrTriggers dol_syslog("Trigger '".$this->name."' for action '$action' launched by ".__FILE__.". id=".$object->id); if (getDolGlobalString('LDAP_SYNCHRO_ACTIVE') && getDolGlobalInt('LDAP_SYNCHRO_ACTIVE') === Ldap::SYNCHRO_DOLIBARR_TO_LDAP) { $ldap = new Ldap(); - $result = $ldap->connect_bind(); + $result = $ldap->connectBind(); if ($result > 0) { $info = $object->_load_ldap_info(); @@ -295,7 +295,7 @@ class InterfaceLdapsynchro extends DolibarrTriggers dol_syslog("Trigger '".$this->name."' for action '$action' launched by ".__FILE__.". id=".$object->id); if (getDolGlobalString('LDAP_SYNCHRO_ACTIVE') && getDolGlobalInt('LDAP_SYNCHRO_ACTIVE') === Ldap::SYNCHRO_DOLIBARR_TO_LDAP) { $ldap = new Ldap(); - $result = $ldap->connect_bind(); + $result = $ldap->connectBind(); if ($result > 0) { if (empty($object->oldcopy) || !is_object($object->oldcopy)) { @@ -328,7 +328,7 @@ class InterfaceLdapsynchro extends DolibarrTriggers dol_syslog("Trigger '".$this->name."' for action '$action' launched by ".__FILE__.". id=".$object->id); if (getDolGlobalString('LDAP_SYNCHRO_ACTIVE') && getDolGlobalInt('LDAP_SYNCHRO_ACTIVE') === Ldap::SYNCHRO_DOLIBARR_TO_LDAP) { $ldap = new Ldap(); - $result = $ldap->connect_bind(); + $result = $ldap->connectBind(); if ($result > 0) { $info = $object->_load_ldap_info(); @@ -346,7 +346,7 @@ class InterfaceLdapsynchro extends DolibarrTriggers dol_syslog("Trigger '".$this->name."' for action '$action' launched by ".__FILE__.". id=".$object->id); if (getDolGlobalString('LDAP_CONTACT_ACTIVE')) { $ldap = new Ldap(); - $result = $ldap->connect_bind(); + $result = $ldap->connectBind(); if ($result > 0) { $info = $object->_load_ldap_info(); @@ -363,7 +363,7 @@ class InterfaceLdapsynchro extends DolibarrTriggers dol_syslog("Trigger '".$this->name."' for action '$action' launched by ".__FILE__.". id=".$object->id); if (getDolGlobalString('LDAP_CONTACT_ACTIVE')) { $ldap = new Ldap(); - $result = $ldap->connect_bind(); + $result = $ldap->connectBind(); if ($result > 0) { if (empty($object->oldcopy) || !is_object($object->oldcopy)) { @@ -396,7 +396,7 @@ class InterfaceLdapsynchro extends DolibarrTriggers dol_syslog("Trigger '".$this->name."' for action '$action' launched by ".__FILE__.". id=".$object->id); if (getDolGlobalString('LDAP_CONTACT_ACTIVE')) { $ldap = new Ldap(); - $result = $ldap->connect_bind(); + $result = $ldap->connectBind(); if ($result > 0) { $info = $object->_load_ldap_info(); @@ -414,7 +414,7 @@ class InterfaceLdapsynchro extends DolibarrTriggers dol_syslog("Trigger '".$this->name."' for action '$action' launched by ".__FILE__.". id=".$object->id); if (getDolGlobalString('LDAP_MEMBER_ACTIVE') && getDolGlobalInt('LDAP_MEMBER_ACTIVE') == Ldap::SYNCHRO_DOLIBARR_TO_LDAP) { $ldap = new Ldap(); - $result = $ldap->connect_bind(); + $result = $ldap->connectBind(); if ($result > 0) { $info = $object->_load_ldap_info(); @@ -459,7 +459,7 @@ class InterfaceLdapsynchro extends DolibarrTriggers // If status field is setup to be synchronized if (getDolGlobalString('LDAP_FIELD_MEMBER_STATUS')) { $ldap = new Ldap(); - $result = $ldap->connect_bind(); + $result = $ldap->connectBind(); if ($result > 0) { $info = $object->_load_ldap_info(); @@ -484,7 +484,7 @@ class InterfaceLdapsynchro extends DolibarrTriggers || getDolGlobalString('LDAP_FIELD_MEMBER_LASTSUBSCRIPTION_AMOUNT') || getDolGlobalString('LDAP_FIELD_MEMBER_END_LASTSUBSCRIPTION')) { $ldap = new Ldap(); - $result = $ldap->connect_bind(); + $result = $ldap->connectBind(); if ($result > 0) { $info = $object->_load_ldap_info(); @@ -503,7 +503,7 @@ class InterfaceLdapsynchro extends DolibarrTriggers dol_syslog("Trigger '".$this->name."' for action '$action' launched by ".__FILE__.". id=".$object->id); if (getDolGlobalString('LDAP_MEMBER_ACTIVE') && getDolGlobalInt('LDAP_MEMBER_ACTIVE') == Ldap::SYNCHRO_DOLIBARR_TO_LDAP) { $ldap = new Ldap(); - $result = $ldap->connect_bind(); + $result = $ldap->connectBind(); if ($result > 0) { if (empty($object->oldcopy) || !is_object($object->oldcopy)) { @@ -593,7 +593,7 @@ class InterfaceLdapsynchro extends DolibarrTriggers // If password field is setup to be synchronized if (getDolGlobalString('LDAP_FIELD_PASSWORD') || getDolGlobalString('LDAP_FIELD_PASSWORD_CRYPTED')) { $ldap = new Ldap(); - $result = $ldap->connect_bind(); + $result = $ldap->connectBind(); if ($result > 0) { $info = $object->_load_ldap_info(); @@ -614,7 +614,7 @@ class InterfaceLdapsynchro extends DolibarrTriggers // If status field is setup to be synchronized if (getDolGlobalString('LDAP_FIELD_MEMBER_STATUS')) { $ldap = new Ldap(); - $result = $ldap->connect_bind(); + $result = $ldap->connectBind(); if ($result > 0) { $info = $object->_load_ldap_info(); @@ -633,7 +633,7 @@ class InterfaceLdapsynchro extends DolibarrTriggers dol_syslog("Trigger '".$this->name."' for action '$action' launched by ".__FILE__.". id=".$object->id); if (getDolGlobalString('LDAP_MEMBER_ACTIVE') && getDolGlobalInt('LDAP_MEMBER_ACTIVE') == Ldap::SYNCHRO_DOLIBARR_TO_LDAP) { $ldap = new Ldap(); - $result = $ldap->connect_bind(); + $result = $ldap->connectBind(); if ($result > 0) { $info = $object->_load_ldap_info(); @@ -681,7 +681,7 @@ class InterfaceLdapsynchro extends DolibarrTriggers dol_syslog("Trigger '".$this->name."' for action '$action' launched by ".__FILE__.". id=".$object->id); if (getDolGlobalString('LDAP_MEMBER_TYPE_ACTIVE') && getDolGlobalInt('LDAP_MEMBER_TYPE_ACTIVE') === Ldap::SYNCHRO_DOLIBARR_TO_LDAP) { $ldap = new Ldap(); - $result = $ldap->connect_bind(); + $result = $ldap->connectBind(); if ($result > 0) { $info = $object->_load_ldap_info(); @@ -703,7 +703,7 @@ class InterfaceLdapsynchro extends DolibarrTriggers dol_syslog("Trigger '".$this->name."' for action '$action' launched by ".__FILE__.". id=".$object->id); if (getDolGlobalString('LDAP_MEMBER_TYPE_ACTIVE') && getDolGlobalInt('LDAP_MEMBER_TYPE_ACTIVE') === Ldap::SYNCHRO_DOLIBARR_TO_LDAP) { $ldap = new Ldap(); - $result = $ldap->connect_bind(); + $result = $ldap->connectBind(); if ($result > 0) { if (empty($object->oldcopy) || !is_object($object->oldcopy)) { @@ -740,7 +740,7 @@ class InterfaceLdapsynchro extends DolibarrTriggers dol_syslog("Trigger '".$this->name."' for action '$action' launched by ".__FILE__.". id=".$object->id); if (getDolGlobalString('LDAP_MEMBER_TYPE_ACTIVE') && getDolGlobalInt('LDAP_MEMBER_TYPE_ACTIVE') === Ldap::SYNCHRO_DOLIBARR_TO_LDAP) { $ldap = new Ldap(); - $result = $ldap->connect_bind(); + $result = $ldap->connectBind(); if ($result > 0) { $info = $object->_load_ldap_info(); diff --git a/htdocs/user/card.php b/htdocs/user/card.php index 3dc339ca211..2fa80d57523 100644 --- a/htdocs/user/card.php +++ b/htdocs/user/card.php @@ -721,7 +721,7 @@ if (empty($reshook)) { } $ldap = new Ldap(); - $result = $ldap->connect_bind(); + $result = $ldap->connectBind(); if ($result >= 0) { // Remove from required_fields all entries not configured in LDAP (empty) and duplicated $required_fields = array_unique(array_values(array_filter($required_fields, "dol_validElement"))); @@ -808,7 +808,7 @@ if ($action == 'create' || $action == 'adduserldap') { if (isModEnabled('ldap') && (isset($conf->global->LDAP_SYNCHRO_ACTIVE) && getDolGlobalInt('LDAP_SYNCHRO_ACTIVE') === Ldap::SYNCHRO_LDAP_TO_DOLIBARR)) { // Show form to add an account from LDAP if sync LDAP -> Dolibarr is set $ldap = new Ldap(); - $result = $ldap->connect_bind(); + $result = $ldap->connectBind(); if ($result >= 0) { $required_fields = array( $conf->global->LDAP_KEY_USERS, @@ -1415,7 +1415,7 @@ if ($action == 'create' || $action == 'adduserldap') { // pour recuperer passDoNotExpire et userChangePassNextLogon if (isModEnabled('ldap') && !empty($object->ldap_sid)) { $ldap = new Ldap(); - $result = $ldap->connect_bind(); + $result = $ldap->connectBind(); if ($result > 0) { $userSearchFilter = '(' . getDolGlobalString('LDAP_FILTER_CONNECTION').'('.$ldap->getUserIdentifier().'='.$object->login.'))'; $entries = $ldap->fetch($object->login, $userSearchFilter); diff --git a/htdocs/user/group/ldap.php b/htdocs/user/group/ldap.php index f16ad223d35..8eb400ad793 100644 --- a/htdocs/user/group/ldap.php +++ b/htdocs/user/group/ldap.php @@ -63,7 +63,7 @@ if (getDolGlobalString('MAIN_USE_ADVANCED_PERMS')) { if ($action == 'dolibarr2ldap') { $ldap = new Ldap(); - $result = $ldap->connect_bind(); + $result = $ldap->connectBind(); if ($result > 0) { $info = $object->_load_ldap_info(); @@ -174,7 +174,7 @@ print ''; // Lecture LDAP $ldap = new Ldap(); -$result = $ldap->connect_bind(); +$result = $ldap->connectBind(); if ($result > 0) { $info = $object->_load_ldap_info(); $dn = $object->_load_ldap_dn($info, 1); diff --git a/htdocs/user/ldap.php b/htdocs/user/ldap.php index fcc81a3a3cc..3c2127290d2 100644 --- a/htdocs/user/ldap.php +++ b/htdocs/user/ldap.php @@ -66,7 +66,7 @@ if ($reshook < 0) { if (empty($reshook)) { if ($action == 'dolibarr2ldap') { $ldap = new Ldap(); - $result = $ldap->connect_bind(); + $result = $ldap->connectBind(); if ($result > 0) { $info = $object->_load_ldap_info(); @@ -124,7 +124,7 @@ print ''; if (getDolGlobalString('LDAP_SERVER_TYPE') == "activedirectory") { $ldap = new Ldap(); - $result = $ldap->connect_bind(); + $result = $ldap->connectBind(); if ($result > 0) { $userSID = $ldap->getObjectSid($object->login); } @@ -181,7 +181,7 @@ print ''; // Lecture LDAP $ldap = new Ldap(); -$result = $ldap->connect_bind(); +$result = $ldap->connectBind(); if ($result > 0) { $info = $object->_load_ldap_info(); $dn = $object->_load_ldap_dn($info, 1); diff --git a/scripts/company/sync_contacts_dolibarr2ldap.php b/scripts/company/sync_contacts_dolibarr2ldap.php index 0ea0bb77119..ce45cb11f29 100755 --- a/scripts/company/sync_contacts_dolibarr2ldap.php +++ b/scripts/company/sync_contacts_dolibarr2ldap.php @@ -121,7 +121,7 @@ if ($resql) { $i = 0; $ldap = new Ldap(); - $ldap->connect_bind(); + $ldap->connectBind(); while ($i < $num) { $ldap->error = ""; diff --git a/scripts/members/sync_members_dolibarr2ldap.php b/scripts/members/sync_members_dolibarr2ldap.php index d21bf34710d..93868a493d9 100755 --- a/scripts/members/sync_members_dolibarr2ldap.php +++ b/scripts/members/sync_members_dolibarr2ldap.php @@ -122,7 +122,7 @@ if ($resql) { $i = 0; $ldap = new Ldap(); - $ldap->connect_bind(); + $ldap->connectBind(); while ($i < $num) { $ldap->error = ""; diff --git a/scripts/members/sync_members_ldap2dolibarr.php b/scripts/members/sync_members_ldap2dolibarr.php index 53c0d945e63..d5c8d664bc5 100755 --- a/scripts/members/sync_members_ldap2dolibarr.php +++ b/scripts/members/sync_members_ldap2dolibarr.php @@ -187,7 +187,7 @@ if ($resql) { } $ldap = new Ldap(); -$result = $ldap->connect_bind(); +$result = $ldap->connectBind(); if ($result >= 0) { $justthese = array(); $pricefirst = 0; diff --git a/scripts/members/sync_members_types_dolibarr2ldap.php b/scripts/members/sync_members_types_dolibarr2ldap.php index 356ac35f0ee..dcc37dc18b0 100755 --- a/scripts/members/sync_members_types_dolibarr2ldap.php +++ b/scripts/members/sync_members_types_dolibarr2ldap.php @@ -87,7 +87,7 @@ if ($resql) { $i = 0; $ldap = new Ldap(); - $result = $ldap->connect_bind(); + $result = $ldap->connectBind(); if ($result > 0) { while ($i < $num) { diff --git a/scripts/members/sync_members_types_ldap2dolibarr.php b/scripts/members/sync_members_types_ldap2dolibarr.php index fe62ce536fd..aece7c2829f 100755 --- a/scripts/members/sync_members_types_ldap2dolibarr.php +++ b/scripts/members/sync_members_types_ldap2dolibarr.php @@ -128,7 +128,7 @@ if (!getDolGlobalString('LDAP_MEMBER_TYPE_DN')) { } $ldap = new Ldap(); -$result = $ldap->connect_bind(); +$result = $ldap->connectBind(); if ($result >= 0) { $justthese = array(); diff --git a/scripts/user/sync_groups_dolibarr2ldap.php b/scripts/user/sync_groups_dolibarr2ldap.php index e64b2ff5130..de6e16cfbf8 100755 --- a/scripts/user/sync_groups_dolibarr2ldap.php +++ b/scripts/user/sync_groups_dolibarr2ldap.php @@ -79,7 +79,7 @@ if ($resql) { $i = 0; $ldap = new Ldap(); - $ldap->connect_bind(); + $ldap->connectBind(); while ($i < $num) { $ldap->error = ""; diff --git a/scripts/user/sync_groups_ldap2dolibarr.php b/scripts/user/sync_groups_ldap2dolibarr.php index ed994cdd4f3..66b2b35c07f 100755 --- a/scripts/user/sync_groups_ldap2dolibarr.php +++ b/scripts/user/sync_groups_ldap2dolibarr.php @@ -127,7 +127,7 @@ if (!getDolGlobalString('LDAP_GROUP_DN')) { } $ldap = new Ldap(); -$result = $ldap->connect_bind(); +$result = $ldap->connectBind(); if ($result >= 0) { $justthese = array(); diff --git a/scripts/user/sync_users_dolibarr2ldap.php b/scripts/user/sync_users_dolibarr2ldap.php index df49b035a69..7c0e652219c 100755 --- a/scripts/user/sync_users_dolibarr2ldap.php +++ b/scripts/user/sync_users_dolibarr2ldap.php @@ -79,7 +79,7 @@ if ($resql) { $i = 0; $ldap = new Ldap(); - $ldap->connect_bind(); + $ldap->connectBind(); while ($i < $num) { $ldap->error = ""; diff --git a/scripts/user/sync_users_ldap2dolibarr.php b/scripts/user/sync_users_ldap2dolibarr.php index 98800b07a97..86affad9f7e 100755 --- a/scripts/user/sync_users_ldap2dolibarr.php +++ b/scripts/user/sync_users_ldap2dolibarr.php @@ -173,7 +173,7 @@ if ($resql) { } $ldap = new Ldap(); -$result = $ldap->connect_bind(); +$result = $ldap->connectBind(); if ($result >= 0) { $justthese = array();