[KLUG Members] ldap102 presentation

Dirk H Bartley bartleyd2 at chartermi.net
Mon Nov 22 13:44:26 EST 2004



I looked for the ldap102 presentation on the past presentation page and
on the ftp server.  Did not succeed at finding it.

Also was looking for the appropriate schema and migration script
combination.  On a suse machine I did not succeed with groups from what
was being output from migration scripts.

Using the most recent download from padl

./migrate_group.pl /etc/group > group.ldif

yields entries like
dn: cn=root,ou=Group,dc=alum,dc=schupan,dc=com
objectClass: posixGroup
objectClass: top
cn: root
userPassword: {crypt}x
gidNumber: 0

attempting an add
cat group.ldif | ldapadd -v -h localhost -x -w gi8one2 -D
"cn=Manager,dc=alum,dc=schupan,dc=com"

gets the following output

adding new entry "cn=root,ou=Group,dc=alum,dc=schupan,dc=com"
ldapadd: update failed: cn=root,ou=Group,dc=alum,dc=schupan,dc=com
ldap_add: Object class violation (65)
        additional info: no structural object class provided

I understand what it is complaing about (structural vs auxiliary) but
don't know what the group object entry should look like and was assuming
the migration script would make an entry that would work.  I'm sure
there will be more issues but this is an example.  

rpm -qa | grep ldap

ldapcpplib-0.0.3-16
openldap2-client-2.2.6-34
multisync-ldap-0.81-53
nss_ldap-215-55
perl-ldap-ssl-0.29-132
pam_ldap-169-24
php4-ldap-4.3.4-26
tclldap-1.2-204
openldap2-2.2.6-37.22
yast2-ldap-2.9.10-10
yast2-ldap-client-2.9.14-5
perl-ldap-0.29-132
myldapklient-0.6.6-300

The following schema elements exist by default

include   /etc/openldap/schema/core.schema
include   /etc/openldap/schema/cosine.schema
include   /etc/openldap/schema/inetorgperson.schema
include   /etc/openldap/schema/rfc2307bis.schema
include   /etc/openldap/schema/yast.schema

                                                                                                                                      Dirk



More information about the Members mailing list