diff --git a/db_structure.xml b/db_structure.xml
index c55eaad66d0d..eedc22529f90 100644
--- a/db_structure.xml
+++ b/db_structure.xml
@@ -1318,7 +1318,7 @@
- ldap_groups
+ cernbox_ldap_groups
cn
@@ -1339,7 +1339,7 @@
- ldap_group_members
+ cernbox_ldap_group_members
user_cn
@@ -1370,7 +1370,7 @@
- ldap_group_members
+ cernbox_ldap_group_members
user_cn
diff --git a/lib/ldapupdatecron.php b/lib/ldapupdatecron.php
index 7480943a17eb..5896ae195bd4 100644
--- a/lib/ldapupdatecron.php
+++ b/lib/ldapupdatecron.php
@@ -252,7 +252,7 @@ function insertIntoDatabase($table, $sql, $useLoadData = false)
//cronlog('Inserting groups into database...');
- insertIntoDatabase('ldap_groups', buildQuery('ldap_groups', 's', ['cn'], $ldapGroups));
+ insertIntoDatabase('cernbox_ldap_groups', buildQuery('cernbox_ldap_groups', 's', ['cn'], $ldapGroups));
unset($ldapGroups);
//cronlog('Done');
@@ -281,13 +281,13 @@ function insertIntoDatabase($table, $sql, $useLoadData = false)
//cronlog('Inserting users into database...');
- insertIntoDatabase('ldap_users', buildQuery('ldap_users', 'siss', ['cn','uidnumber','displayname','employeetype'], $ldapUsers));
+ insertIntoDatabase('cernbox_ldap_users', buildQuery('cernbox_ldap_users', 'siss', ['cn','uidnumber','displayname','employeetype'], $ldapUsers));
unset($ldapUsers);
//cronlog('Done');
//cronlog('Inserting users <-> groups into database...');
- insertIntoDatabase('ldap_group_members', buildCVSFile('ss', ['user_cn','group_cn'], $userGroups), true);
+ insertIntoDatabase('cernbox_ldap_group_members', buildCVSFile('ss', ['user_cn','group_cn'], $userGroups), true);
unset($userGroups);
cronlog('Done');
diff --git a/lib/private/cache/ldapdatabase.php b/lib/private/cache/ldapdatabase.php
index a6355f1f38f2..04589010725d 100644
--- a/lib/private/cache/ldapdatabase.php
+++ b/lib/private/cache/ldapdatabase.php
@@ -3,9 +3,9 @@
class LDAPDatabase
{
- const GROUPS_TABLE = 'ldap_groups';
- const USERS_TABLE = 'ldap_users';
- const GROUP_MAPPINGS = 'ldap_group_members';
+ const GROUPS_TABLE = 'cernbox_ldap_groups';
+ const USERS_TABLE = 'cernbox_ldap_users';
+ const GROUP_MAPPINGS = 'cernbox_ldap_group_members';
/**
*