Closed bgpugh closed 4 years ago
Have you tried to login with the username instead of the full email address ?
Yup. That fails with “Missing or invalid email address from profile”
Interestingly, it looks like I can successfully log in to wiki.js with just the username & pass from another account in yunohost. The issue may be that having multiple email addresses (the default root@…, admin@…, etc) breaks the LDAP search?
Exactly, it's why the search filter is (uid={{username}})
.
I will add that information in the mail
The issue reproduces with that search filter (see screenshot in first comment)
That is to say, logging in as my yunohost admin user fails when logging in via username (“Missing or invalid email address from profile”)
Yes, it's normal. If you logged first in wikijs with your yunohost admin user, wikijs created a local account for him. And I think you can't have the same username for a local account and an ldap account
I have two users in Yunohost/LDAP:
In Wiki.js, if I go to Administration → Users, I have three:
The "Bob" account shows as "ldap" in the provider column. The other two are both "local"
The root issue for this bug is "I can't log in to wiki.js with Alice"
I'm totally guessing, but I'm it seems from the error message that when I get "Missing or invalid email address from profile" it might be due to having the email aliases set up?
Yes I also think that your issue comes from that Alice has several email addresses
So should I re-file the bug stating all of that in case we can create a better LDAP config to handle that case, or should I file a bug upstream to have wiki.js support LDAP accounts with multiple email addresses?
Well, If you can create two additional ldap users.
And test if you can or not login with both accounts
As per email, created admin account and first page, then configured LDAP as the following:
Whenever I try to log in, I get "Invalid email / username or password" and can't progress. I've tried turning on LDAP debug logging as per https://github.com/Requarks/wiki/issues/1239, but nothing is logged in the yunohost nginx logs.
I suspect this isn't enough to go on, but I'd be happy to try to gather any helpful logging if I can