- Timestamp:
- 26/11/10 20:47:50 (2 years ago)
- Children:
- 4ff36b1676f8899d85c264278fbbd183afeff21f, 41f7476643cbd980932f209e85d50fc56529a327
- Parents:
- 5c0fe8482f8ffbc92b3814afa47c79ee6fdb549a
- git-committer:
- Dererk <dererk@…> (26/11/10 20:47:50)
- File:
-
- 1 edited
-
arma2/frontend/user.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
arma2/frontend/user.py
r7c43132 r945ee71 23 23 return False 24 24 25 def checkIfUserExist(user):26 """ Funcion interna para pre-validar la disponibilidad de un usuario tras el POST27 """28 l=ldap.open(ldapSERVER)29 # Compatibility mode, JIC ®30 # l.protocol_version = ldap.VERSION231 32 # This might through an exception33 try:34 l.simple_bind("","")35 return user.lower() in [entry[1]['uid'][0].lower() for entry in l.search_s(ldapBASE,2,'uid=*')]36 except ldap.SERVER_DOWN:37 # I'll do something interesting with this in the future...38 return None39 except:40 return None
Note: See TracChangeset
for help on using the changeset viewer.

