Génération d'une clef

This commit is contained in:
Daniel Berteaud 2012-08-24 13:22:51 +02:00
parent 59509359aa
commit beaa60162e
1 changed files with 3 additions and 0 deletions

View File

@ -60,6 +60,9 @@ $conf->{'exportedVars'}->{'extension'} = 'extensionNumber' unless ($conf->{'expo
$conf->{'exportedVars'}->{'nom'} = 'sn' unless ($conf->{'exportedVars'}->{'nom'});
$conf->{'exportedVars'}->{'prenom'} = 'givenName' unless ($conf->{'exportedVars'}->{'prenom'});
# Initialize a random key
$conf->{'key'} = join( '', map { chr( int( rand(94) ) + 33 ) } ( 1 .. 16 ) ) unless ($conf->{'key'});
# Some other defaults config
$conf->{'timeout'} = '28800' if ($conf->{'timeout'} eq '72000');
$conf->{'portalDisplayAppslist'} = '1';