The Samba-Bugzilla – Bug 10378
dfs: always call create_conn_struct with root privileges
Last modified: 2016-01-06 18:04:40 UTC
create_conn_struct calls SMB_VFS_CONNECT which requires root privileges.
SMB_VFS_CONNECT in turn calls dfs_samba4_connect which connects to samdb.
Calls were made to this function without ever becoming root (notably via setup_dfs_referral) which resulted in an error and the VFS connect failing. This happens when you have an active directory domain controller with host msdfs = yes in smb.conf and dfs links in place.
Description copied from original patch description by Garming Sam.
Created attachment 9593 [details]
git-am fix for 4.1.next.
Back-port to 4.0.next will follow.
Created attachment 9594 [details]
git-am fix for 4.0.next
Contains previous patches to allow the main patch to apply cleanly.
Karolin, please pick for the next releases
(In reply to comment #3)
> Karolin, please pick for the next releases
Pushed to autobuild-v4-1-test and autobuild-v4-0-test.
Pushed to v4-0-test and v4-1-test.
Closing out bug report.