<div dir="ltr">Hello,<div><br></div><div>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.</div><div>P.S.: In the python script i can set the password for kolab users?</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 29 September 2015 at 13:48, Timotheus Pokorra <span dir="ltr"><<a href="mailto:timotheus@kolab.org" target="_blank">timotheus@kolab.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello Dumitru,<br>
<br>
>> How can i create kolab users from command line?<br>
<br>
Have a look at this command:<br>
kolab add-user<br>
<br>
It asks for the parameters interactively.<br>
<br>
But if you want, you can write a small python script as well, passing<br>
an array parameter with these values:<br>
<br>
 {'type_id': '1', u'preferredlanguage': u'en_US', 'object_type':<br>
'user', u'objectclass': [u'inetorgperson', u'kolabinetorgperson',<br>
u'mailrecipient', u'organizationalperson', u'person', u'top'], u'sn':<br>
'Pokorra', u'mail': '<a href="mailto:test@kolab.pokorra.de">test@kolab.pokorra.de</a>', u'ou':<br>
u'ou=people,dc=kolab,dc=pokorra,dc=de', u'givenname': 'Timo'}<br>
<br>
see the code: <a href="https://cgit.kolab.org/pykolab/tree/pykolab/cli/cmd_add_user.py" rel="noreferrer" target="_blank">https://cgit.kolab.org/pykolab/tree/pykolab/cli/cmd_add_user.py</a><br>
and <a href="https://cgit.kolab.org/pykolab/tree/pykolab/wap_client/__init__.py#n564" rel="noreferrer" target="_blank">https://cgit.kolab.org/pykolab/tree/pykolab/wap_client/__init__.py#n564</a><br>
<br>
hope this helps,<br>
  Timotheus<br>
_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@lists.kolab.org">users@lists.kolab.org</a><br>
<a href="https://lists.kolab.org/mailman/listinfo/users" rel="noreferrer" target="_blank">https://lists.kolab.org/mailman/listinfo/users</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><span>_______________________________</span></div>
<div>Dumitru Ionut Catalin<br><br>tel.: 0762676337<br>e-mail: <a href="mailto:d.i.catalin@gmail.com" target="_blank">d.i.catalin@gmail.com</a></div>

<div> </div>
<div><span></span><span></span><br><br> </div></div></div>
</div>