[Samba] unix UID mapping of users on an AD-DC
Sami Hulkko
sahulkko at gmail.com
Thu Oct 1 22:00:38 UTC 2026
Hi,
There is this Wiki page about --use-rfc2307
samba:no-need-for-use-rfc2307 [Caponato's Notebook]
<http://samba.bigbird.es/doku.php?id=samba:no-need-for-use-rfc2307> It's
worth checking.
SH
On 01/10/2026 22.09, Michael Tokarev via samba wrote:
> Hi!
>
> I'm trying to understand how idmapping works on a samba AD domain
> controller. When looking at sysvol, I see uids starting from
> 3000000 and up. Where this number comes from, and how to control it?
>
> In various places it is said one should not specify any idmap lines
> on an ad-dc machine, for example this link:
>
> https://wiki.samba.org/index.php/Updating_Samba#Failure_To_Access_Shares_on_Domain_Controllers_If_idmap_config_Parameters_Set_in_the_smb.conf_File
>
>
> which mentions 4.4.6, but the whole thing is rather confusing, -
> why idmap configuration should be ignored by samba ad-dc?
>
> The question is: how to make these UIDs use different range?
> It is quite common to run samba ad-dc in a container, where it
> is typical to have 65535 UIDs, and 3000000. And there's no
> reason to use 3000000 here, since there are no other users on
> this machine anyway.
>
> How to configure this stuff, and where this 3000000 comes from?
>
> Thanks,
>
> /mjt
>
--
Sami Hulkko
+358 45 8569 319
sahulkko at gmail.com
sahulkko at icloud.com
More information about the samba
mailing list