On 18/05/14 22:56, Giuseppe Ragusa wrote:
> On Sun May 18 15:13:44 MDT 2014, Rowland Penny wrote:
> > On 18/05/14 21:09, Giuseppe Ragusa wrote:
> > > Hi,
> > >
> > > On Sun May 18 13:43:50 MDT 2014, Rowland Penny wrote:
> > > > On 18/05/14 19:38, Giuseppe Ragusa wrote:
Yes, samba4 maps 'Domain Users' to the 'users' group, this seems like a
good idea until you throw winbind into the mix and then it doesn't make
any sense at all!
>
> Anyway in my emails of two years ago I stated that my use case for the
> aforementioned restoring of previous behavior was on large AD
> installations with Windows primary group left at its "Domain Users"
> default value and powers-that-be not wanting to touch that all
> important group in any way (I know that the simple adding of a
> gidNumber is innocuous, but I'm not in a position to argue...).
>
This is a strange idea, microsoft added the required attributes to AD
for just such a case, I would image that the 'powers-that-be' do not
really understand this.
> Anyway, many thanks for your suggestion: I will check idmap.ldb and
> maybe I will try to modify that, if you think that forcing it inside
> the range will allow the user to have it's own RFC2307 gidNumber
> effective afterwards.
>
For 'getent passwd' to return an AD user, the user must have a
'uidNumber' & 'gidNumber'. The problem is that 'Domain Users' must have
a 'gidNumber' or the users 'primaryGroupID' must be changed.
Let me show you an example:
running 'getent passwd testuser' on the Samba4 AD server before adding
Unix attributes:
DOMAIN\testuser:*:3000049:10000:Test User:/home/DOMAIN/testuser:/bin/bash
After adding Unix attributes:
DOMAIN\testuser:*:10008:10000:Test User:/home/DOMAIN/testuser:/bin/bash
On a client after adding Unix attributes:
testuser:*:10008:10000:Test User:/home/DOMAIN/testuser:/bin/bash
In the first result, the user is being mapped by idmap.ldb and has a
large id number, '10000' is the 'uidNumber' for 'Domain Users', the
other two show the users new 'uidNumber' but still show the user as
being a member of 'Domain Users'.
If we examine the users attributes in AD, we will find these:
uid: testuser
msSFU30Name: testuser
msSFU30NisDomain: home
uidNumber: 10008
gidNumber: 10002
loginShell: /bin/bash
unixHomeDirectory: /home/DOMAIN/testuser
This clearly shows that the users 'gidNumber' is not '10000'
Problem is, if you change the users 'primaryGroupID' and the user goes
to a windows machine, they are not a member of 'Domain Users'.
Rowland
> Regards,
> Giuseppe
>