NAME

OpusVL::AppKit::RolesFor::Model::LDAPAuth

VERSION

version 2.28

SYNOPSIS

# in your model
__PACKAGE__->config(
    schema_class => 'Aquarius::OpenERP::Schema',
    traits => ['+OpusVL::AppKit::RolesFor::Model::LDAPAuth'],
);

# or in your catalyst.conf, 

traits +OpusVL::AppKit::RolesFor::Model::LDAPAuth
ldap_server ldap
user_base_dn ou=People,dc=opusvl
user_field uid

# when authenticating a user we will identify the user by
# $user_field=$username,$user_base_dn

DESCRIPTION

This trait extends your DBIC Model to setup the OpusVL::AppKit::LDAPAuth module.

NAME

OpusVL::AppKit::RolesFor::Model::LDAPAuth

ATTRIBUTES

ldap_server

The LDAP server address. i.e. ldap.opusvl.com

user_base_dn

The dn for locating a user, excluding the actual username bit.

For example, if uid=colin,ou=People,dc=opusvl identifies the user colin then the user_base_dn should be "ou=People,dc=opusvl".

user_field

This is the field used to identify the username in LDAP. Assuming you have the dn used in the previous example this should be uid.

SEE ALSO

To complete the integration with Catalyst you need to add the trait OpusVL::AppKit::RolesFor::Schema::LDAPAuth to your schema class too.

OpusVL::AppKit::LDAPAuth is the class used to do the actual authentication.

AUTHOR

OpusVL - www.opusvl.com

COPYRIGHT AND LICENSE

This software is copyright (c) 2010 by OpusVL - www.opusvl.com.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.