The "id" command does not return all groups a user belongs to when using PAM

  • 3973377
  • 29-Oct-2007
  • 26-Apr-2012

Environment

Novell Open Enterprise Server
Novell Open Enterprise Server Support Pack 1
Novell Open Enterprise Server Support Pack 2
Novell Linux User Management

Situation

When running 'id' against a LUM-enabled user, if you use a different case from the one in eDirectory,'id' will bring only the user's primary group information and no other group membership.
Example: assume user test is member of the groups users and www, users being his primary group.
Executing 'id test' will give the following result:
uid=600(test) gid=600(test) groups=600(users),8(www)
Executing 'id Test' (note the uppercase first "T") will give the following result:
uid=600(test) gid=600(test) groups=600(users)

Resolution

When using id with LUM-enabled users, you need to specify the username with the same case it has on eDirectory for it to work properly. This occurs due to the way LDAP handles casing.

Additional Information

BUG https://bugzilla.novell.com/show_bug.cgi?id=198545 reported to engineering but closed as WONTFIX.