create kolab user from command line
Dumitru Catalin
d.i.catalin at gmail.com
Wed Sep 30 11:12:03 CEST 2015
Hello,
Yes, this is ok, but would be more useful if i can pass the arguments
directly from the command, so can automate this in a shell script.
P.S.: In the python script i can set the password for kolab users?
On 29 September 2015 at 13:48, Timotheus Pokorra <timotheus at kolab.org>
wrote:
> 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
> _______________________________________________
> users mailing list
> users at lists.kolab.org
> https://lists.kolab.org/mailman/listinfo/users
>
--
_______________________________
Dumitru Ionut Catalin
tel.: 0762676337
e-mail: d.i.catalin at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kolab.org/pipermail/users/attachments/20150930/eacca942/attachment.html>
More information about the users
mailing list