def __init__(self, config, dbmap, nickname): if 'type' not in dbmap or dbmap['type'] != 'DMLDAP': raise ValueError('Invalid type "%s",' ' expected "DMLDAP"' % (dbmap['type'], )) if nickname != 'DMHash': raise UnknownKeyName("Unknown Key Named '%s'" % nickname) self.ldap = iSecLdap(config['ldap_uri'], config.get('auth_type', None))
def __init__(self, config, dbmap, nickname): if 'type' not in dbmap or dbmap['type'] != 'DMLDAP': raise ValueError('Invalid type "%s",' ' expected "DMLDAP"' % (dbmap['type'],)) if nickname != 'DMHash': raise UnknownKeyName("Unknown Key Named '%s'" % nickname) self.ldap = iSecLdap(config['ldap_uri'], config.get('auth_type', None))