aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mars-attacks.org>2013-06-24 13:14:21 +0200
committerNicolas Vigier <boklm@mars-attacks.org>2013-06-24 13:14:21 +0200
commitac4a3dfca20b2847adc70b8c4068c2f6f7764e03 (patch)
tree54144e8169be05775e93b4ddf97300b8b6fec46a /lib
parent5f03340117231b301ce96f0d420d6ac890e6df6e (diff)
downloadmgagit-ac4a3dfca20b2847adc70b8c4068c2f6f7764e03.tar
mgagit-ac4a3dfca20b2847adc70b8c4068c2f6f7764e03.tar.gz
mgagit-ac4a3dfca20b2847adc70b8c4068c2f6f7764e03.tar.bz2
mgagit-ac4a3dfca20b2847adc70b8c4068c2f6f7764e03.tar.xz
mgagit-ac4a3dfca20b2847adc70b8c4068c2f6f7764e03.zip
Add use_ldap option
To be able to disable use of ldap
Diffstat (limited to 'lib')
-rw-r--r--lib/MGA/Git.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/MGA/Git.pm b/lib/MGA/Git.pm
index 6f49833..b964c2b 100644
--- a/lib/MGA/Git.pm
+++ b/lib/MGA/Git.pm
@@ -67,6 +67,7 @@ sub re {
sub load_groups {
my ($r) = @_;
+ return unless $config->{use_ldap} eq 'yes';
my $ldap = get_ldap;
my $m = $ldap->search(
base => $config->{groupbase},
@@ -80,6 +81,7 @@ sub load_groups {
sub load_users {
my ($r) = @_;
+ return unless $config->{use_ldap} eq 'yes';
my $ldap = get_ldap;
my $m = $ldap->search(
base => $config->{userbase},