More details in error message. NT.
[sfa.git] / sfa / senslab / LDAPapi.py
index 84528e7..fbc14ec 100644 (file)
@@ -47,8 +47,8 @@ class LDAPapi :
                                ldapfilter="(|"
                                for hrn in hrns:
                                        splited_hrn=hrn.split(".")
-                                       if splited_hrn[0] != "SFA_REGISTRY_ROOT_AUTH" :
-                                               print >>sys.stderr,"i know nothing about",hrn
+                                       if splited_hrn[0] != self.authname :
+                                               print >>sys.stderr,"i know nothing about",hrn, " my authname is ", self.authname, " not ", splited_hrn[0]
                                        else :
                                                login=splited_hrn[1]
                                                ldapfilter+="(uid="
@@ -87,4 +87,4 @@ class LDAPapi :
                                'date_created' : 'none',
                                'last_updated': 'none'
                                } )
-               return results
\ No newline at end of file
+               return results