Patch: idmap_script idmapping module
realrichardsharpe at gmail.com
Tue Nov 18 14:56:01 MST 2014
On Tue, Nov 18, 2014 at 1:54 PM, Michael Adam <obnox at samba.org> wrote:
> 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 gmail.com> wrote:
>> >>On 18/11/14 20:53, Richard Sharpe wrote:
>> >>>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
>> >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.
You don't have to make it sound like I did so little work :-)
More information about the samba-technical