Page MenuHomePhabricator

Bitu calls shell account name as 'username'
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

What happens?:
The page has a line which lists your shell account name (uid LDAP property) as 'username'.

What should have happened instead?:
The uid property should be listed as the 'shell account name' per the terminology we've standardized on to make our documentation easy to follow.

Software version (skip for WMF-hosted wikis like Wikipedia): n/a

Other information (browser name/version, screenshots, etc.): n/a

Event Timeline

Restricted Application added a subscriber: • Aklapper. · View Herald Transcript
taavi renamed this task from Bitu calls to Bitu calls shell account name as 'username'.Jun 12 2023, 5:04 PM
taavi updated the task description. (Show Details)

The same bug seems to apply to the password reset workflow.

SLyngshede-WMF claimed this task.
SLyngshede-WMF subscribed.

The field is now called: "SSH access (shell) username"

Change 988677 had a related patch set uploaded (by Slyngshede; author: Slyngshede):

[operations/software/bitu@master] Clearify that the user needs to provide shell account.

https://gerrit.wikimedia.org/r/988677

The field is now called: "SSH access (shell) username"

But at https://idm.wikimedia.org/ldapbackend/properties/ it's not listed at all? It seems useful in general to list it (but greyed out, since we don't allow to change it).

Change 989446 had a related patch set uploaded (by Slyngshede; author: Slyngshede):

[operations/puppet@production] C:idm::deployment Display UID from LDAP

https://gerrit.wikimedia.org/r/989446

That's actually a little silly, we show uidNumber, but not UID.

Let's just add it, see: https://gerrit.wikimedia.org/r/c/operations/puppet/+/989446

SLyngshede-WMF changed the task status from Open to In Progress.Jan 10 2024, 9:09 AM
SLyngshede-WMF triaged this task as Low priority.

Change 989446 merged by Slyngshede:

[operations/puppet@production] C:idm::deployment Display UID from LDAP

https://gerrit.wikimedia.org/r/989446

That's actually a little silly, we show uidNumber, but not UID.

Let's just add it, see: https://gerrit.wikimedia.org/r/c/operations/puppet/+/989446

Let's also list the Wikimedia Developer Name as well? It was implicitly used during login, but given that we list all attributes here, it makes sense to also include it.

On re-reading the code for password reset we spotted a bit of a mistake. The password reset uses the UID and not CN, when fetching the user from LDAP, which is the reason for updating the text. This is actually somewhat wrong, the user was just sent to the password reset from the IDP or WikiTech, which both expects the CommonName to be given as the username, so asking for a different username is rather confusing.

I'll update the code to use the CN attribute as the username instead as well as update the text to reflect that.

Change 988677 merged by Slyngshede:

[operations/software/bitu@master] Modify password reset to take CN as username.

https://gerrit.wikimedia.org/r/988677

Just realized that part was a duplicate of T347692: IDM uses shell account name for password reset form that I filed back in September.

We changed the password reset form to instead use the "CN" which is the username the user most likely just attempted to authenticate with on IDP / Wikitech or other systems that uses LDAP as the backend.