On Tue, Jun 4, 2013 at 7:37 AM, user01 <[email protected]> wrote:
<snip>

> which (as i do understand) uses a registered datamodel. OTOH the manpages
> for
> other authentication Methods such as
> "Catalyst::Authentication::Store::LDAP"
> are using a configuration splitting things up into credetial-verification
> and storage-config if i am getting this right. There is nowhere an remark
> about having this datastore somehow registered as model. FE:
>
> __PACKAGE__->config(
>   'authentication' => {
>      default_realm => "ldap",
>      realms => {
>        ldap => {
>          credential => {
>            class => "Password",
>            etc etc ...
>          },
>          store => {
>            class => "LDAP",
>            binddn => "a=DN, b=to, c=bind, d=with",
>            bindpw => "supersecret!",
>            etc etc ...
> }}}});
>
> But using this in MyApp just gives me the error "Could not find
> authentication realm 'default'". Of course i tried renaming the realm to
> "default" :)
>
</snip>

I've used this configuration successfully in a couple of apps.

<Plugin::Authentication>
<default>
<credential>
class NoPassword
</credential>
<store>
class       LDAP
ldap_server ldaps://ldap.domain:636
binddn      uid=user,ou=group,dc=domain
bindpw      password
user_basedn ou=people,dc=domain
user_field  uid
user_filter (uid=%s)
user_scope  one
</store>
</default>
</Plugin::Authentication>

Hope that helps.

-- 
Robert Wohlfarth
_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to