leoncx / testmigrate

0 stars 0 forks source link

Problem with duplicate LDAP contactgroup entry after a clapi import #149

Closed leoncx closed 9 years ago

leoncx commented 10 years ago

Author Name: Mathieu Cinquin (Mathieu Cinquin) Original Redmine Issue: 5056, https://forge.centreon.com/issues/5056 Original Date: 2013-12-13 Original Assignee: Sylvestre Ho


Hello,

Here is th procedure :

The contactgroup is created anyway and so we end up with a duplication that blocks the generation of the configuration.

leoncx commented 10 years ago

Original Redmine Comment Author Name: Mathieu Cinquin (Mathieu Cinquin) Original Date: 2013-12-13T13:08:21Z


With formated text :

Here is th procedure :

+-------+--------------+----------------------+------------+-------------+---------+-----------------------------------------------------+-------+
| cg_id | cg_name      | cg_alias             | cg_comment | cg_activate | cg_type | cg_ldap_dn                                          | ar_id |
+-------+--------------+----------------------+------------+-------------+---------+-----------------------------------------------------+-------+
|     3 | Guest        | Guests Group         |            | 1           | local   | NULL                                                |  NULL |
|     5 | Supervisors  | Centreon supervisors |            | 1           | local   | NULL                                                |  NULL |
|     6 | Domain Users | Domain Users         | NULL       | 1           | ldap    | CN=Domain Users,CN=Users,DC=xxx,DC=yyy,DC=com       |  NULL |
+-------+--------------+----------------------+------------+-------------+---------+-----------------------------------------------------+-------+
+-------+--------------+----------------------+------------+-------------+---------+-----------------------------------------------------+-------+
| cg_id | cg_name      | cg_alias             | cg_comment | cg_activate | cg_type | cg_ldap_dn                                          | ar_id |
+-------+--------------+----------------------+------------+-------------+---------+-----------------------------------------------------+-------+
|     3 | Guest        | Guests Group         |            | 1           | local   | NULL                                                |  NULL |
|     5 | Supervisors  | Centreon supervisors |            | 1           | local   | NULL                                                |  NULL |
|     6 | Domain Users | Domain Users         | NULL       | 1           | ldap    | CN=Domain Users,CN=Users,DC=xxx,DC=yyy,DC=com       |  NULL |
|     7 | Domain Users | Domain Users         | NULL       | 1           | ldap    | CN=Domain Users,CN=Users,DC=xxx,DC=yyy,DC=com       |     1 |
+-------+--------------+----------------------+------------+-------------+---------+-----------------------------------------------------+-------+

The contactgroup is created anyway and so we end up with a duplication that blocks the generation of the configuration.

leoncx commented 10 years ago

Original Redmine Comment Author Name: Sylvestre Ho (Sylvestre Ho) Original Date: 2013-12-16T15:30:00Z


https://forge.centreon.com/projects/centreon/repository/revisions/85416c4f5358cae13909d376fb2b1e63b3570b89/diff/www/class/centreonContactgroup.class.php