[Samba] Samba 2.2 to 3.0.9 DC upgrade problems

John H Terpstra jht at Samba.Org
Wed Jan 12 22:03:41 GMT 2005


On Wednesday 12 January 2005 14:51, Hans du Plooy wrote:
> On Wednesday 12 January 2005 23:06, John H Terpstra wrote:
> > You can recover the SID from the old system by running (for Samba-3):
> >
> > 	net getlocalsid
> >
> > You can set the SID on the new server by running:
> >
> > 	net setlocalsid S-1-5-21-XXXXX-XXXXX-XXXXXX
>
> This I did - in fact, I was quite paranoid about it and checked it over and
> over just to be absolutely sure.
>
> > Note: The SID must be the one you obtained from the old server.
> > Additionally, you must ensure that each user has the same UID and GID as
> > they were on old server.
>
> I think this must have been the problem.  Do you refer to UID and GID
> withing samba, or the unix UID and GID?

Samba maps the UID to the user SID. The user SID is made up of the Domain SID 
plus a RID. The RID = 2xUID + 1000.

If the UID = 1234 the RID = 2468.
If the SID = S-1-5-21-12345678-12345678-12345678 the user SID =
S-1-5-21-12345678-12345678-12345678-2468

- John T.

>
> Thanks
> --
> Kind regards
> Hans du Plooy
> Newington Consulting Services
> hansdp at newingtoncs dot co dot za

-- 
John H Terpstra
Samba-Team Member
Phone: +1 (650) 580-8668

Author:
The Official Samba-3 HOWTO & Reference Guide, ISBN: 0131453556
Samba-3 by Example, ISBN: 0131472216
Hardening Linux, ISBN: 0072254971
Other books in production.


More information about the samba mailing list