[PATCH] handle endpoint registration and rpc_<service>_init() in the correct process

Andrew Bartlett abartlet at samba.org
Sun Mar 4 18:58:30 MST 2012


Andreas,

The attached patches are the relevant parts of my s3fs-wip tree, which
shows by passing make test that we do not need to register or initialise
'external' rpc services in dcesrv_ep_setup(). 

Those services which are in the spoolssd and lsasd children are already
initialised and registered to the endpoint mapper there, and when these
services are handled externally to smbd (ie, in Samba4 for
plugin_s4_dc), no initialisation of the s3 service implementation is
desired or required.

Similarly, it makes no sense to initialise the endpoint mapper except in
the endpoint mapper's own forked child process, so I have removed this
code (presumably left over from early development). 

Please let me know what you think,

Andrew Bartlett
-- 
Andrew Bartlett                                http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-s3-lsasd-Fix-debug-messages-on-registration-failure.patch
Type: text/x-patch
Size: 1314 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20120305/3004197f/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-s3-rpc_server-Only-init-and-register-embedded-RPC-se.patch
Type: text/x-patch
Size: 8966 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20120305/3004197f/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-s3-rpc_server-Remove-remaining-code-for-embedded-end.patch
Type: text/x-patch
Size: 1582 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20120305/3004197f/attachment-0002.bin>


More information about the samba-technical mailing list