Initials as uid (python)

Henning henne.gwath at gmx.de
Tue Apr 8 20:39:16 CEST 2014


Hi,

I want to set uids for new users as the initials of the user. How do I
do that with the pythonic syntax of kolab.conf?

policy_uid = '%(givenname)s'[0:1]'%(surname)s'[0:1].lower()

is not valid and

policy_uid = '{1}{2}'.format('%(givenname)s'[0:1]',
'%(surname)s'[0:1]).lower()

either. Please help me out with this.

Henning


More information about the users mailing list