Make the Deactivate account template user selectable for both LDAP and WebGUI. Fixes bug #11482

This commit is contained in:
Colin Kuskie 2010-03-22 10:43:29 -07:00
parent c0206e61f5
commit d6f61c07d1
11 changed files with 124 additions and 11 deletions

Binary file not shown.

View file

@ -29,11 +29,27 @@ my $quiet; # this line required
my $session = start(); # this line required
addDeactivateAccountTemplateSettings($session);
# upgrade functions go here
finish($session); # this line required
#----------------------------------------------------------------------------
# Describe what our function does
sub addDeactivateAccountTemplateSettings {
my $session = shift;
print "\tAdd settings for deactivate account... " unless $quiet;
# and here's our code
$session->setting->add('webguiDeactivateAccountTemplate', 'zaHUYsE_PgKk8hnVd8ffEQ');
$session->db->write(<<EOSQL);
ALTER TABLE ldapLink ADD COLUMN ldapDeactivateAccountTemplate CHAR(22) NOT NULL
EOSQL
$session->db->write(<<EOSQL);
UPDATE ldapLink SET ldapDeactivateAccountTemplate='_P4PMiraGsLTfOjK4fYQPQ'
EOSQL
print "DONE!\n" unless $quiet;
}
#----------------------------------------------------------------------------
# Describe what our function does