diff --git a/root/etc/e-smith/templates/var/lib/lemonldap-ng/conf/lmConf/007default b/root/etc/e-smith/templates/var/lib/lemonldap-ng/conf/lmConf/007default index a087fcb..5a6de05 100644 --- a/root/etc/e-smith/templates/var/lib/lemonldap-ng/conf/lmConf/007default +++ b/root/etc/e-smith/templates/var/lib/lemonldap-ng/conf/lmConf/007default @@ -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';