[Samba] User disappears, when enabling RC2307

Rowland Penny rowlandpenny at googlemail.com
Fri Aug 8 12:13:55 MDT 2014


On 08/08/14 18:49, Lars Hanke wrote:
> Am 08.08.2014 16:26, schrieb steve:
>> On Fri, 2014-08-08 at 12:11 +0200, Lars Hanke wrote:
>>
>>>>>          idmap config AD: range = 1001 - 29999
>>>>>
>>>>>          idmap config *: range = 30000 - 50000
>>>
>>>> you have set in your smb.conf '30000 - 50000' (also the range 
>>>> should be
>>>> set as 30000-50000, not as you have it).
>>>>
>>
>> Lars, correct the ranges as Rowland has outlined before trying anything
>> else. If you have the 1001 for mgr, what is mgr? Is it a group? What
>> does the DN for mgr look like? Does it have a uidNumber or a gidNumber?
>
> I copied the idmap entries from another client, which perfectly maps 
> the users:
>
> root at nfs4:/# id mgr
> uid=1001(mgr) gid=10000(domain_users) 
> Gruppen=10000(domain_users),30001(BUILTIN\users)
>
> Yes, the user has uid and uidNumber set properly.

uid and uidNumber are different, uid is the users name, uidNumber is the 
users ID number, is this how you have them set ?

>
> My aim is to keep my legacy POSIX users, which had uid in the range 
> 1000 - 2000. These uid have been put to the AD DC. On nfs4 (my samba 
> 3.6.6 toy system) everything runs nicely.

OK, you have added the users with their original ID numbers to AD, but 
have you
a) removed all the users from /etc/passwd
b) joined the NAS to the domain.

Rowland

>
> I have no problem extending the range to higher numbers, if this may 
> solve the riddle.
>
> Currently the NAS is mounted using NFS3. Keeping the uids would allow 
> a smooth migration.
>
> There is no uid 1001 in /etc/passwd.
>
> Regards,
>  - lars.
>



More information about the samba mailing list