Patch: idmap_script idmapping module

Michael Adam obnox at
Tue Nov 18 14:54:10 MST 2014

On 2014-11-18 at 21:36 +0000, Rowland Penny wrote:
> On 18/11/14 21:31, Richard Sharpe wrote:
> >On Tue, Nov 18, 2014 at 1:17 PM, Rowland Penny <repenny241155 at> wrote:
> >>On 18/11/14 20:53, Richard Sharpe wrote:
> >>>Hi,
> >>>
> >>>Spurred on by Michael Adam's suggestion and a local need, I whipped
> >>>this up from existing code.
> >>>
> >>>Comments welcome. Builds cleanly, now for some testing.
> >>>
> >>OK, I give in, just what does it do ?? :-)
> >It does what the idmap_tdb2 with script module does but without the
> >tdb stuff in there. It is simply for those who want a fixed mapping
> >from SIDs to UIDs and they don't have such a mapping in LDAP or SFU or
> >whatever.
> >
> >I just built it without change under Samba 3.6.x as well (after some
> >Makefile magic.)
> >
> I think I understand, what you mean is that you can map the builtin
> SID's to an ID number, similar to what happens in idmap.ldb.

Not at all.
It calls an external local program ("script") to retrieve the mapping
instead of incrementing a counter in a database (idmap.ldb, and
winbindd idmap backends tdb, tdb2, ldap) or calculating
the mappings with an algorithm (rid and autorid backends)

Just read the "IDMAP SCRIPT" section in the idmap_tdb2 manpage
for the details on what Richard extracted from the tdb2 backend.

Cheers - Michael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <>

More information about the samba-technical mailing list