Beispiel #1
0
def culdap_auth(un, pwd):
    l=LdapObject(**settings.LDAPCONFS['culdap'])
    br=l.authenticate(un,pwd)
    if br:
        return True
    else:
        return False
Beispiel #2
0
def rcldap_auth(un, pwd):
    l=LdapObject(**settings.LDAPCONFS['rcldap'])
    br=l.authenticate(un,pwd)
    if br:
        rc_user=RcLdapUser.objects.filter(username=un)[0]
        return rc_user
    else:
        return None
 def culdap_auth(self,un, pwd):
     l=LdapObject(**settings.LDAPCONFS['culdap'])
     br=l.authenticate(un,pwd)