def lookup(self,username=""):
base = ""
scope = ldap.SCOPE_SUBTREE
- filter = "tamuEduPersonNetID=" + username
- retrieve_attributes = ["sn", "givenName", "mail", "major", "classification"]
+ filter = ""
+ try:
+ uin = int(username)
+ filter = "tamuEduPersonUIN=" + username
+ except:
+ filter = "tamuEduPersonNetID=" + username
+ retrieve_attributes = ["tamuEduPersonNetID", "sn", "givenName", "mail", "major", "classification"]
count = 0
result_set = []
all = 0
self.email.setText(value)
elif(key == "major"):
self.major.setText(value)
+ elif(key == "tamuEduPersonNetID"):
+ self.setField("netid",QVariant(QString(value)))
if __name__ == "__main__":