Re: Object Class Violation
"Neil Schneider" <[email protected]> Thu, 21 Jul 2005 08:02:51 -0700 (PDT)
| Newsgroups | gmane.network.directoryadmin |
|---|---|
| Message-ID | <[email protected]> |
Muthu Kumar .S said: > though I do not know the context of your database where you are using > it? > > But below is what I use for a mail server and instead of the account I > have > organizationalPerson. > > Below is the main objectclassed and attributes I have > > Just export the ldab db to ldif and replace the account attribute to > organisationalperson. > > It should work fine. > > > > dn: uid=username,ou=People,dc=example,dc=com > uid: username > mail: [email protected] > sn: username > cn: username > objectClass: organizationalPerson > objectClass: inetOrgPerson > objectClass: top > objectClass: posixAccount > objectClass: shadowAccount > shadowMax: 99999 > shadowWarning: 7 > loginShell: /bin/bash > uidNumber: 900 > homeDirectory: /home/username > structuralObjectClass: inetOrgPerson OK, now I'm beginning to see the problem a little better. IMNSHO it is diradmin that is the problem. Here's an account example: dn: uid=person,ou=People,o=workstation,dc=example,dc=net uid: person cn: person objectClass: account objectClass: posixAccount objectClass: top objectClass: shadowAccount shadowLastChange: 12716 shadowMax: 99999 shadowWarning: 7 loginShell: /bin/bash uidNumber: 500 gidNumber: 100 homeDirectory: /home/person Now, before you criticize or suggest alternative objectclasses, you must know that I used PADL migration tools to create the ldif files. And you must also know that gq doesn't have a problem creaing new accounts with out creating a Object Class Violation. So I can only presume that it's some hard coding of objectClass into diradmin that is causing the problem. What I suspect, is that instead of templating from the existing accounts. Perhaps if I started with no existing user and group endries in ldap, then it would work fine. -- Neil Schneider pacneil_at_linuxgeek_dot_net http://www.paccomp.com Key fingerprint = 67F0 E493 FCC0 0A8C 769B 8209 32D7 1DB1 8460 C47D Secrecy, being an instrument of conspiracy, ought never to be the system of a regular government. - Jeremy Bentham, jurist and philosopher (1748-1832)