+Attribute to change LDAP alias dereference (Closes: #787)

environments/ppa-mbqj77/deployments/1
Xavier Guimard 10 years ago
parent 9aedda17d4
commit ae675692c4
  1. 1
      lemonldap-ng-common/lib/Lemonldap/NG/Common/Conf/DefaultValues.pm
  2. 4
      lemonldap-ng-manager/lib/Lemonldap/NG/Manager/Attributes.pm
  3. 11
      lemonldap-ng-manager/lib/Lemonldap/NG/Manager/Build/Attributes.pm
  4. 4
      lemonldap-ng-manager/lib/Lemonldap/NG/Manager/Build/Tree.pm
  5. 1
      lemonldap-ng-manager/site/static/languages/en.json
  6. 1
      lemonldap-ng-manager/site/static/languages/fr.json
  7. 2
      lemonldap-ng-manager/site/static/struct.json
  8. 1
      lemonldap-ng-portal/lib/Lemonldap/NG/Portal/UserDBLDAP.pm

@ -95,6 +95,7 @@ sub defaultValues {
'ldapPort' => 389,
'ldapPpolicyControl' => 0,
'ldapPwdEnc' => 'utf-8',
'ldapSearchDeref' => 'find',
'ldapServer' => 'ldap://localhost',
'ldapSetPassword' => 0,
'ldapTimeout' => 120,

@ -599,6 +599,10 @@ qr/^(?:(?:(?:(?:[a-zA-Z0-9][-a-zA-Z0-9]*)?[a-zA-Z0-9])[.])*(?:[a-zA-Z][-a-zA-Z0-
'ldapRaw' => {
'type' => 'text'
},
'ldapSearchDeref' => {
'default' => 'find',
'type' => 'select'
},
'ldapServer' => {
'default' => 'ldap://localhost',
'test' => sub { "DUMMY" },

@ -1650,6 +1650,17 @@ m{^(?:ldapi://[^/]*/?|\w[\w\-\.]*(?::\d{1,5})?|ldap(?:s|\+tls)?://\w[\w\-\.]*(?:
default => 0,
type => 'bool',
},
ldapSearchDeref => {
type => 'select',
select => [
{ k => 'never', v => 'never' },
{ k => 'search', v => 'search' },
{ k => 'find', v => 'find' },
{ k => 'always', v => 'always' }
],
default => 'find',
documentation => '"deref" para of Net::LDAP::search()',
},
mailLDAPFilter => { type => 'text', },
LDAPFilter => { type => 'text', },
AuthLDAPFilter => { type => 'text', },

@ -239,7 +239,7 @@ sub tree {
form => 'simpleInputContainer',
nodes => [
'LDAPFilter', 'AuthLDAPFilter',
'mailLDAPFilter'
'mailLDAPFilter', 'ldapSearchDeref',
]
},
{
@ -269,7 +269,7 @@ sub tree {
'ldapPasswordResetAttribute',
'ldapPasswordResetAttributeValue'
]
}
},
]
},
{

@ -249,6 +249,7 @@
"ldapPort": "Server port",
"ldapPwdEnc": "LDAP password encoding",
"ldapRaw": "Binary attributes",
"ldapSearchDeref": "Alias dereference",
"ldapServer": "Server host",
"ldapSetPassword": "Password modify extended operation",
"ldapTimeout": "Timeout",

@ -249,6 +249,7 @@
"ldapPort": "Port",
"ldapPwdEnc": "Encodage des mots de passe LDAP",
"ldapRaw": "Attributs binaires",
"ldapSearchDeref": "Déréférence des alias",
"ldapServer": "Hôte",
"ldapSetPassword": "Opération étendue password modify",
"ldapTimeout": "Temps maximum d'inactivité",

File diff suppressed because one or more lines are too long

@ -76,6 +76,7 @@ sub search {
base => $self->{ldapBase},
scope => 'sub',
filter => $self->{LDAPFilter},
deref => $self->{ldapSearchDeref} || 'find',
attrs => \@attrs,
);
$self->lmLog(

Loading…
Cancel
Save