Add AD attributes in Manager for trunk (#822)

environments/ppa-mbqj77/deployments/1
Clément Oudot 10 years ago
parent ad0c56cb84
commit 5fba85ce4e
  1. 8
      lemonldap-ng-common/lib/Lemonldap/NG/Common/Conf/DefaultValues.pm
  2. 12
      lemonldap-ng-manager/lib/Lemonldap/NG/Manager/Attributes.pm
  3. 5
      lemonldap-ng-manager/lib/Lemonldap/NG/Manager/Tree.pm
  4. 3
      lemonldap-ng-manager/site/static/languages/en.json
  5. 3
      lemonldap-ng-manager/site/static/languages/fr.json
  6. 2
      lemonldap-ng-manager/site/static/struct.json

@ -5,9 +5,11 @@ our $VERSION = '2.0.0';
sub defaultValues {
return {
'activeTimer' => 1,
'apacheAuthnLevel' => 4,
'applicationList' => {
'activeTimer' => 1,
'ADPwdExpireWarning' => 0,
'ADPwdMaxAge' => 0,
'apacheAuthnLevel' => 4,
'applicationList' => {
'default' => {
'catname' => 'Default category',
'type' => 'category'

@ -1540,6 +1540,18 @@ sub attributes {
documentation => 'Demo exported variables',
},
# AD
ADPwdExpireWarning => {
type => 'int',
default => 0,
documentation => 'AD password expire warning',
},
ADPwdMaxAge => {
type => 'int',
default => 0,
documentation => 'AD password max age',
},
# LDAP
managerDn => {
type => 'text',

@ -107,6 +107,11 @@ sub tree {
form => 'authParams',
nodes => [ 'authentication', 'userDB', 'passwordDB' ],
'nodes_cond' => [
{
title => 'adParams',
help => 'authad.html',
nodes => [ 'ADPwdMaxAge', 'ADPwdExpireWarning' ]
},
{
title => 'choiceParams',
help => 'authchoice.html',

@ -25,6 +25,9 @@
"addOidcOp": "Add OpenID Connect Provider",
"addOidcRp": "Add OpenID Relying Party",
"addVhost": "Add virtualhost",
"adParams": "Active Directory Parameters",
"ADPwdExpireWarning": "Password expire warning",
"ADPwdMaxAge": "Password max age",
"advancedParams": "Advanced parameters",
"apacheParams": "Apache parameters",
"apacheAuthnLevel": "Authentication level",

@ -25,6 +25,9 @@
"addOidcOp": "Ajouter un fournisseur OpenID Connect",
"addOidcRp": "Ajouter un client OpenID Connect",
"addVhost": "Ajouter un hôte virtuel",
"adParams": "Paramètres Active Directory",
"ADPwdExpireWarning": "Avertissement avant expiration du mot de passe",
"ADPwdMaxAge": "Âge maximal du mot de passe",
"advancedParams": "Paramètres avancés",
"apacheParams": "Paramètres Apache",
"apacheAuthnLevel": "Niveau d'authentification",

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save