Re: [Kolab-devel] Duplicate UID generated in generate_uid function...

Louis Carreiro <[email protected]>
Newsgroups gmane.comp.kde.devel.kolab
Message-ID <[email protected]>
Thanks for the reply Jeroen!

I was trying to stay away from going to a non-release build but I went ahead and started over and went with a 3.1 build to see how it is. The first thing I did was edited /etc/kolab/kolab.conf and added the UID policy in the LDAP section as mentioned, restarted kolabd and took a look. It doesn't seem to be applying the setting to the UID in webadmin. The UID listed is still just the surname. It is, however, incrementing the UID. The webadmin package is kolab-webadmin-3.1.0-1.el6.kolab_3.1.noarch. 

I'm not sure if I'm missing something here.

v/r,
Louis

> From: [email protected]
> To: [email protected]
> Date: Wed, 9 Oct 2013 08:51:13 +0200
> CC: [email protected]
> Subject: Re: [Kolab-devel] Duplicate UID generated in generate_uid function...
> 
> On Tuesday, October 08, 2013 10:18:20 AM Louis Carreiro wrote:
>> Hey all!
>> 
>> I sent this out on the Kolab user list but didn't get much feedback
>> and thought this may be better suited for the devel list.
>> 
>> So I'm doing a new implementation of Kolab 3.0 and before releasing
>> it, I wanted to change the UID being generated from just the lastname
>> ("sn") to first name dot last name ("givenname"."sn").
>> 
>> In the process of going over the generate_uid function, I noticed that
>> it is acting a bit funny and always allowing for a duplicate UID to
>> be generated, regardless of changing how the UID is formed. In case
>> anyone wants to duplicate it, I've already got a user with a UID of
>> "test.user" in the 389 server. And a bit more information, this is a
>> full install (all packages) of Kolab 3.0 on CentOS 6 and the
>> kolab-webadmin version is 3.0.4-1.el6.kolab_3.0.
>> 
> 
> You will find that the form_value.generate_uid() function has been much 
> improved in later versions of the kolab-webadmin, such as 3.1.0.
> 
> In 3.1.0, it also takes a setting "policy_uid" (in the [ldap] section) 
> to heart, enabling you to set it to:
> 
> policy_uid = %(givenname)s.%(surname)s
> 
> I hope that helps.
> 
> Kind regards,
> 
> Jeroen van Meeuwen
> 
> -- 
> Systems Architect, Kolab Systems AG
> 
> e: vanmeeuwen at kolabsys.com
> m: +44 74 2516 3817
> w: http://www.kolabsys.com
> 
> pgp: 9342 BF08
> _______________________________________________
> devel mailing list
> [email protected]
> https://lists.kolab.org/mailman/listinfo/devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.