Skip to content

LDAP: prefer description over departmentNumber.

Johannes Zumthurm requested to merge NotSpecial-patch-1 into master

Created by: NotSpecial

In #398, we introduced parsing a (new) LDAP field description, which substitutes the old departmentNumber field for new students.

We have however noticed that the departmentNumber field still exists for (only a few) of the new students, however with uninformative input such as "Student".

To ensure smooth operation, we should thus check the description field first, as it is the new official field with the information we need, and only fall back to the departmentnumber field if it is missing.

Merge request reports

Loading