X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FAuthentication%2FStore%2FLDAP.pm;h=cdd025d875d85af8aadc31a74be0a9db16e06caf;hb=62534b1b4eb2c8f2ab4208768f6924c25eb80e7b;hp=4a43a7c200404cf8bf02699af14d954bf3e8d11b;hpb=2d7fcddedf837e0e9265e6ab85d45df29b0e40fe;p=catagits%2FCatalyst-Authentication-Store-LDAP.git diff --git a/lib/Catalyst/Authentication/Store/LDAP.pm b/lib/Catalyst/Authentication/Store/LDAP.pm index 4a43a7c..cdd025d 100644 --- a/lib/Catalyst/Authentication/Store/LDAP.pm +++ b/lib/Catalyst/Authentication/Store/LDAP.pm @@ -3,7 +3,7 @@ package Catalyst::Authentication::Store::LDAP; use strict; use warnings; -our $VERSION = '1.011'; +our $VERSION = '1.014'; use Catalyst::Authentication::Store::LDAP::Backend; @@ -60,7 +60,7 @@ Catalyst::Authentication::Store::LDAP user_basedn => "ou=people,dc=yourcompany,dc=com", user_field => "uid", user_filter => "(&(objectClass=posixAccount)(uid=%s))", - user_scope => "one", + user_scope => "one", # or "sub" for Active Directory user_search_options => { deref => "always" }, user_results_filter => sub { return shift->pop_entry }, }, @@ -156,6 +156,7 @@ tweeks to the example configuration will work: user_basedn: ou=Domain Users,ou=Accounts,dc=mycompany,dc=com user_field: samaccountname user_filter: (sAMAccountName=%s) + user_scope: sub He also notes: "I found the case in the value of user_field to be significant: it didn't seem to work when I had the mixed case value there."