Make it possible to have multiple, logically-ORed LDAP recursion filters in
LDAP links and groups.
This commit is contained in:
parent
f1b62f54d0
commit
950c1e2306
5 changed files with 33 additions and 12 deletions
|
|
@ -22,6 +22,7 @@ my $session = start(); # this line required
|
|||
recalculateProjectCompletion($session);
|
||||
updateSqlReportTable($session);
|
||||
updateProductsTable($session);
|
||||
makeLdapRecursiveFiltersText($session);
|
||||
|
||||
finish($session); # this line required
|
||||
|
||||
|
|
@ -54,6 +55,20 @@ sub updateProductsTable {
|
|||
$session->db->write("alter table products add column (groupId varchar(22), groupExpiresOffset varchar(16))");
|
||||
}
|
||||
|
||||
sub makeLdapRecursiveFiltersText {
|
||||
my $session = shift;
|
||||
print "\tMaking LDAP recursive filters text fields.\n" unless $quiet;
|
||||
$session->db->write($_) for(<<'EOT',
|
||||
ALTER TABLE LDAPLink
|
||||
CHANGE COLUMN ldapGlobalRecursiveFilter ldapGlobalRecursiveFilter mediumtext NULL DEFAULT NULL
|
||||
EOT
|
||||
<<'EOT',
|
||||
ALTER TABLE groups
|
||||
CHANGE COLUMN ldapRecursiveFilter ldapRecursiveFilter mediumtext NULL DEFAULT NULL
|
||||
EOT
|
||||
)
|
||||
}
|
||||
|
||||
# ---- DO NOT EDIT BELOW THIS LINE ----
|
||||
|
||||
#-------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue