[PATCH] samba4 to store shares in an ldb database

simo idra at samba.org
Fri Jul 14 12:34:30 GMT 2006

I was interesting into see how difficult would it be to put all shares
info into an ldb instead of keeping them into smb.conf

Putting them into an ldb makes it much easier to
manipulate/create/delete shares from within the code and let us easily
store also more stuff related to a share in the same place (like the
share ACLs).

This patch does not clean loadparm.c, but removes any use (that I could
find) of any lp_**_(snum) call.

As a bonus it pass make test :-)

Attached there is a patch and 2 new files that belong to /source/param

As this is a quite big change in the way we manage samba4 configuration
I have not committed it yet.

I would like to commit this stuff and build on it, cleaning up
loadparm.c and starting adding all the rpc calls to create/modify/delete
shares, set ACLs on shares etc ...

Comments are welcome.


Simo Sorce
Samba Team GPL Compliance Officer
email: idra at samba.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: samba4_shares_config_ldb.patch
Type: text/x-patch
Size: 57312 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20060714/a985b558/samba4_shares_config_ldb.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: shares_config.c
Type: text/x-csrc
Size: 7976 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20060714/a985b558/shares_config.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: shares_config.h
Type: text/x-chdr
Size: 2470 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20060714/a985b558/shares_config-0001.bin

More information about the samba-technical mailing list