From 9be6d3fa73747d274c5af385aa65829397dae329 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Fri, 23 Jan 2004 13:03:24 +0000 Subject: [PATCH] Modif connection ldap dans update() --- htdocs/contact.class.php | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/htdocs/contact.class.php b/htdocs/contact.class.php index 7d217801f31..893e5268098 100644 --- a/htdocs/contact.class.php +++ b/htdocs/contact.class.php @@ -74,7 +74,6 @@ class Contact */ Function update($id) { - $this->email = trim($this->email); $sql = "UPDATE llx_socpeople SET name='$this->name', firstname='$this->firstname'"; @@ -94,18 +93,13 @@ class Contact print $this->db->error() . '
' . $sql; } - - $host = "localhost"; - $dn = "cn=admin, dc=rodo, dc=lan"; - $pass = "secret"; - - $ds = ldap_connect($host); + $ds = dolibarr_ldap_connect(); if ($ds) { ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, 3); - $ldapbind=ldap_bind($ds, $dn, $pass); + $ldapbind=dolibarr_ldap_bind($ds); if ($ldapbind) {