LdapSaisie : Samba
Attributs utilisateurs
/* ----------- start -----------*/ 'sambaLogonScript' => array ( 'label' => 'Logon script', 'ldap_type' => 'ascii', 'html_type' => 'text', 'required' => 1, 'default_value' => 'logon.bat', 'rights' => array( 'admin' => 'w', ), 'view' => 1, 'form' => array( 'modify' => 1 ) ), /* ----------- end -----------*/ /* ----------- start -----------*/ 'sambaPwdMustChange' => array ( 'label' => 'Password change date', 'help_info' => "When the user must change his password connecting to the Samba domain.", 'ldap_type' => 'date', 'html_type' => 'date', 'ldap_options' => array( 'timestamp' => 1 ), 'html_options' => array( 'firstDayOfWeek' => 1, 'format' => '%Y/%m/%d, %T' ), 'default_value' => LS_SAMBA_INFINITY_TIME, 'view' => 1, 'form' => array ( 'create' => 1, 'modify' => 1 ), 'rights' => array( 'self' => 'r', 'admin' => 'w', ) ), /* ----------- end -----------*/ /* ----------- start -----------*/ 'sambaPwdLastSet' => array ( 'label' => 'Password Last change', 'help_info' => "The last change date of the user's password.", 'ldap_type' => 'date', 'html_type' => 'date', 'generate_function' => 'generate_sambaPwdLastSet', 'ldap_options' => array( 'timestamp' => 1 ), 'html_options' => array( 'firstDayOfWeek' => 1, 'format' => '%Y/%m/%d, %T' ), 'rights' => array( 'self' => 'r', 'admin' => 'r', ), 'view' => 1 ), /* ----------- end -----------*/ /* ----------- start -----------*/ 'sambaKickoffTime' => array ( 'label' => "Account's blocking date", 'help_info' => "When the user account was blocked.", 'ldap_type' => 'date', 'html_type' => 'date', 'view' => 1, 'ldap_options' => array( 'timestamp' => 1 ), 'html_options' => array( 'firstDayOfWeek' => 1, 'format' => '%Y/%m/%d, %T' ), 'form' => array ( 'create' => 1, 'modify' => 1 ), 'rights' => array( 'self' => 'r', 'admin' => 'w', ) ), /* ----------- end -----------*/ /* ----------- start -----------*/ 'sambaLogoffTime' => array ( 'label' => "Date of last logout", 'ldap_type' => 'date', 'html_type' => 'date', 'ldap_options' => array( 'timestamp' => 1 ), 'view' => 1, 'html_options' => array( 'firstDayOfWeek' => 1, 'format' => '%Y/%m/%d, %T' ), 'rights' => array( 'self' => 'r', 'admin' => 'w', ) ), /* ----------- end -----------*/ /* ----------- start -----------*/ 'sambaLogonTime' => array ( 'label' => "Date of last login", 'ldap_type' => 'date', 'html_type' => 'date', 'ldap_options' => array( 'timestamp' => 1 ), 'view' => 1, 'html_options' => array( 'firstDayOfWeek' => 1, 'format' => '%Y/%m/%d, %T' ), 'rights' => array( 'self' => 'r', 'admin' => 'w', ) ), /* ----------- end -----------*/ /* ----------- start -----------*/ 'sambaPrimaryGroupSID' => array ( 'label' => 'Samba - Primary Group', 'ldap_type' => 'ascii', 'html_type' => 'text', 'required' => 1, 'generate_function' => 'generate_sambaPrimaryGroupSID', 'rights' => array( 'admin' => 'r' ), 'view' => 1 ), /* ----------- end -----------*/ /* ----------- start -----------*/ 'sambaAcctFlags' => array ( 'label' => 'Samba account flags', 'ldap_type' => 'ascii', 'html_type' => 'text', 'required' => 1, 'generate_value_format' => "[U]", 'rights' => array( 'admin' => 'w', ), 'view' => 1, 'form' => array ( 'modify' => 1 ) ), /* ----------- end -----------*/ /* ----------- start -----------*/ 'sambaDomainName' => array ( 'label' => 'Samba Domain', 'ldap_type' => 'ascii', 'html_type' => 'text', 'required' => 1, 'view' => 1, 'generate_value_format' => LS_SAMBA_DOMAIN_NAME, 'rights' => array( 'admin' => 'w', ) ), /* ----------- end -----------*/ /* ----------- start -----------*/ 'sambaUserWorkstations' => array ( 'label' => 'Work Station', 'ldap_type' => 'ascii', 'html_type' => 'select_object', 'multiple' => 0, 'validation' => array ( array ( 'msg' => "This computer doesn't exist.", 'object_type' => 'LScomputer', 'filter' => '(uid=%{val_}$)', 'result' => 1 ) ), 'rights' => array( 'admin' => 'w', ), 'view' => 1, 'form' => array ( 'modify' => 1, 'create' => 1 ), 'html_options' => array( 'selectable_object' => array( 'object_type' => 'LScomputer', 'display_name_format' => '%{displayName}', 'value_attribute' => 'uid', 'value_format' => '%{uid!}$' ) ) ), /* ----------- end -----------*/ /* ----------- start -----------*/ 'sambaHomePath' => array ( 'label' => 'Samba home path', 'ldap_type' => 'ascii', 'html_type' => 'text', 'required' => 1, 'generate_function' => 'generate_sambaHomePath', 'rights' => array( 'self' => 'r', 'admin' => 'w' ), 'view' => 1 ), /* ----------- end -----------*/ /* ----------- start -----------*/ 'sambaProfilePath' => array ( 'label' => 'Samba profile path', 'ldap_type' => 'ascii', 'html_type' => 'text', 'required' => 1, 'generate_function' => 'generate_sambaProfilePath', 'rights' => array( 'self' => 'r', 'admin' => 'w' ), 'view' => 1 ), /* ----------- end -----------*/ /* ----------- start -----------*/ 'sambaPwdCanChange' => array ( 'label' => 'User can change his password', 'ldap_type' => 'boolean', 'html_type' => 'boolean', 'ldap_options' => array ( 'true_value' => '1', 'false_value' => '0' ), 'html_type' => 'boolean', 'default_value' => 'yes', 'required' => 1, 'generate_function' => 'generate_sambaPrimaryGroupSID', 'rights' => array( 'admin' => 'r' ), 'view' => 1 ), /* ----------- end -----------*/
Fichier de traduction
A mettre dans local/lang/fr_FR.UTF8/lang.samba.php :
<?php $GLOBALS['LSlang']["Account's blocking date"] = "Date de blocage du compte"; $GLOBALS['LSlang']["Date of last logout"] = "Date de la dernière déconnexion"; $GLOBALS['LSlang']["Date of last login"] = "Date de la dernière connexion"; $GLOBALS['LSlang']["Domain group"] = "Groupe du domaine"; $GLOBALS['LSlang']["Local group"] = "Groupe local"; $GLOBALS['LSlang']["Logon script"] = "Script de login"; $GLOBALS['LSlang']["Password Last change"] = "Dernier changement du mot de passe"; $GLOBALS['LSlang']["Password change date"] = "Prochain changement obligatoire du mot de passe"; $GLOBALS['LSlang']["Samba"] = "Samba"; $GLOBALS['LSlang']["Samba - Primary Group"] = "Samba - Groupe primaire"; $GLOBALS['LSlang']["Samba Domain"] = "Domaine Samba"; $GLOBALS['LSlang']["Samba Identifier"] = "Identifiant Samba"; $GLOBALS['LSlang']["Samba Password (LM)"] = "Mot de passe Samba (LM)"; $GLOBALS['LSlang']["Samba Password (NT)"] = "Mot de passe Samba (NT)"; $GLOBALS['LSlang']["Samba account flags"] = "Drapeau de compte Samba"; $GLOBALS['LSlang']["Samba group type"] = "Type de groupe samba"; $GLOBALS['LSlang']["Samba home path"] = "Chemin du home Samba"; $GLOBALS['LSlang']["Samba identifier"] = "Identifiant Samba"; $GLOBALS['LSlang']["Samba profile path"] = "Chemin du profile Samba"; $GLOBALS['LSlang']["The last change date of the user's password."] = "La date du dernier changement de mot de passe de l'utilisateur."; $GLOBALS['LSlang']["This computer doesn't exist."] = "Cet ordinateur n'existe pas."; $GLOBALS['LSlang']["When the user account was blocked."] = "Date à laquelle le compte d'utilisateur sera bloqué."; $GLOBALS['LSlang']["When the user must change his password connecting to the Samba domain."] = "Date à laquelle l'utilisateur devra changer son mot de passe en se connectant au domaine Samba."; $GLOBALS['LSlang']["Work Station"] = "Machine de travail"; $GLOBALS['LSlang']["User can change his password"] = "L'utilisateur peut changé son mot de passe";