[Samba] samba-tool classicupgrade (from v3 to v4) aborts with "Unable to get id for sid"

Jon Detert jdetert at infinityhealthcare.com
Thu Mar 28 08:31:46 MDT 2013


----- Original Message -----
> From: "Jon Detert" <jdetert at infinityhealthcare.com>
> To: "Andrew Bartlett" <abartlet at samba.org>
> Cc: samba at lists.samba.org
> Sent: Wednesday, March 27, 2013 4:37:59 PM
> Subject: Re: [Samba] samba-tool classicupgrade (from v3 to v4) aborts with "Unable to get id for sid"
> 
> ----- Original Message -----
> > From: "Andrew Bartlett" <abartlet at samba.org>
> > To: "Max Olivas" <molivas at northglenn.org>
> > Cc: "Jon Detert" <jdetert at infinityhealthcare.com>,
> > samba at lists.samba.org
> > Sent: Friday, March 22, 2013 7:01:34 AM
> > Subject: Re: [Samba] samba-tool classicupgrade (from v3 to v4)
> > aborts with "Unable to get id for sid"
> > 
> > On Thu, 2013-03-21 at 10:15 -0600, Max Olivas wrote:
> > > >>> On 3/19/2013 at 8:28 AM, in message
> > > >>> <2119021439.23770729.1363703293922.JavaMail.root at infinityhealthcare.com>,
> > > >>> Jon Detert <jdetert at infinityhealthcare.com> wrote:
> > > 
> > > I'm trying to upgrade from samba3 -> 4.  I ran this command:
> > > 
> > > WORKDIR=/usr/local/mobius
> > > /usr/local/samba/bin/samba-tool domain classicupgrade
> > > --dbdir=$WORKDIR/var --use-xattrs=yes
> > > --realm=infinityhealthcare.com $WORKDIR/smb.conf
> > > 
> > > but it failed with the error given in this email's subject.  What
> > > does it mean, and how do I fix it?
> 
> -- snip --
> 
> > The big issue here is that passdb has never had a 'fsck', and Samba
> > operates quite well as a 'classic' DC with an almost totally
> > invalid
> > database!

--snip --

> > As to what has happened in your particular instance, could you
> > please
> > post me the output of ldbdump private/idmap.ldb?
> 
> I'd be happy to, but I can't find ldbdump.  I have tdbdump and

never mind.  I found it.

> As to posting the dump for you - I'm not sure it's wise to post it to
> this list.

never mind.  I was confused again.  Here's the requested dump:

# /home/jdetert/samba4-master/bin/ldbdump /usr/local/samba/private/idmap.ldb 
dn: CN=CONFIG
cn: CONFIG
upperBound: 4000000
lowerBound: None
xidNumber: None

dn: CN=S-1-5-7
cn: S-1-5-7
objectClass: sidMap
objectSid: S-1-5-7
type: ID_TYPE_UID
xidNumber: 65534

dn: CN=S-1-5-21-4219228698-1431711829-1578001372-500
cn: S-1-5-21-4219228698-1431711829-1578001372-500
objectClass: sidMap
objectSid: S-1-5-21-4219228698-1431711829-1578001372-500
type: ID_TYPE_UID
xidNumber: 0

dn: CN=S-1-5-21-4219228698-1431711829-1578001372-513
cn: S-1-5-21-4219228698-1431711829-1578001372-513
objectClass: sidMap
objectSid: S-1-5-21-4219228698-1431711829-1578001372-513
type: ID_TYPE_GID
xidNumber: 100

dn: @INDEXLIST
@IDXATTR: xidNumber
@IDXATTR: objectSid

#


More information about the samba mailing list