diff options
-rw-r--r-- | catdap.yml | 10 | ||||
-rw-r--r-- | lib/CatDap.pm | 1 |
2 files changed, 7 insertions, 4 deletions
@@ -20,7 +20,7 @@ Model::Proxy: # dn and password should not be required here, we rebind with credentials # from the authenticated user using Model::LDAP::FromAuthentication Model::User: - base: ou=People,dc=mageia,dc=org + base: dc=mageia,dc=org host: ldap.mageia.org start_tls: 1 @@ -43,10 +43,12 @@ authentication: user_scope: 'one' user_field: 'uid' use_roles: 1 - role_basedn: 'ou=group,dc=mageia,dc=org' - role_scope: 'one' + role_basedn: 'dc=mageia,dc=org' + role_scope: 'sub' role_field: 'cn' - role_value: 'uid' + role_value: 'dn' + role_filter: '(member=%s)' + role_search_as_user: 1 Controller::User: # Attributes that the user can edit. Attributes present but not listed here diff --git a/lib/CatDap.pm b/lib/CatDap.pm index 93f5ece..c6bf872 100644 --- a/lib/CatDap.pm +++ b/lib/CatDap.pm @@ -20,6 +20,7 @@ use Catalyst qw/ Session::Store::File Captcha Authentication + Authorization::Roles I18N /; |