The System Cannot Log You On (C000019B)
I joined the domain successfully but after upgrading to a newer version of the Samba code I get the message,
`The system cannot log you on (C000019B). Please try again or consult your system
administrator when attempting to logon.'”
This occurs when the domain SID stored in the secrets.tdb database is changed. The most common cause of a
change in domain SID is when the domain name and/or the server name (NetBIOS name) is changed. The only way
to correct the problem is to restore the original domain SID or remove the domain client from the domain and
rejoin. The domain SID may be reset using either the net or rpcclient utilities.
To reset or change the domain SID you can use the net command as follows:
net getlocalsid 'OLDNAME'
net setlocalsid 'SID'
Workstation Machine Trust Accounts work only with the domain (or network) SID. If this SID changes,
domain members (workstations) will not be able to log onto the domain. The original domain SID
can be recovered from the secrets.tdb file. The alternative is to visit each workstation to rejoin
it to the domain.