Tips for finding Knowledge Articles

  • - Enter just a few key words related to your question or problem
  • - Add Key words to refine your search as necessary
  • - Do not use punctuation
  • - Search is not case sensitive
  • - Avoid non-descriptive filler words like "how", "the", "what", etc.
  • - If you do not find what you are looking for the first time,reduce the number of key words you enter and try searching again.
  • - Minimum supported Internet Explorer version is IE9
Home  >

KB-8903: How to manually set domainsid when samba server is migrating from one domain to another

1 August,17 at 05:45 PM


How to manually get the domain SID when the script does not prompt for the password of the administrator user if it is unable to resolve without a password.
adinfo -y domain (to get domain map info)
net setdomainsid <copy the SID from domain map info from step above>
net getdomainsid (to verify if the domainsid was set correctly)
Make sure tdb-tools is enabled if not please run yam install tdb-tools to have it enabled. After it’s being enabled, please run the following command.
tdbdump  /var/lib/samba/private/secrets.tdb
It will generate the file and shows as the following output: (Should be able to a pair SID one from Domain and one from Host)
data(68) = "\01\04\00\00\00\00\00\05\15\00\00\00{\E2-C\18!\F3\BEP\E8\84\A8\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"
data(68) = "\01\04\00\00\00\00\00\05\15\00\00\00\DE\11\BD\BE\99V\E6\B9\E7\FD\03\A5\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"
data(4) = "\02\00\00\00"
data(8) = "\B5\A2VY\EB\7F\00\00"
data(20) = "*c|>6v@_&&5)Lu8m;#F\00"