leoncx / testmigrate

0 stars 0 forks source link

a bug with LDAP configuration (delserver) #49

Closed leoncx closed 9 years ago

leoncx commented 10 years ago

Author Name: eric coquard (eric coquard) Original Redmine Issue: 5472, https://forge.centreon.com/issues/5472 Original Date: 2014-04-15 Original Assignee: Sylvestre Ho


Hello,

I find a bug when I delete a LDAP configuration.

exemple :

id;address;port;ssl;tls;order
6;ldap;duchmol.net;389;0;0;1
./centreon -u admin -p password -o LDAP -a delserver -v 6
please check that your parameters are valid

I find a ")" too in the next line in file centreonLDAP.class.php. there is


line 256 : $this->db->query("DELETE FROM auth_ressource_host WHERE ldap_host_id = ?)", array($serverId));

must


line 256 : $this->db->query("DELETE FROM auth_ressource_host WHERE ldap_host_id = ?", array($serverId));

regards

leoncx commented 10 years ago

Original Redmine Comment Author Name: Sylvestre Ho (Sylvestre Ho) Original Date: 2014-07-25T08:59:23Z


Applied in changeset commit:d9104fc03d170f34724b8e10853288a9b64cce2c.

leoncx commented 10 years ago

Original Redmine Comment Author Name: remi werquin (remi werquin) Original Date: 2014-07-25T15:21:36Z


No more error but the server is not deleted. No error when no server is specified.