From a6330ef5028d07e8eb5119b11cb7cf9cccfa521c Mon Sep 17 00:00:00 2001 From: Thomas Arendsen Hein Date: Thu, 19 Feb 2009 15:37:14 +0100 Subject: * lib/Kolab/LDAP.pm: Prevent "Use of uninitialized value in string eq" if attribute kolabhomeserveronly is not set. --- ChangeLog | 5 +++++ lib/Kolab/LDAP.pm | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 88d980e..0da8a44 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-02-18 Thomas Arendsen Hein + + * lib/Kolab/LDAP.pm: Prevent "Use of uninitialized value in string eq" + if attribute kolabhomeserveronly is not set. + 2009-02-17 Thomas Arendsen Hein * 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; -- cgit v0.12