Chop stuff out
[catagits/Catalyst-Authentication-Store-LDAP.git] / t / lib / Test-Session-Broken / lib / Test / LDAP.pm
1 package Test::LDAP;
2 use Moose;
3 use namespace::autoclean;
4
5 use Catalyst::Runtime 5.80;
6
7 use Catalyst qw/
8     -Debug
9     Authentication
10     Session
11     Session::State::Cookie
12     Session::Store::FastMmap
13 /;
14
15 extends 'Catalyst';
16
17 our $VERSION = '0.01';
18
19 # Configure the application.
20 #
21 # Note that settings in test_ldap_web.conf (or other external
22 # configuration file that you set up manually) take precedence
23 # over this when using ConfigLoader. Thus configuration
24 # details given here can function as a default configuration,
25 # with an external configuration file acting as an override for
26 # local deployment.
27
28 __PACKAGE__->config(
29     # Disable deprecated behavior needed by old applications
30     disable_component_resolution_regex_fallback => 1,
31
32     authentication => {
33         default_realm => "ldap",
34
35         realms => {
36             ldap => {
37                 credential => {
38                     "class" => "Password",
39                     "password_field" => "password",
40                     "password_type" => "self_check",
41                     "password_hash_type" => "crypt",
42                 },
43
44                 "store" => {
45                     "binddn"                => "anonymous",
46                     "bindpw"                => "dontcare",
47                     "class"                 => "LDAP",
48                     "ldap_server"           => "ldap.test.no",
49                     "ldap_server_options"   => { 
50                         "timeout" => 30, 
51                         "port" => "636", 
52                         "scheme" => "ldaps" 
53                     },
54                     "role_basedn"           => "ou=stavanger,o=test,c=no",
55                     "role_field"            => "cn",
56                     "role_filter"           => "(&(objectClass=groupOfNames)(member=%s))",
57                     "user_scope"            => "one",
58                     "user_search_options"   => { 
59                         "deref" => "always" 
60                     }
61                 }
62             }
63         }
64     }
65 );
66
67 __PACKAGE__->setup();
68
69 1;