In my Linux based infrastructure I run MIT Kerberos and LDAP for authentication. For the very few Windows VM clients I use a Samba stand-alone file server. It has it accounts stored in LDAP as well. The infrastructure is decades old and is the remainder of a NT domain.
I now have a second site. I cloned my file server and set-up a new Samba server. I followed this post or this post in the past and simply had my stand alone servers all with the same SID, since otherwise the servers are not able to authenticate users.
So, I copied the SID for my workgroup to the new sambaDomainName entry created by my new server. Just as I did a couple of years ago for the old server.
While I still can mount the shares of my old server, trying to mount shares from the new server produces ERROR_INVALID_SID
from Win10. Similarly, CIFS mount yields
[247902.830949] CIFS: Attempting to mount //new_server/public
[247902.994871] CIFS: Status code returned 0xc0000078 STATUS_INVALID_SID
[247902.994889] CIFS: VFS: \\new_server Send error in SessSetup = -5
[247902.994925] CIFS: VFS: cifs_mount failed w/return code = -5
Any idea why the SID is invalid? I don't see any difference to the other SID; neither by net getlocalsid
, nor by ldapsearch
or ApacheDirectoryStudio
.
I know it's a hacky solution. Moving to AD is no option. Since I heard that NT domains may be be dropped by Microsoft soon, I don't want to set up another PDC / BDC system. Actually, the copy SID solution was a work around during a time where samba had a known bug with net join
.
Is there another method to have multiple samba servers using the same ldapsam?