save_group => [\&html_start, \&action_save_group, \&html_end]
);
-read_config ();
+{
+ my @files = (qw(/etc/licom/licom.conf));
+ push (@files, './licom.conf') if (-r './licom.conf');
+ read_config (@files);
+}
# make sure AuthLDAPRemoteUserIsDN is enabled.
die unless ($ENV{'REMOTE_USER'});
-set_config ('base_dn', $ENV{'REMOTE_USER'});
+#set_config ('base_dn', $ENV{'REMOTE_USER'});
die unless (defined (get_config ('uri'))
and defined (get_config ('base_dn'))
uri => get_config ('uri'),
bind_dn => get_config ('bind_dn'),
password => get_config ('password')
-) or die;
+) or die ("LiCoM::Connection->connect failed.");
our ($UserCN, $UserID) = LiCoM::Person->get_user ($ENV{'REMOTE_USER'});
if (!$UserCN)
{
- die;
+ die ("UserCN is not set. Make sure `AuthLDAPRemoteUserIsDN' in enabled.");
}
if (!defined ($Actions{$Action}))