WIP: Putting the smb.conf in zookeeper

Richard Sharpe realrichardsharpe at gmail.com
Sat Jan 17 18:36:07 MST 2015

Hi folks,

Attached is a patch that now seems to work well enough.

I can do:

    net conf setparm global realm rjsdom.local


    net conf list
        load printers = no
        realm = rjsdom.local
        log level = 10
        workgroup = rjsdom
        log file = /var/log/samba/log.%m
        netbios name = rjssrv
        security = ads

To set this up you need the following in the smb.conf:

    registry backend replace = HKLM\SOFTWARE\Samba\smbconf=zookeeper
    registry backend zookeeper:hostPort = localhost:2181
    registry backend zookeeper:prefix = /samba

Replace localhost:2181 with the list of zookeeper nodes in your
environment, I think it needs to be a comma-separated list. With
respect to the prefix, replace /samba with whatever path you use to
the samba config.

There is still more work to do here, of course. For example, I would
like to do away with the mt version of the zookeeper libraries and use
the st (single thread) version.

You will need to apply both patches. Start with the Add-init-and-cleanup one ...

Richard Sharpe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Add-init-and-cleanup-functions-to-the-registry-backe.patch
Type: text/x-patch
Size: 2619 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20150117/f614b137/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-WIP-Zookeeper-backend-for-smbconf-part-of-the-regist.patch
Type: text/x-patch
Size: 27014 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20150117/f614b137/attachment-0001.bin>

More information about the samba-technical mailing list