From 942bf33e1d96376b16b5638a726e6e7279e1d3ea Mon Sep 17 00:00:00 2001 From: nadir Date: Thu, 31 Mar 2016 17:13:14 +0200 Subject: [PATCH] [Patch] Updating ldap database cache table names --- db_structure.xml | 6 +++--- lib/ldapupdatecron.php | 6 +++--- lib/private/cache/ldapdatabase.php | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) 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'; /** *