Recreate an ARRAY ref for ldapGroupAttributeNameSearch (#1)

This commit is contained in:
Clément Oudot 2010-09-01 10:59:11 +00:00
parent aa42a1cd62
commit a5ac6ee02b
2 changed files with 16 additions and 9 deletions

View File

@ -21,13 +21,13 @@
# CUSTOM FUNCTION
# If you want to create customFunctions in rules, declare them here:
;customFunctions => 'function1 function2',
;customFunctions => 'Package::func1 Package::func2',
;customFunctions = function1 function2
;customFunctions = Package::func1 Package::func2
# CROSS-DOMAIN
# If you have some handlers that are not registered on the main domain,
# uncomment this
;cda => 1,
;cda = 1
[configuration]
@ -89,13 +89,13 @@ localStorageOptions={ 'namespace' => 'MyNamespace', 'default_expires_in' => 600,
;portalDisplayLogout = 1
;portalDisplayResetPassword = 1
;portalDisplayChangePassword = 1
;portalDisplayAppslist => 1
;portalDisplayAppslist = 1
# Allow password autocompletion (passwords stored in user web browsers)
;portalAutocomplete = 1
# Require the old password when changing password
;portalRequireOldPassword = 1
# Attribute displayed as connected user
;portalUserAttr => "mail",
;portalUserAttr = mail
# LOG
# By default, all is logged in Apache file. To log user actions by
@ -108,7 +108,7 @@ localStorageOptions={ 'namespace' => 'MyNamespace', 'default_expires_in' => 600,
# Note that getAttibutes() will be activated but on a different URI
# (http://auth.example.com/index.pl/sessions)
# You can also restrict attributes and macros exported by getAttributes
;exportedAttr => uid mail
;exportedAttr = uid mail
# PASSWORD POLICY
# Remove comment to use LDAP Password Policy
@ -151,7 +151,7 @@ localStorageOptions={ 'namespace' => 'MyNamespace', 'default_expires_in' => 600,
# Attribute used to identify a group. The group will be displayed as
# cn|mail|status, where cn, mail and status will be replaced by their
# values.
;ldapGroupAttributeNameSearch = ['cn']
;ldapGroupAttributeNameSearch = cn mail
# NOTIFICATIONS SERVICE
# Use it to be able to notify messages during authentication
@ -168,7 +168,7 @@ localStorageOptions={ 'namespace' => 'MyNamespace', 'default_expires_in' => 600,
# that, undeclared sites will be rejected. You can also set here a list
# of trusted domains or hosts separated by spaces. This is usefull if
# your website use Lemonldap::NG without handler with SOAP functions.
;trustedDomains => 'my.trusted.host example2.com',
;trustedDomains = my.trusted.host example2.com
# MENU
applicationList={ 'Menu' => { type => 'category', 'Example' => { type => 'category', 'test1' => { type => 'application', options => { name => 'Application Test 1', uri => 'http://test1.__DNSDOMAIN__/', description => 'A simple application displaying authenticated user', logo => 'wheels.png', display => 'auto', }, },'test2' => { type => 'application', options => { name => 'Application Test 2', uri => 'http://test2.__DNSDOMAIN__/', description => 'The same simple application displaying authenticated user', logo => 'wheels.png', display => 'auto', }, }, },'Administration' => { type => 'category', 'manager' => { type => 'application', options => { name => 'WebSSO Manager', uri => 'http://manager.__DNSDOMAIN__/', description => 'Configure LemonLDAP::NG WebSSO', logo => 'tools.png', display => 'on', }, },'sessions' => { type => 'application', options => { name => 'Sessions explorer', uri => 'http://manager.__DNSDOMAIN__/sessions.pl', description => 'Explore WebSSO sessions', logo => 'tools.png', display => 'on', }, }, },'Documentation' => { type => 'category', 'localdoc' => { type => 'application', options => { name => 'Local documentation', uri => 'http://manager.__DNSDOMAIN__/doc/', description => 'Documentation supplied with LemonLDAP::NG', logo => 'docs.png', display => 'on', }, },'officialwebsite' => { type => 'application', options => { name => 'Offical Website', uri => 'http://lemonldap.objectweb.org/', description => 'Official LemonLDAP::NG Website', logo => 'web.png', display => 'on', }, }, }, }, }

View File

@ -12,9 +12,16 @@ use Lemonldap::NG::Portal::_LDAP 'ldap'; #link protected ldap
our $VERSION = '0.2';
## @method int userDBInit()
# Does nothing.
# Transform ldapGroupAttributeNameSearch in ARRAY ref
# @return Lemonldap::NG::Portal constant
sub userDBInit {
my $self = shift;
unless ( ref $self->{ldapGroupAttributeNameSearch} eq 'ARRAY' ) {
my @values = split( /\s/, $self->{ldapGroupAttributeNameSearch} );
$self->{ldapGroupAttributeNameSearch} = \@values;
}
PE_OK;
}