Hi All, a happy new to all who already reached 2022... I've just played on a member server with DFS. The member server is working correctly with winbind etc. and file shares. The moment I added the dfs_samba4 to vfs object as mentioned in wiki, the member server stops to work. Testparm shows no error: Load smb config files from /etc/samba/smb.conf Loaded services file OK. Weak crypto is allowed Server role: ROLE_DOMAIN_MEMBER Press enter to see a dump of your service definitions # Global parameters [global] ??????? disable spoolss = Yes ??????? load printers = No ??????? printcap name = /dev/null ??????? realm = SERVICE.MYDOMAIN.DE ??????? security = ADS ??????? template homedir = /home/%U ??????? template shell = /bin/bash ??????? username map = /etc/samba/user.map ??????? winbind refresh tickets = Yes ??????? workgroup = SERVICE ??????? idmap config service:unix_nss_info = yes ??????? idmap config service:range = 10000-999999 ??????? idmap config service:schema_mode = rfc2307 ??????? idmap config service:backend = ad ??????? idmap config * : range = 3000-7999 ??????? idmap config * : backend = tdb ??????? map acl inherit = Yes ??????? printing = bsd ??????? vfs objects = acl_xattr dfs_samba4 [DFS] ??????? msdfs root = Yes ??????? path = /srv/samba/dfsroot [Demo] ??????? path = /srv/samba/Demo/ ??????? read only = No In logs I get the following errors: smbd.log [2021/12/31 17:51:14.491994,? 0] ../../source3/modules/vfs_dfs_samba4.c:83(dfs_samba4_connect) ? samdb_connect failed syslog: Dec 31 17:51:14 GalacticaTest smbd[1290]: [2021/12/31 17:51:14.491994,? 0] ../../source3/modules/vfs_dfs_samba4.c:83(dfs_samba4_connect) Dec 31 17:51:14 GalacticaTest smbd[1290]:?? samdb_connect failed The moment I remove the dfs_samba4 from vfs objects the server is running again and even the dfs share is working. Server is Debian 11 based with Samba 4.15.3 installed by Louis' repository.. -- Regards Ingo https://github.com/WAdama
On Fri, 2021-12-31 at 18:05 +0100, Ingo Asche via samba wrote:> Hi All, > > a happy new to all who already reached 2022...Not yet ........> > I've just played on a member server with DFS. The member server is > working correctly with winbind etc. and file shares. > > The moment I added the dfs_samba4 to vfs object as mentioned in > wiki, > the member server stops to work.That piece of information was added back in 2015 and if it survives to 2022, I will be surprised. As far as I am aware 'dfs_samba4' should only be used on a DC. Rowland