예제 #1
0
 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))
예제 #2
0
파일: store.py 프로젝트: LiptonB/freeipa
 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))