Fedora DS Support

Andrew Bartlett abartlet at samba.org
Mon Sep 14 18:24:52 MDT 2009

On Mon, 2009-09-14 at 18:32 -0400, Endi Sukma Dewata wrote:
> Andrew,
> Just to give you an update, I'm still struggling to run the tests
> on my VM. It seems that when I install too many things the VM will
> start behaving strangely (inconsistent behavior). So I will try
> creating a new VM with bigger memory & disk, hopefully it will solve
> it.
> > > To my understanding the SID is stored as binary in FDS. In order to
> > > use the DNA plugin we need to split the SID into a static prefix and
> > > a dynamically generated integer.
> > Urgh.  You would have to start an invalid NDR structure as the prefix
> > (because otherwise it will have the wrong number of sub-authorities).
> That's right. DNA prefix will be just a series of bytes which doesn't
> have to mean anything. But when it's combined with the generated value
> it will produce a valid SID.
> > > Are you suggesting we can store SID as string in FDS? That certainly
> > > will eliminate the need to fix the DNA plugin, but we probably need
> > > a different schema for Samba and FDS. Also would there be a big
> > > performance impact?
> > I don't think so.  I think it's the best approach - we could also
> > rename to sambaSID.  
> Ok, I'm studying Samba code now to see how this could be implemented.
> Do you think a single change in the simple_ldap_map.c will be sufficient?
> Are there any case where Samba would access the attribute in the backend
> directly bypassing the mapping?

NO, that's the whole point of a mapping :-)

> While we're on this subject, what do you think about making all attribute
> mapping configurable? Currently the mapping is hardcoded in
> simple_ldap_map.c. I just thought in some cases the Samba schema may
> conflict with the schema that already exists in the LDAP server.

Well, we supply the schema, so that shouldn't happen.  But much of this
file should be generated by the schema (the normalise to signed 32
stuff).  The rest can be autoconfigured with the right motivation, but I
don't see why the C file isn't flexible enough (I don't want this
admin-maliable if at all possible...)

> > BTW, when next submitting patches please check 'make quicktest', to
> > ensure you don't break the normal LDB backend when fixing things for
> > Fedora DS.  Also check the OpenLDAP backend if at all possible.
> Yes, I will do that once I have a stable VM. Btw, thanks for the
> correction, I saw it in the git log.

Good Luck!

Andrew Bartlett                                http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org
Samba Developer, Cisco Inc.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20090914/6a15d25b/attachment.pgp>

More information about the samba-technical mailing list