Bug 7147 - Some functionality is broken due to bugs regarding user with a big uid
Summary: Some functionality is broken due to bugs regarding user with a big uid
Status: NEW
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: VSM Server (show other bugs)
Version: trunk
Hardware: PC Unknown
: P2 Normal
Target Milestone: LowPrio
Assignee: Henrik Andersson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-16 12:16 CEST by Henrik Andersson
Modified: 2022-04-25 15:50 CEST (History)
1 user (show)

See Also:
Acceptance Criteria:


Attachments

Description Henrik Andersson cendio 2018-04-16 12:16:22 CEST
When trying to shadow a user with uid 4294967290 the following error are reported to log files:

  2018-04-16 12:12:17 INFO vsmserver.shadow: User with uid 0 requested shadowing of 127.0.0.1:10 (uid -6)
  2018-04-16 12:12:17 WARNING vsmserver: 'getpwuid(): uid not found' when trying to lookup username corresponding to uid=-6
  2018-04-16 12:12:17 WARNING vsmserver.session: shadow_session: User with uid -6 does not exist
Comment 1 Henrik Andersson cendio 2018-04-16 12:18:35 CEST
This happens when one tries to "end existing session"

  2018-04-16 12:17:35 INFO vsmserver.session: User with uid 4294967290 requested termination of 127.0.0.1:10
  2018-04-16 12:17:35 WARNING vsmserver: 'getpwuid(): uid not found' when trying to lookup username corresponding to uid=-6
  2018-04-16 12:17:35 WARNING vsmserver.session: kill_session: User with uid -6 does not exist
Comment 4 Pierre Ossman cendio 2022-04-25 15:50:04 CEST
A common scenario where you get large UIDs is sssd's automatic mapping of ActiveD irectory SIDs. Fortunately, the default configuration keeps things within 31 bits, so this bug should not trigger unless people are running something odd.

Note You need to log in before you can comment on or make changes to this bug.