create kolab user from command line
Timotheus Pokorra
timotheus at kolab.org
Tue Sep 29 12:48:03 CEST 2015
Hello Dumitru,
>> How can i create kolab users from command line?
Have a look at this command:
kolab add-user
It asks for the parameters interactively.
But if you want, you can write a small python script as well, passing
an array parameter with these values:
{'type_id': '1', u'preferredlanguage': u'en_US', 'object_type':
'user', u'objectclass': [u'inetorgperson', u'kolabinetorgperson',
u'mailrecipient', u'organizationalperson', u'person', u'top'], u'sn':
'Pokorra', u'mail': 'test at kolab.pokorra.de', u'ou':
u'ou=people,dc=kolab,dc=pokorra,dc=de', u'givenname': 'Timo'}
see the code: https://cgit.kolab.org/pykolab/tree/pykolab/cli/cmd_add_user.py
and https://cgit.kolab.org/pykolab/tree/pykolab/wap_client/__init__.py#n564
hope this helps,
Timotheus
More information about the users
mailing list