Tim Edwards
2005-Nov-29 01:18 UTC
[Fedora-directory-users] ''No Such Object'' when importing LDIF from OpenLDAP
I''m trying to import the data from our OpenLDAP server into FedoraDS.
I''ve exported the data from OpenLDAP into an LDIF file and am now
trying
to import that into my Fedora DS instance, unfortunately it gets errors
on the first entry. I tried just seperating out the first entry into its
own LDIF file:
dn: cn=Domain Users,ou=groups,dc=registriesltd,dc=com,dc=au
gidNumber: 513
sambaSID: S-1-5-21-1837449576-3234076748-520123900-513
cn: Domain Users
sambaGroupType: 2
objectClass: top
objectClass: posixgroup
objectClass: sambaGroupMapping
description: Domain Users
displayName: Domain Users
creatorsName: cn=samba,ou=special,dc=registriesltd,dc=com,dc=au
createTimestamp: 20041013050147Z
modifiersName: cn=samba,ou=special,dc=registriesltd,dc=com,dc=au
modifyTimestamp: 20041013050147Z
But I still get the same error when importing it:
Error adding object ''dn: cn=Domain
Users,ou=groups,dc=registriesltd,dc=com,dc=au''. The error sent by the
server was ''No such object''. The object is: LDAPEntry:
cn=Domain
Users,ou=groups,dc=registriesltd,dc=com,dc=au; LDAPAttributeSet:
LDAPAttribute {type=''gidnumber'',
values=''513''} LDAPAttribute
{type=''displayname'', values=''Domain Users''}
LDAPAttribute
{type=''objectclass'',
values=''top,posixgroup,sambaGroupMapping''}
LDAPAttribute {type=''sambasid'',
values=''S-1-5-21-1837449576-3234076748-520123900-513''}
LDAPAttribute
{type=''modifytimestamp'',
values=''20041013050147Z''} LDAPAttribute
{type=''modifiersname'',
values=''cn=samba,ou=special,dc=registriesltd,dc=com,dc=au''}
LDAPAttribute {type=''sambagrouptype'',
values=''2''} LDAPAttribute
{type=''createtimestamp'',
values=''20041013050147Z''} LDAPAttribute
{type=''cn'', values=''Domain Users''}
LDAPAttribute {type=''creatorsname'',
values=''cn=samba,ou=special,dc=registriesltd,dc=com,dc=au''}
LDAPAttribute {type=''description'', values=''Domain
Users''}.
I''m a bit of newbie when it comes to LDIF files and Schemas so
I''m not
sure exacly where to go from here? Is there a more detailed error log
than that rejects file? What kind of problems cause this ''No Such
Object'' error?
Thanks
--
Tim Edwards
Kevin M. Myer
2005-Nov-29 01:31 UTC
Re: [Fedora-directory-users] ''No Such Object'' when importing LDIF from OpenLDAP
Quoting Tim Edwards <tim@registriesltd.com.au>:> I''m trying to import the data from our OpenLDAP server into FedoraDS. > I''ve exported the data from OpenLDAP into an LDIF file and am now > trying to import that into my Fedora DS instance, unfortunately it > gets errors on the first entry. I tried just seperating out the first > entry into its own LDIF file: > > dn: cn=Domain Users,ou=groups,dc=registriesltd,dc=com,dc=au > gidNumber: 513 > sambaSID: S-1-5-21-1837449576-3234076748-520123900-513 > cn: Domain Users > sambaGroupType: 2 > objectClass: top > objectClass: posixgroup > objectClass: sambaGroupMapping > description: Domain Users > displayName: Domain Users > creatorsName: cn=samba,ou=special,dc=registriesltd,dc=com,dc=au > createTimestamp: 20041013050147Z > modifiersName: cn=samba,ou=special,dc=registriesltd,dc=com,dc=au > modifyTimestamp: 20041013050147ZTim, What is the base of the directory you are trying to import into? If it is dc=registriesltd,dc=com,dc=au, then you need a ou=groups,dc=registriesltd,dc=com,dc=au entry before you can import your cn=Domain Users entry. The parent of each child entry must exist before you can import the child. Kevin -- Kevin M. Myer Senior Systems Administrator Lancaster-Lebanon Intermediate Unit 13 http://www.iu13.org
David Boreham
2005-Nov-29 02:19 UTC
Re: [Fedora-directory-users] ''No Such Object'' when importing LDIF from OpenLDAP
> > I''m a bit of newbie when it comes to LDIF files and Schemas so I''m not > sure exacly where to go from here? Is there a more detailed error log > than that rejects file? What kind of problems cause this ''No Such > Object'' error?If you get no such object upon attempting to add an entry, that means that the entry''s parent doesn''t exist.
Del
2005-Nov-29 02:41 UTC
Re: [Fedora-directory-users] ''No Such Object'' when importing LDIFfrom OpenLDAP
Tim Edwards wrote:> I''m trying to import the data from our OpenLDAP server into FedoraDS. > I''ve exported the data from OpenLDAP into an LDIF file and am now trying > to import that into my Fedora DS instance, unfortunately it gets errors > on the first entry. I tried just seperating out the first entry into its > own LDIF file: > > dn: cn=Domain Users,ou=groups,dc=registriesltd,dc=com,dc=auYou need to (manually) create the ou=groups,dc=registriesltd,dc=com,dc=au entry before you add this as others have suggested.> gidNumber: 513 > sambaSID: S-1-5-21-1837449576-3234076748-520123900-513You will probably have to add a schema extension before you add this attribute -- have you read the stuff in the Fedora Directory Server wiki about getting schema entries from OpenLDAP (in whose format the samba schema extensions are provided) into FDS?> objectClass: sambaGroupMappingAlternatively, if you know the OID of the sambaGroupMapping object class then you can use LdapImport to import the object and its attributes directly from your running OpenLDAP DS into your running FDS.> creatorsName: cn=samba,ou=special,dc=registriesltd,dc=com,dc=au > createTimestamp: 20041013050147Z > modifiersName: cn=samba,ou=special,dc=registriesltd,dc=com,dc=au > modifyTimestamp: 20041013050147ZYou don''t want to attempt to import these attributes from your LDIF file into FDS. LdapImport should be able to help you out here: http://wiki.babel.com.au/index.php?area=Linux_Projects&page=LdapImport -- Del