[PATCH] New idmap backend that generates id's the way OS X does

Jeremy Allison jra at samba.org
Mon Oct 3 18:51:16 UTC 2016


On Sat, Oct 01, 2016 at 02:03:42PM -0700, John Hixson wrote:
> On Wed, Sep 21, 2016 at 02:16:12PM -0700, Ralph Böhme wrote:
> > On Wed, Sep 21, 2016 at 04:01:27AM -0700, John Hixson wrote:
> > > On Tue, Sep 20, 2016 at 09:54:20AM -0700, Ralph Böhme wrote:
> > > > Hi John
> > > > 
> > > > On Tue, Sep 20, 2016 at 07:13:51AM -0700, John Hixson wrote:
> > > > > I wrote this for FreeNAS and want to know if you guys can use it?
> > > > 
> > > > Does this actually work at all? To me it looks like in
> > > > idmap_fruit_unixids_to_sids() you're missing to prime the synthesized
> > > > SIDs in the struct id_map array.
> > > 
> > > Yes, it actually works. Can you elaborate more on this?
> > 
> > well, maybe I'm to stupid due to attending SDC and still recovering
> > from jetlag (and Bennigan's), but with the patchset you posted (infact
> > just applying patch 3/3) this is what I get:
> > 
> > slow at member1:~/samba/master$ sudo ./bin/wbinfo -S S-1-5-21-3152989960-574718769-2188965058-500
> > 2002901632
> > 
> > slow at member1:~/samba/master$ sudo ./bin/wbinfo -U 2002901632
> > failed to call wbcUidToSid: WBC_ERR_DOMAIN_NOT_FOUND
> > Could not convert uid 2002901632 to sid
> 
> [root at freenas910 ~]# wbinfo -n 'IX\john'
> S-1-5-21-2616990854-1186095534-2674637157-1114 SID_USER (1)
> [root at freenas910 ~]# wbinfo -S
> S-1-5-21-2616990854-1186095534-2674637157-1114
> 426797067
> [root at freenas910 ~]# wbinfo -U 426797067
> S-1-5-21-2616990854-1186095534-2674637157-1114
> 
> 
> So is this something anyone is interested in? If not I will leave you
> all alone, return to my basement with my stapler and continue on with my
> Samba hacking. 

Please don't return to your stapler. Bad things happen when
you're alone with your stapler :-).

Please keep continuing to work with us until we understand
what changes we need here !

Thanks,

Jeremy.



More information about the samba-technical mailing list