check valid clipper

This commit is contained in:
Qwann 2018-03-29 19:06:36 +02:00
parent 3be031957f
commit 6b66ae3264

View file

@ -23,6 +23,7 @@ class ClipperProvider(CASProvider):
def extract_common_fields(self, data): def extract_common_fields(self, data):
def get_names(clipper): def get_names(clipper):
assert clipper.isalnum()
try: try:
ldap.set_option(ldap.OPT_X_TLS_REQUIRE_CERT, ldap.set_option(ldap.OPT_X_TLS_REQUIRE_CERT,
ldap.OPT_X_TLS_NEVER) ldap.OPT_X_TLS_NEVER)