[Kolab-devel] [issue885] kolabd creates shared folders in wrong directory
Bernhard Herzog
kolab-issues at intevation.de
Tue Aug 16 17:32:49 CEST 2005
New submission from Bernhard Herzog <bh at intevation.de>:
Kolab server 2.0.1rc1 (probably also in older versions)
Normally shared folders are ultimately represented as directories under
/kolab/var/imapd/spool/domain/<kolab domain name>. If, however, the base dn
used by the kolab server does not end in the dc-elements that make up the
domain, the directories will be directly in /kolab/var/imapd/spool/domain/
because the imapd doesn't get the information to which domain the shared folder
belongs. Such a base dn can easily occur when the ldap server used with kolab
is not the one distributed and managed by kolab itself.
More precisely, the bug is most likely the following code in createObject in
LDAP.pm:
if( $p eq 'sf' ) {
# We have to create shared folders
# with names user.<fldrname>@<domain>
my @dcs = split(/,/,$object->dn());
my @dn;
while( pop( @dcs ) =~ /dc=(.*)/ ) {
push(@dn, $1);
}
if( $#dn > 0 ) { $uid .= '@'.join('.',reverse(@dn)); }
}
Note how the domain component of the uid is constructed of the dc elements at
the end of the dn of the ldap entry of the shared folder.
----------
assignedto: steffen
messages: 5282
nosy: bh, steffen
priority: bug
status: unread
title: kolabd creates shared folders in wrong directory
topic: server
________________________________________________
Kolab issue tracker <kolab-issues at intevation.de>
<https://intevation.de/roundup/kolab/issue885>
________________________________________________
More information about the devel
mailing list