diff options
author | Buchan Milne <buchan@mageia.org> | 2010-10-26 14:51:48 +0000 |
---|---|---|
committer | Buchan Milne <buchan@mageia.org> | 2010-10-26 14:51:48 +0000 |
commit | 601b41083cf7c2186ecce70ec07aebdb9310edd6 (patch) | |
tree | 23d14b17ec560316d94f0d840f47a4ae48e9d7b3 /lib/CatDap/Model | |
parent | 195308dcc10a015aaae5fd1f1bd0be817c2127bd (diff) | |
download | identity-601b41083cf7c2186ecce70ec07aebdb9310edd6.tar identity-601b41083cf7c2186ecce70ec07aebdb9310edd6.tar.gz identity-601b41083cf7c2186ecce70ec07aebdb9310edd6.tar.bz2 identity-601b41083cf7c2186ecce70ec07aebdb9310edd6.tar.xz identity-601b41083cf7c2186ecce70ec07aebdb9310edd6.zip |
Clean up repo
Diffstat (limited to 'lib/CatDap/Model')
-rw-r--r-- | lib/CatDap/Model/Proxy.pm | 40 | ||||
-rw-r--r-- | lib/CatDap/Model/User.pm | 40 |
2 files changed, 80 insertions, 0 deletions
diff --git a/lib/CatDap/Model/Proxy.pm b/lib/CatDap/Model/Proxy.pm new file mode 100644 index 0000000..ba7e5dc --- /dev/null +++ b/lib/CatDap/Model/Proxy.pm @@ -0,0 +1,40 @@ +package CatDap::Model::Proxy; + +use strict; +use warnings; +use base qw/Catalyst::Model::LDAP/; + +__PACKAGE__->config( + host => 'ldap.mageia.org', + base => 'ou=People,dc=mageia,dc=org', + dn => '', + password => '', + start_tls => 0, + start_tls_options => { verify => 'require' }, + options => {}, # Options passed to search +); + +=head1 NAME + +CatDap::Model::Proxy - LDAP Catalyst model component + +=head1 SYNOPSIS + +See L<CatDap>. + +=head1 DESCRIPTION + +LDAP Catalyst model component. + +=head1 AUTHOR + +Buchan Milne + +=head1 LICENSE + +This library is free software; you can redistribute it and/or modify +it under the same terms as Perl itself. + +=cut + +1; diff --git a/lib/CatDap/Model/User.pm b/lib/CatDap/Model/User.pm new file mode 100644 index 0000000..2d726fc --- /dev/null +++ b/lib/CatDap/Model/User.pm @@ -0,0 +1,40 @@ +package CatDap::Model::User; + +use strict; +use warnings; +#use base qw/Catalyst::Model::LDAP/; +use Moose; +use namespace::autoclean; +extends 'Catalyst::Model::LDAP::FromAuthentication'; + +__PACKAGE__->config( + base => 'ou=People,dc=mageia,dc=org', + dn => 'cn=dummy', + password => 'dummy', +); + + +=head1 NAME + +CatDap::Model::User - LDAP Catalyst model component + +=head1 SYNOPSIS + +See L<CatDap>. + +=head1 DESCRIPTION + +LDAP Catalyst model component. + +=head1 AUTHOR + +Buchan Milne + +=head1 LICENSE + +This library is free software; you can redistribute it and/or modify +it under the same terms as Perl itself. + +=cut + +1; |