Page MenuHomePhabricator

Specific user cannot log into Phabricator with LDAP account (Phab thinks it's registering a new account, hence email address is already in use)
Closed, ResolvedPublic

Description

Filling this on behalf of @dschwen

This user reported in #wikimedia-cloud that they are finding it hard to login with an ldap account.

<dschwen> holy cr@p, why is it so hard to log in to phabricator all of a sudden. I cannot us mt wikimedia unified login (both the username as well as teh email already exist), and I cannot use the ldap login, because a user with the same email already exists. I'm deadlocked

See Also: T138653: Fix @Jarry1250's Phab account who cannot log in due to T138672 (two LDAP records)

Event Timeline

https://phabricator.wikimedia.org/p/dschwen/ says that this Phabricator account is linked to LDAP.

I cannot use the ldap login, because a user with the same email already exists. I'm deadlocked

Please provide a list of steps to reproduce the problem, with URLs and exact error messages.

Only partially sorted out in #wikimedia-devtools.
Initially https://phabricator.wikimedia.org/p/dschwen/ was only linked to the "LDAP user".
Trying to log in via LDAP, Phab says:

The email address ("wikimedia@.......") associated with the external account is already in use by an existing Phabricator account. Multiple Phabricator accounts may not have the same email address, so you can not use this email address to register a new Phabricator account.

@dschwen checked and could successfully log into https://wikitech.wikimedia.org/ (but had issues with that a few weeks back, and abogott fixed them. Also think "capital letter username issues" in Gerrit lately).

After @Aklapper triggered another "Welcome Email" for the user's Phab account, @dschwen got into his Phab account and could also attach his "MediaWiki user" account.

Then @dschwen tried to refresh his LDAP account in the Phab settings, triggering this error:

Your Phabricator account is already connected to an external account on this provider ("LDAP"), but you are currently logged in to the provider with a different account. Log out of the external service, then log back in with the correct account before refreshing the account link.

So the log in via LDAP still does not work, and it is unclear why (but at least @dschwen can comment directly in this task now).

Aklapper renamed this task from User dschwen finding it hard to log into phabricator with ldap account to Specific user cannot log into Phabricator with LDAP account (Phab thinks it's registering a new account, hence email address is already in use).Jun 23 2017, 3:46 PM

but at least @dschwen can comment directly in this task now

Indeed I can. Let me know if I can do anything else to help debug this!

Aklapper triaged this task as Lowest priority.Jul 27 2018, 7:20 PM
Aklapper changed the task status from Open to Stalled.Nov 2 2023, 10:59 AM

@dschwen: Is logging in via LDAP into Phab still an issue?
(Note to myself: Both your LDAP account Dschwen and your Phab account use the same email address.)

Assuming this has been resolved. Please reopen if not. Thanks!