Univention Bugzilla – Bug 34429
Samba4 DFS: prefer logon DC
Last modified: 2022-01-01 22:22:20 CET
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.
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.