Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Portus crashes when guessing LDAP email #1832
Portus crashes when guessing LDAP email while working fine without it.
Steps to reproduce
I set up Portus to use LDAP which works fine without guessing the email. But when enabling guessing with the actual attribute, Portus crashes with:
At least I would expect it to fall back to no email setup and redirecting the user to the profile page to enter it manually as stated in the docs.
Bare metal with official Docker image v2.3
ldap: enabled: true hostname: "ldap.example.com" port: 389 method: "start_tls" encryption: method: "plain" base: "dc=example,dc=com" filter: "(&(objectClass=person)(|(employeeType=temporary)(employeeType=permanent)(employeeType=technical)(employeeType=external)))" uid: "uid" authentication: enabled: true bind_dn: "cn=readonly,ou=admin,dc=example,dc=com" password: "secret123" guess_email: enabled: true attr: "mail"
Portus version: v2.3
There are two things to note here:
Thanks for the report !