Skip to content
Snippets Groups Projects
Forked from DM / dm-docs
261 commits behind, 749 commits ahead of the upstream repository.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
ldapUserInfo.py 287 B
#!/usr/bin/env python

from dmObject import DmObject

class LdapUserInfo(DmObject):

    DEFAULT_KEY_LIST = [ 'userDn', 'userAttrs' ]

    def __init__(self, dict):
        DmObject.__init__(self, dict)

    def getUserPassword(self):
        return self['userAttrs']['userPassword'][0]