[Samba] [PATCH] allow to create Unix-UID/SID mapping in samba-tool user create

Alexander Wuerstlein snalwuer at cip.cs.fau.de
Tue Sep 25 03:58:14 MDT 2012


On Tue, 25 Sep 2012 15:49:11 +1000
Andrew Bartlett <abartlet at samba.org> wrote:

> On Tue, 2012-09-25 at 00:19 +0200, Alexander Wuerstlein wrote:
> > From: Alexander Wuerstlein <arw at arw.name>
> > 
> > Reads Unix UID from NSS or commandline and creates a
> > UID/SID mapping when creating a new user.
> 
> As Gémes Géza mentions this really needs to honour idmap_ldb:use
> rfc2307 = yes and set it in the sam.ldb if that is set, and while
> useful in the general case, for the case you are targeting, the
> classicupgrade will work better.

Classicupgrade would only handle the initial import, not later addition
of users which is the more frequent case here. But idmap_ldb:use
rfc2307 = yes seems to work fine, and it seems to be a lot less ugly
than fiddling with idmap.ldb.

I'll try to get samba-tool to create the RFC2307 attributes and send a
patch if its not too ugly.


Ciao,

Alexander Wuerstlein.


More information about the samba mailing list