diff --git a/root/etc/e-smith/locale/fr/etc/e-smith/web/functions/userinfo b/root/etc/e-smith/locale/fr/etc/e-smith/web/functions/userinfo
index 49be422..0763b93 100644
--- a/root/etc/e-smith/locale/fr/etc/e-smith/web/functions/userinfo
+++ b/root/etc/e-smith/locale/fr/etc/e-smith/web/functions/userinfo
@@ -99,4 +99,12 @@
DESKTOP_SHELL
Shell de connexion aux postes de travail
+
+ CHROOT_DIR
+ RĂ©pertoire racine (chroot)
+
+
+ DIR_DOES_NOT_EXIST
+ Ce répertoire n'existe pas
+
diff --git a/root/etc/e-smith/web/functions/userinfo b/root/etc/e-smith/web/functions/userinfo
index 3c94170..de34c4a 100644
--- a/root/etc/e-smith/web/functions/userinfo
+++ b/root/etc/e-smith/web/functions/userinfo
@@ -142,6 +142,10 @@ __DATA__
value="get_ldap_value('DesktopShell')">
+
+
+
diff --git a/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/userinfo.pm b/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/userinfo.pm
index ee2251d..9297edf 100644
--- a/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/userinfo.pm
+++ b/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/userinfo.pm
@@ -151,6 +151,7 @@ sub modify_user {
'Url' => $self->{cgi}->param('Url'),
'Shell' => $self->{cgi}->param('Shell'),
'DesktopShell' => $self->{cgi}->param('DesktopShell'),
+ 'ChrootDir' => $self->{cgi}->param('ChrootDir'),
);
$acct->merge_props(%newProperties);
@@ -234,4 +235,12 @@ sub url_or_empty {
return $ret;
}
+sub dir_exists {
+ my ($self, $field) = @_;
+ my $ret = $self->localise('DIR_DOES_NOT_EXIST');
+
+ $ret = 'OK' if (-d "$field");
+ return $ret;
+}
+
1;