summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/Kolab/LDAP.pm3
1 files changed, 2 insertions, 1 deletions
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;