OpenLDAP and Samba4

Jeremy Allison jra at samba.org
Mon Apr 22 10:57:19 MDT 2013


On Mon, Apr 22, 2013 at 01:33:39PM +0200, Volker Lendecke wrote:
> On Mon, Apr 22, 2013 at 01:27:32PM +0200, Andreas Schneider wrote:
> > On Monday 22 April 2013 13:16:18 Volker Lendecke wrote:
> > > On Mon, Apr 22, 2013 at 01:12:04PM +0200, Andreas Schneider wrote:
> > > > On Friday 19 April 2013 09:59:40 Jeremy Allison wrote:
> > > > > > It might mean linking with our socket_wrapper library.
> > > > > 
> > > > > This is code-mongering, fidley, but doable. We can do this if we have
> > > > > the cooperation of the OpenLDAP coders.
> > > > 
> > > > JFYI: I've created a version of the socket_wrapper library you can
> > > > LD_PRELOAD. I wanted to be able to use it in other projects with daemons
> > > > I don't build.
> > > > 
> > > > Code:
> > > > 
> > > > http://git.cryptomilk.org/projects/socket_wrapper.git/
> > > > 
> > > > Example:
> > > > 
> > > > http://git.cryptomilk.org/projects/socket_wrapper.git/tree/example/openssh
> > > > .sh
> > > Is it possible to run the full Samba autobuild cycle with
> > > this and a Samba version compiled without the socket
> > > wrapper?
> > 
> > Yes, it should be. I haven't had the time to change 'selftest' to use this 
> > version with LD_PRELOAD.
> > 
> > You just need to make sure all executeables are started with this. Maybe it is 
> > enough to just set it once in selftest and it will just work.
> > 
> > I need to make uid wrapper and nss wrapper LD_PRELOADable too. Maybe I can do 
> > it during SambaXP.
> 
> If it works for autobuild, then I think it is a good
> separation of concerns that might be worthwhile to add
> permanently to Samba.

This ! this ! A thousand times this ! :-) :-).

It would be *wonderful* to move that code out of
Samba and into an external library.

Jeremy.


More information about the samba-technical mailing list