summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--lib/Kolab/LDAP.pm3
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 88d980e..0da8a44 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-02-18 Thomas Arendsen Hein <thomas@intevation.de>
+
+ * lib/Kolab/LDAP.pm: Prevent "Use of uninitialized value in string eq"
+ if attribute kolabhomeserveronly is not set.
+
2009-02-17 Thomas Arendsen Hein <thomas@intevation.de>
* sbin/kolab_bootstrap.in: kolab/issue3407 (kolab_bootstrap: improve
diff --git a/lib/Kolab/LDAP.pm b/lib/Kolab/LDAP.pm
index af87d6d..dec3467 100644
--- a/lib/Kolab/LDAP.pm
+++ b/lib/Kolab/LDAP.pm
@@ -468,7 +468,8 @@ sub createObject
Kolab::log('L', "Kolab::LDAP::createObject() skipping shared folder for other server $kolabhomeserver", KOLAB_DEBUG);
return;
}
- if( $object->get_value('kolabhomeserveronly') eq 'true' ) {
+ my $kolabhomeserveronly = $object->get_value('kolabhomeserveronly');
+ if( defined($kolabhomeserveronly) && $kolabhomeserveronly eq 'true' ) {
# Don't create the user's mailbox if it should be created on the kolabHomeServer only
Kolab::log('L', "Kolab::LDAP::createObject() skipping user mailbox creation for other server $kolabhomeserver", KOLAB_DEBUG);
return;