3 use namespace::autoclean;
5 use Catalyst::Runtime 5.80;
7 # Set flags and add plugins for the application
9 # -Debug: activates the debug mode for very useful log messages
10 # ConfigLoader: will load the configuration from a Config::General file in the
11 # application's home directory
12 # Static::Simple: will serve static files from the application's root
22 Session::State::Cookie
23 Session::Store::FastMmap
28 our $VERSION = '0.01';
29 $VERSION = eval $VERSION;
31 # Configure the application.
33 # Note that settings in test_ldap_web.conf (or other external
34 # configuration file that you set up manually) take precedence
35 # over this when using ConfigLoader. Thus configuration
36 # details given here can function as a default configuration,
37 # with an external configuration file acting as an override for
41 # Disable deprecated behavior needed by old applications
42 disable_component_resolution_regex_fallback => 1,
45 default_realm => "ldap",
50 "class" => "Password",
51 "password_field" => "password",
52 "password_type" => "self_check",
53 "password_hash_type" => "crypt",
57 "binddn" => "anonymous",
58 "bindpw" => "dontcare",
62 "ldap_server" => "ldap.test.no",
63 "ldap_server_options" => {
69 "role_basedn" => "ou=stavanger,o=test,c=no",
71 "role_filter" => "(&(objectClass=groupOfNames)(member=%s))",
72 "user_scope" => "one",
73 "user_search_options" => {
83 # Start the application
89 Test::LDAP - Catalyst based application
93 script/test_ldap_web_server.pl
97 [enter your description here]
101 L<Test::LDAP::Controller::Root>, L<Catalyst>
109 This library is free software. You can redistribute it and/or modify
110 it under the same terms as Perl itself.