====== 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** :