Skip to content

Commit

Permalink
Add new password policy items from behera draft 10 (#173)
Browse files Browse the repository at this point in the history
* Add new ppolicy attributes

* Add end date for AD

* Fix en lang key
  • Loading branch information
coudot authored Oct 30, 2024
1 parent d2dadfd commit 2071627
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
6 changes: 5 additions & 1 deletion conf/config.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,17 @@
'pwdfailuretime' => array( 'attribute' => 'pwdfailuretime', 'faclass' => 'lock', 'type' => 'date' ),
'pwdlastsuccess' => array( 'attribute' => 'pwdlastsuccess', 'faclass' => 'lock', 'type' => 'date' ),
'pwdpolicysubentry' => array( 'attribute' => 'pwdpolicysubentry', 'faclass' => 'lock', 'type' => 'ppolicy_dn' ),
'pwdgraceusetime' => array( 'attribute' => ' pwdgraceusetime', 'faclass' => 'lock', 'type' => 'date' ),
'starttime' => array( 'attribute' => ' pwdstarttime', 'faclass' => 'lock', 'type' => 'date' ),
'endtime' => array( 'attribute' => ' pwdendtime', 'faclass' => 'lock', 'type' => 'date' ),
);
$activedirectory_attributes_map = array(
'authtimestamp' => array( 'attribute' => 'lastlogon', 'faclass' => 'lock', 'type' => 'ad_date' ),
'identifier' => array( 'attribute' => 'samaccountname', 'faclass' => 'user-o', 'type' => 'text' ),
'pwdaccountlockedtime' => array( 'attribute' => 'lockouttime', 'faclass' => 'lock', 'type' => 'ad_date' ),
'pwdchangedtime' => array( 'attribute' => 'pwdlastset', 'faclass' => 'lock', 'type' => 'ad_date' ),
'pwdfailuretime' => array( 'attribute' => 'badpasswordtime', 'faclass' => 'lock', 'type' => 'ad_date' ),
'endtime' => array( 'attribute' => 'accountexpires', 'faclass' => 'lock', 'type' => 'ad_date' ),
);

# Search
Expand All @@ -112,7 +116,7 @@
$display_items = array('identifier', 'firstname', 'lastname', 'title', 'businesscategory', 'employeenumber', 'employeetype', 'mail', 'mailquota', 'phone', 'mobile', 'fax', 'postaladdress', 'street', 'postalcode', 'l', 'state', 'organizationalunit', 'organization', 'manager', 'secretary' );
$display_title = "fullname";
$display_show_undefined = false;
$display_password_items = array('pwdchangedtime', 'pwdfailuretime','pwdpolicysubentry', 'authtimestamp', 'pwdlastsuccess', 'created', 'modified');
$display_password_items = array('pwdchangedtime', 'pwdfailuretime','pwdpolicysubentry', 'authtimestamp', 'pwdlastsuccess', 'pwdgraceusetime', 'starttime', 'endtime', 'created', 'modified');
$display_password_expiration_date = true;

# Features
Expand Down
3 changes: 3 additions & 0 deletions lang/en.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
$messages['label_done_by'] = "Done by";
$messages['label_employeenumber'] = "Employee number";
$messages['label_employeetype'] = "Employee type";
$messages['label_endtime'] = "End of validity";
$messages['label_expirationdate'] = "Expiration date";
$messages['label_fax'] = "Fax";
$messages['label_firstname'] = "First name";
Expand All @@ -77,10 +78,12 @@
$messages['label_pwdaccountlockedtime'] = "Locking date";
$messages['label_pwdchangedtime'] = "Last password change";
$messages['label_pwdfailuretime'] = "Last authentication failures";
$messages['label_pwdgraceusetime'] = "Last grace authentications";
$messages['label_pwdpolicysubentry'] = "Associated password policy";
$messages['label_pwdreset'] = "Reset password at next connection";
$messages['label_result'] = "Result";
$messages['label_secretary'] = "Secretary";
$messages['label_starttime'] = "Start of validity";
$messages['label_state'] = "State";
$messages['label_street'] = "Street";
$messages['label_title'] = "Title";
Expand Down
3 changes: 3 additions & 0 deletions lang/fr.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
$messages['label_done_by'] = "Fait par";
$messages['label_employeenumber'] = "Numéro d'employé";
$messages['label_employeetype'] = "Type d'employé";
$messages['label_endtime'] = "Fin de validité";
$messages['label_expirationdate'] = "Date d'expiration";
$messages['label_fax'] = "Télécopie";
$messages['label_firstname'] = "Prénom";
Expand All @@ -77,10 +78,12 @@
$messages['label_pwdaccountlockedtime'] = "Date de blocage";
$messages['label_pwdchangedtime'] = "Dernier changement de mot de passe";
$messages['label_pwdfailuretime'] = "Derniers échecs d'authentification";
$messages['label_pwdgraceusetime'] = "Dernières authentifications en grâce";
$messages['label_pwdpolicysubentry'] = "Politique des mots de passe associée";
$messages['label_pwdreset'] = "Réinitialisation du mot de passe à la prochaine connexion";
$messages['label_result'] = "Résultat";
$messages['label_secretary'] = "Secrétaire";
$messages['label_starttime'] = "Début de validité";
$messages['label_state'] = "État";
$messages['label_street'] = "Voie";
$messages['label_title'] = "Titre";
Expand Down

0 comments on commit 2071627

Please sign in to comment.