Problem:
I cannot login with my primary email address in nextcloud
Solution:
You have to set the mail attribute for nextcloud to use this in the app:
Here you can select “Edit LDAP Query” and than you can select the checkbox for LDAP/ AD Email Adress