X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=README;h=d72cb63b46f5f65bee9117ef236b9656e0172169;hb=58b695ab0ca923a943591ac2bdbb71c94bbd732f;hp=aa04454b3aa6b5a5d7044fc712c0f6c29ffbdc2e;hpb=9638f14b4680792cf962de6c87125d4c88dd250b;p=catagits%2FCatalyst-Authentication-Store-LDAP.git diff --git a/README b/README index aa04454..d72cb63 100644 --- a/README +++ b/README @@ -38,7 +38,10 @@ SYNOPSIS user_field => "uid", user_filter => "(&(objectClass=posixAccount)(uid=%s))", user_scope => "one", # or "sub" for Active Directory - user_search_options => { deref => "always" }, + user_search_options => { + deref => 'always', + attrs => [qw( distinguishedname name mail )], + }, user_results_filter => sub { return shift->pop_entry }, }, }, @@ -50,8 +53,8 @@ SYNOPSIS my ( $self, $c ) = @_; $c->authenticate({ - id => $c->req->param("login"), - password => $c->req->param("password") + id => $c->req->param("login"), + password => $c->req->param("password") }); $c->res->body("Welcome " . $c->user->username . "!"); } @@ -131,7 +134,7 @@ CONFIGURATION OPTIONS user_basedn: ou=Domain Users,ou=Accounts,dc=mycompany,dc=com user_field: samaccountname - user_filter: (sAMAccountName=%s) + user_filter: (sAMAccountName=%s) user_scope: sub He also notes: "I found the case in the value of user_field to be