Bug 34429 - Samba4 DFS: prefer logon DC
Samba4 DFS: prefer logon DC
Status: RESOLVED WONTFIX
Product: UCS
Classification: Unclassified
Component: Samba4
UCS 4.2
Other Linux
: P5 enhancement (vote)
: ---
Assigned To: Samba maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-03-31 20:00 CEST by Arvid Requate
Modified: 2022-01-01 22:22 CET (History)
2 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 2: Improvement: Would be a product improvement
Who will be affected by this bug?: 3: Will affect average number of installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.069
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:
requate: Patch_Available+


Attachments
dfs_samba4_preferlogondc.patch (5.70 KB, patch)
2014-03-31 20:00 CEST, Arvid Requate
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Arvid Requate univentionstaff 2014-03-31 20:00:04 CEST
Created attachment 5842 [details]
dfs_samba4_preferlogondc.patch

Currently, dfs_samba4 checks for the subnet/site a MS client is in, and sorts the list of DCs returned to the client, putting the in-site DCs on top and DCs from other sites below. Bug 34370 randomizes the DCs within each of these two sets.

The MS DFS client protocol also specifies the possibility to configure a DFS server in such a way that he puts the logon server of the client/user on top. The attached patch basically implements this. It's a bit rough, as it literally simply additionally puts the logon DC on top of the list (so he ends up on the list twice). Don't know if upstream would be happy about this but it conforms to the words of the spec. The patch also introduces a new smb.conf share parameter, which currently needs to be put into the [IPC$] section. I guess upstream will not approve to that, as IPC$ is configured internally in Samba4:

 dfs_samba4:preferLogonDC = yes

Default is false.
Comment 1 Ingo Steuwer univentionstaff 2020-07-03 20:51:17 CEST
This issue has been filed against UCS 4.2.

UCS 4.2 is out of maintenance and many UCS components have changed in later releases. Thus, this issue is now being closed.

If this issue still occurs in newer UCS versions, please use "Clone this bug" or reopen it and update the UCS version. In this case please provide detailed information on how this issue is affecting you.