From beaa60162e3e09c6f652e4b43d6f95e7c0237678 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Fri, 24 Aug 2012 13:22:51 +0200 Subject: [PATCH] =?UTF-8?q?G=C3=A9n=C3=A9ration=20d'une=20clef?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- root/etc/e-smith/templates/var/lib/lemonldap-ng/conf/lmConf/007default | 3 +++ 1 file changed, 3 insertions(+) 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';