def set_passwd(self, usr):
"""Set password for given user from the plaintext password
in usr.passwd."""
usr.userPassword = self.userPassword(usr.passwd)
self.wrapper(self.ldap.modify_s,
self.uid2dn(usr.uid), ((ldap.MOD_REPLACE, 'userPassword',
usr.userPassword), ))
评论列表
文章目录