Since I tested the Server Manager for Domains, I came also to this point: SAMBA 4 should support to manage shares over the RPCs.
Maybe this needs some discussion: in fact, I thought it would be the best to move all share definitions to the shares.ldb or better (like the Windows behaviour) to the registry (when it is finished), so we have them in a database. This should decrease the effort to write such management functions, rather then do this for a text file. The smb.conf definitions I would only leave for now for compatibility reasons with no management possible. Thoughts?
It should probably just use the shares context, which already abstracts away the list of shares.
I see that we've some NetShare* calls implemented in the SRVSVC pipe. Maybe we aren't far away from having this working.
The big challenge is to support both "classic" and "LDB" shares backend on provision time and not only later. The management as it is only supported on the "LDB" backend.