#!/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]