Samba 3.0alpha21: inconsistent server role handling?
vorlon at netexpress.net
Wed Dec 25 01:00:01 GMT 2002
Happy Christmas Eve to all!
I believe there is a bug in Samba's handling of server roles that
allows the user to make incompatible choices that are silently ignored.
I've received a report from a user who was using the following settings
successfully under 2.2:
workgroup = FOO
security = share
wins support = yes
domain master = yes
; domain logons = no
Under 3.0, registration of the #1b DMB name is handled by this chunk of
code in nmbd/nmbd_become_dmb.c:add_domain_names() --
/* Do the "internet group" - <1c> names. */
/* Do the domain master names. */
if(lp_server_role() == ROLE_DOMAIN_PDC)
From params/loadparm.c, lp_server_role() is only set to ROLE_DOMAIN_PDC
if security = server | domain | ads | user, AND domain logons = yes.
Aside from being a bit strange to allow a server-security machine be a
DMB if a share-security machine can't be, the 'domain master = yes'
setting silently becomes a complete no-op as a result of this code.
Any thoughts on how this might be better handled? Should a setting of
'domain master = yes' automatically promote 'domain logons = yes',
perhaps? Should the code be rearranged so that domain master = yes
always results in a server role of ROLE_DOMAIN_PDC? Or should the check
in add_domain_names() be changed to lp_domain_master() instead of
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20021225/61c159da/attachment.bin
More information about the samba-technical