From 464ed3c13a06d34642cdc732dae047e70a11dc13 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Fri, 24 Aug 2012 14:01:13 +0200 Subject: [PATCH] Validation du champs Shell --- root/etc/e-smith/locale/fr/etc/e-smith/web/functions/userinfo | 4 ++++ root/etc/e-smith/web/functions/userinfo | 2 +- root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/userinfo.pm | 9 +++++++++ 3 files changed, 14 insertions(+), 1 deletion(-) 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 0763b93..78d9dcc 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 @@ -107,4 +107,8 @@ DIR_DOES_NOT_EXIST Ce répertoire n'existe pas + + IS_NOT_AN_EXECUTABLE + Veuillez sélectionner un exécutable + diff --git a/root/etc/e-smith/web/functions/userinfo b/root/etc/e-smith/web/functions/userinfo index de34c4a..9be35ab 100644 --- a/root/etc/e-smith/web/functions/userinfo +++ b/root/etc/e-smith/web/functions/userinfo @@ -135,7 +135,7 @@ __DATA__ + value="get_ldap_value('Shell')" validation="exec_exists"> localise('IS_NOT_AN_EXECUTABLE'); + + $ret = 'OK' if (-x "$field"); + return $ret; +} + 1;