예제 #1
0
파일: robot.py 프로젝트: Theer108/invenio
 def __init__(self, enforce_external_nicknames=False,
         email_attribute_name=CFG_ROBOT_EMAIL_ATTRIBUTE_NAME,
         nickname_attribute_name=CFG_ROBOT_NICKNAME_ATTRIBUTE_NAME,
         groups_attribute_name=CFG_ROBOT_GROUPS_ATTRIBUTE_NAME,
         groups_separator=CFG_ROBOT_GROUPS_SEPARATOR,
         timeout_attribute_name=CFG_ROBOT_TIMEOUT_ATTRIBUTE_NAME,
         userip_attribute_name=CFG_ROBOT_USERIP_ATTRIBUTE_NAME,
         check_user_ip=4,
         external_id_attribute_name=CFG_ROBOT_NICKNAME_ATTRIBUTE_NAME,
         use_zlib=True,
         ):
     ExternalAuth.__init__(self, enforce_external_nicknames=enforce_external_nicknames)
     self.email_attribute_name = email_attribute_name
     self.nickname_attribute_name = nickname_attribute_name
     self.groups_attribute_name = groups_attribute_name
     self.groups_separator = groups_separator
     self.timeout_attribute_name = timeout_attribute_name
     self.userip_attribute_name = userip_attribute_name
     self.external_id_attribute_name = external_id_attribute_name
     self.check_user_ip = check_user_ip
     self.use_zlib = use_zlib
예제 #2
0
 def __init__(
     self,
     enforce_external_nicknames=False,
     email_attribute_name=CFG_ROBOT_EMAIL_ATTRIBUTE_NAME,
     nickname_attribute_name=CFG_ROBOT_NICKNAME_ATTRIBUTE_NAME,
     groups_attribute_name=CFG_ROBOT_GROUPS_ATTRIBUTE_NAME,
     groups_separator=CFG_ROBOT_GROUPS_SEPARATOR,
     timeout_attribute_name=CFG_ROBOT_TIMEOUT_ATTRIBUTE_NAME,
     userip_attribute_name=CFG_ROBOT_USERIP_ATTRIBUTE_NAME,
     check_user_ip=4,
     external_id_attribute_name=CFG_ROBOT_NICKNAME_ATTRIBUTE_NAME,
     use_zlib=True,
 ):
     ExternalAuth.__init__(
         self, enforce_external_nicknames=enforce_external_nicknames)
     self.email_attribute_name = email_attribute_name
     self.nickname_attribute_name = nickname_attribute_name
     self.groups_attribute_name = groups_attribute_name
     self.groups_separator = groups_separator
     self.timeout_attribute_name = timeout_attribute_name
     self.userip_attribute_name = userip_attribute_name
     self.external_id_attribute_name = external_id_attribute_name
     self.check_user_ip = check_user_ip
     self.use_zlib = use_zlib
예제 #3
0
파일: sso.py 프로젝트: Theer108/invenio
 def __init__(self, enforce_external_nicknames=False):
     """Initialize stuff here"""
     ExternalAuth.__init__(self, enforce_external_nicknames)
     self.egroup_cache = None
예제 #4
0
 def __init__(self, enforce_external_nicknames=False):
     """Initialize stuff here"""
     ExternalAuth.__init__(self, enforce_external_nicknames)
     self.egroup_cache = None
예제 #5
0
파일: ldap.py 프로젝트: chokribr/invenio-1
 def __init__(self):
     """Initialize stuff here"""
     ExternalAuth.__init__(self)
     self.enforce_external_nicknames = True