add task stub for ldaptasks.tasks.set_ldap_user_password

This commit is contained in:
Jan Dittberner 2015-01-19 22:43:29 +01:00
parent 42b5652bdc
commit 35eceb3307
2 changed files with 15 additions and 0 deletions

View file

@ -51,6 +51,20 @@ def create_ldap_user(username, uid, gid, gecos, homedir, shell, password):
"""
@shared_task
def set_ldap_user_password(self, username, password):
"""
This task sets the password of an existing :py:class:`LDAP user
<ldapentities.models.LdapUser>`.
:param str username: the user name
:param str password: teh clear text password
:return: :py:const:`True` if the password has been set, :py:const:`False`
if the user does not exist.
"""
@shared_task
def add_ldap_user_to_group(username, groupname):
"""