getent group on trusty returns only local groups
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
samba (Ubuntu) |
Fix Released
|
High
|
Unassigned |
Bug Description
On Trusty, winbind version: 2:4.1.6+
user@host:~$ wbinfo -r user
2001
-1
-1
10000
-1
-1
100002
100001
On Saucy, winbind 2:3.6.18-1ubuntu3.2 returned only groups with valid GIDs as defined in the active directory using the same command:
user@otherhost:~$ wbinfo -r user
2001
10000
With this configuration on a Trusty host, "getent group" returns only local groups (it does not even enumerate the active directory groups with GIDs 2001 & 10000). The same thing happens on a "groups" command run by the user at a prompt. However, if "groups [user]" is run, it returns the defined active directory groups, as well as a number of errors (line breaks added to output for readability):
user@host:~$ groups
localgroup1 sudo
user@host:~$ groups user
user : localgroup1 sudo
groups: cannot find name for group ID 4294967295 4294967295
groups: cannot find name for group ID 4294967295 4294967295
domain admins
groups: cannot find name for group ID 4294967295 4294967295
groups: cannot find name for group ID 4294967295 4294967295
BUILTIN\users
BUILTIN\
The groups on the Trusty host with GIDs 100001 and 100002 as returned by "wbinfo -r" belong to BUILTIN\
I am not sure why the BUILTIN groups get assigned a dynamic GID (as set by the idmap config * : range = 100000-300000 line in smb.conf) when they have no LDAP gidNumber assigned to them, while the other groups inside our OU get assigned gid -1 when they also have no gidNumber assigned to them.
The smb.conf file is identical between the two hosts except for the server name string. The non-working host was upgraded from Saucy to Trusty today. Two other hosts were also upgraded, and they show exactly the same behavior.
This issue breaks domain-wide administrative powers, as we use visudo to give members of the domain admins group local administrative permissions on all machines. "sudo" commands run on the Trusty host by a domain admin member not also in the local sudo group fail, declaring the user is not one of the sudoers
Notably, "getent passwd" returns all local and domain users, and domain users remain able to login with correct UIDs using domain accounts.
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: libnss-winbind 2:4.1.6+
ProcVersionSign
Uname: Linux 3.13.0-24-generic x86_64
ApportVersion: 2.14.1-0ubuntu2
Architecture: amd64
Date: Mon Apr 14 18:50:45 2014
InstallationDate: Installed on 2014-02-13 (60 days ago)
InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Release amd64 (20131016.1)
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
SambaClientRegr
SourcePackage: samba
UpgradeStatus: Upgraded to trusty on 2014-04-15 (0 days ago)
tags: | added: regression-release |
Changed in samba (Ubuntu): | |
assignee: | nobody → Canonical Server Team (canonical-server) |
importance: | Undecided → High |
description: | updated |
description: | updated |
tags: | added: utopic |
Changed in samba (Ubuntu): | |
status: | Fix Committed → Fix Released |
I forgot to comment that I added extra line breaks to the output of "groups user" for readability of the bug report.