Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
fix(ldap): manage multiple ldap group with same dn (#6714)
Browse files Browse the repository at this point in the history
if there are multiple ldap configuration, and each ldap has several same
ldap groups DN, it is now possible to link all those contactgroup in an
acl access group
  • Loading branch information
kduret committed Oct 3, 2018
1 parent 5537dde commit 783308f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions www/class/centreonContactgroup.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,9 @@ public function insertLdapGroup($cg_name)
/*
* Check if contactgroup is not in databas
*/
$queryCheck = "SELECT cg_id FROM contactgroup
WHERE cg_name = '" . $this->db->escape($cg_name) . "'";
$queryCheck = "SELECT cg_id FROM contactgroup " .
"WHERE cg_name = '" . $this->db->escape($cg_name) . "' " .
"AND ar_id = " . $this->db->escape($cg_id);
$res = $this->db->query($queryCheck);
if ($res->rowCount() == 1) {
$row = $res->fetch();
Expand Down

0 comments on commit 783308f

Please sign in to comment.