[PATCH] Don't send MSG_WINBIND_ONLINE to idmap_child() in any child process

boyang boyang at suse.de
Tue Jan 13 09:59:39 GMT 2009


Hi, everyone:
     If the trusted domain cannot go online, fork_child_dc_connect()
will be invoked periodically to fork() one child process, trying to
connect to DC.  look, fork_child_dc_connect() ---> getdcs() --->
get_dc_name_via_netlogon() ---> cm_connect_netlogon() --->
init_dc_connection() ---> cm_open_connection ---> set_domain_online(),
here send MSG_WINBIND_ONLINE to idmap_child(). It causes
MSG_WINBIND_ONLINE being sent to idmap_child() periodically, which cause
idmap child to fork and connect to the primary domain'DC even primary
domain is already online. :-)  It is very expensive, we must not want to
do that....

Please review the patches!
Thanks!

Best
    Regards
BoYang
-------------- next part --------------
A non-text attachment was scrubbed...
Name: idmap-msg-online-master.diff
Type: text/x-patch
Size: 2412 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20090113/f89e7f05/idmap-msg-online-master.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: idmap-msg-online-v3-0-test.diff
Type: text/x-patch
Size: 1805 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20090113/f89e7f05/idmap-msg-online-v3-0-test.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: idmap-msg-online-v3-2-test.diff
Type: text/x-patch
Size: 2310 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20090113/f89e7f05/idmap-msg-online-v3-2-test.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: idmap-msg-online-v3-3-test.diff
Type: text/x-patch
Size: 2356 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20090113/f89e7f05/idmap-msg-online-v3-3-test.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: boyang.vcf
Type: text/x-vcard
Size: 187 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20090113/f89e7f05/boyang.vcf


More information about the samba-technical mailing list