SuSE SLES 10 Migrating from NIS using MigrationTools

So we were moving a NIS database to LDAP under SUSE SLES 10 using the MigrationTools-47 scripts. It generated the ldif file, but would not import because it was failing on adding groups. This was the error we were getting:

(65) no structural object class provided

All we had to do is change this:

objectClass: posixGroup
objectClass: top

to this:

objectClass: posixGroup
objectClass: namedObject
objectClass: top

for each group in the ldif file. Then we redid slapadd -l file.ldif and everything worked.

This is all due to the way SUSE handles LDAP groups in the rfc2307bis.schema file in openldap.

If you want to edit the MigrateGroup scripts to handle this for you just edit the migrate_group.pl file and change the lines (around line 69) from:

print $HANDLE "objectClass: posixGroup\n";
print $HANDLE "objectClass: top\n";

to:

print $HANDLE "objectClass: posixGroup\n";
print $HANDLE "objectClass: namedObject\n";
print $HANDLE "objectClass: top\n";

And that should be it. Happy ldaping!

Related posts:
No tags for this post.

0 Responses to “SuSE SLES 10 Migrating from NIS using MigrationTools”


  1. No Comments

Leave a Reply

This site uses KeywordLuv. Enter YourName@YourKeywords in the Name field to take advantage.





Enter your email address:

Delivered by FeedBurner


What am I doing?

Powered by Twitter Tools

TwitterCounter for @jeremyheslop Page Rank Check

mozy


Use OpenDNS

www.flickr.com
This is a Flickr badge showing public photos from jeremy.heslop. Make your own badge here.


Facebook me!











SEO Powered by Platinum SEO from Techblissonline