summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Arendsen Hein <thomas@intevation.de>2009-02-09 15:32:37 (GMT)
committerThomas Arendsen Hein <thomas@intevation.de>2009-02-09 15:32:37 (GMT)
commit4cc314a3a7cec7068a0e48abb567270e57b0fb4b (patch)
treec630f88444c438a8512095827718d341bd0a1d17
parenta982d81424ac0229fd2c422b6d80d9994212f2d0 (diff)
downloadperl-Kolab-4cc314a3a7cec7068a0e48abb567270e57b0fb4b.tar.gz
Add user attribute kolabHomeServerOnly to create user mailbox on the kolabHomeServer only.
-rw-r--r--ChangeLog5
-rw-r--r--lib/Kolab/LDAP.pm5
2 files changed, 10 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 4a6d9b4..a340af0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-02-09 Thomas Arendsen Hein <thomas@intevation.de>
+
+ * lib/Kolab/LDAP.pm: Create user mailbox on the kolabHomeServer only,
+ if attribute kolabHomeServerOnly is true.
+
2009-01-20 Mathieu Parent <math.parent@gmail.com>
* bin/*.in, sbin/*.in: POD manpages for perl-kolab (kolab/issue3355)
diff --git a/lib/Kolab/LDAP.pm b/lib/Kolab/LDAP.pm
index 7c196c8..53de921 100644
--- a/lib/Kolab/LDAP.pm
+++ b/lib/Kolab/LDAP.pm
@@ -468,6 +468,11 @@ 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' ) {
+ # 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;
+ }
Kolab::log('L', "Kolab::LDAP::createObject() for other server than $kolabhomeserver. TODO: Create referral or something, for now we just create an empty INBOX", KOLAB_DEBUG);
# We create INBOX on other servers also, to allow access to shared/published
# folders on those servers because some IMAP clients abort the connection