Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue: uid greater than 2^31-1 #525

Open
2 tasks done
JackieGleason87 opened this issue Sep 11, 2024 · 3 comments
Open
2 tasks done

Issue: uid greater than 2^31-1 #525

JackieGleason87 opened this issue Sep 11, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@JackieGleason87
Copy link

Is there an existing issue for this?

  • I have searched the existing issues and found none that matched mine

Describe the issue

I have, from active directory, a user ID of 3846276768 which I believe is causing issues in Ubuntu 24.04
The issues I am seeing are things like the terminal and nautilus are extremely slow to open the first time, and things like zscaler are stuck initializing.
I have two co-workers who do not have these issues logged into their account on the same computer, the only difference we are seeing is the user ID, and neither of them have the highest order bit set like I do.
I have also logged into one of their computers and ran into the same issue.

I can see in the auth.log things like this where the uid is negative
2024-09-11T14:23:43.095087-06:00 af-36qr7v3 sudo: pam_unix(sudo:auth): authentication failure; logname= uid=-448690528 euid=0 tty=/dev/pts/4 ruser= rhost= user=
but also other times where it is positive
2024-09-11T14:24:00.490586-06:00 af-36qr7v3 sudo: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=3846276768)

This very possible could not be related to authd/pam at all and this could just be printing it as signed instead of unsigned

Steps to reproduce

I believe having a user ID higher than 2147483648 should cause this problem
It is consistent across computers and logins.

System information and logs

authd version


authd-msentraid broker version

name:      authd-msentraid
summary:   MSEntra ID broker for authd
publisher: Canonical**
store-url: https://snapcraft.io/authd-msentraid
license:   GPL-3.0-only
description: |
  This is the MS Entra ID broker snap for authd  to provide MS Entra ID OIDC
  based authentication on Ubuntu with authd.
snap-id: vS3oJLMss6lgWwoFcPqYDUA2HB20I1Dc
channels:
  0.x/stable:    0.1 2024-08-23 (33) 17MB -
  0.x/candidate: ^                        
  0.x/beta:      ^                        
  0.x/edge:      0.1 2024-09-10 (44) 17MB -

gnome-shell version

gnome-shell:
  Installed: 46.0-0ubuntu6~24.04.4
  Candidate: 46.0-0ubuntu6~24.04.4
  Version table:
 *** 46.0-0ubuntu6~24.04.4 500
        500 http://us.archive.ubuntu.com/ubuntu noble-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     46.0-0ubuntu5 500
        500 http://us.archive.ubuntu.com/ubuntu noble/main amd64 Packages
     45.2-0ubuntu1.1 500
        500 http://security.ubuntu.com/ubuntu mantic-security/main amd64 Packages
     45.0-1ubuntu2 500
        500 http://nl.archive.ubuntu.com/ubuntu mantic/main amd64 Packages

Distribution

Distributor ID:	Ubuntu
Description:	Ubuntu 24.04.1 LTS
Release:	24.04
Codename:	noble

Logs

-- No entries --

authd broker configuration

⚠️ No config files in /etc/authd/brokers.d/

authd-msentraid configuration

cat: /var/snap/authd-msentraid/current/broker.conf: No such file or directory

Double check your logs

  • I have redacted any sensitive information from the logs
@JackieGleason87 JackieGleason87 added the bug Something isn't working label Sep 11, 2024
@didrocks
Copy link
Member

Hey! Thanks for reporting this bug and help making authd better.

We did some recent changes on the id generation, but it shouldn’t pass max int32 for the exact reasons you gave. The surprising thing is that the version is not in our released ppa. We would need to get the version of authd you tried this with to confirm this may be related to the new logic we introduced.

Do you mind running apt policy authd on the machine where you experience this behaviour and print the version there? Thanks!

@JackieGleason87
Copy link
Author

I will have to get with my IT department on how the machine is actually set up:

$ apt policy authd
N: Unable to locate package authd

@aussielunix
Copy link

This looks like the issue that was reported against the old project
ubuntu/aad-auth#441

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants