ubuntu / aad-auth

Azure AD authentication module for Ubuntu
GNU Lesser General Public License v3.0
143 stars 22 forks source link

Issue: user id and group idtoo long for many software #441

Open ruben-herold opened 8 months ago

ruben-herold commented 8 months ago

Is there an existing issue for this?

Describe the issue

hi,

we try to get it running on ubuntu 23.10 and run into some issues. Looks like the same like in #200. After digging a little bit deeper into the system, we could see that for example, xdg-desktop-portal-gnome runs into a long timeout. Removing it and replace it with xdg-desktop-portal-wl and it runs.

But there were many other errors. After looking a round, we found that some software seems to have problems with the large uid/gid which is created by aadauth. Here for example: 3583755937 as uid and gid.

If I create a local user with such a high uid and gid I see the same problems as with aad-auth.

Steps to reproduce it

ubuntu 23.10 install aad auth Login as Azure ad user try to start software from gnome for example firefox

Ubuntu users: System information and logs

No response

Non Ubuntu users: System information and logs

Environment

Log files

Please redact/remove sensitive information:

aad-auth logs can be found in the system journal and queried with:
`journalctl | grep _aad`

Application settings

Please redact/remove sensitive information:

You can get the configuration file from /etc/aad.conf

Relevant information

No response

Double check your logs

sindreal commented 8 months ago

Found this ticket while troubleshooting this exact issue on a fleet of VMs. Worrying that it's not getting any attention after being reported nearly immediately after release of aad-support. (Ref #200 )

Any workaround?

ruben-herold commented 8 months ago

@sindreal look for me like this is abandoned. No changes (only automatics), no reactions on issues and no new needed features like groups and so on (could be realized via SCIMv2). There is another Ubuntu project that is more generic but has the same problematic workflows, see: https://github.com/ubuntu/oidc-broker.

I also tried to get in contact with Massimiliano Gori (https://ubuntu.com/blog/azure-ad-authentication-comes-to-ubuntu-desktop-23-04) via LinkedIn but no reaction.

stedaniels commented 7 months ago

Looks like they've moved on to https://github.com/ubuntu/authd

ruben-herold commented 7 months ago

@stedaniels yes looks like but no documentation, no information for the users nothing. This is a mess. @denisonbarbosa or @didrocks can some give a little bit light into this?

poorgeri commented 5 months ago

I managed to fix this by directly editing /var/lib/aad/cache/passwd.db and /var/lib/aad/cache/shadow.db with an SQLite editor. Just change the UID and GID in every table to something over 60000 then chown -R the home directories of the users.

It’s only a hotfix but it’ll do until they accept a pull request which introduces configurable UID and GID for new users.