[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Dumb(?) schema problem

Hi Keith,

You didn't include a sample entry, but based on the DN starting with "mail=", I'm assuming that the second entry you added was of type "JammMailAccount".

Note that your schema defines that objectclass as being auxiliary. An entry needs to have at least one structural objectclass and that's why you got the error you did. I'm assuming that JammMailAccount is a local schema addition and that perhaps you intend the objectclass to be structural instead. If not, you'll have to make the entry a member of multiple classes, with one of them being structural.


On Wednesday, December 4, 2002, at 05:56 PM, Keith T. Garner wrote:

I'm writing an application that uses its own schema to store some
data.  With OpenLDAP 2.0.x everything was smooth sailing.  With
OpenLDAP 2.1.x, I'm getting an error with the one structural object
I've created.  Looking in gq it appears to be structural as far as
openldap is concerned, but once I try to add something to do, it

From my attempts:

Dec 4 17:52:47 zorak slapd[1821]: conn=13 op=12 ADD dn="jvd=domain1.test,o=hosting,dc=jamm,dc=test"
Dec 4 17:52:47 zorak slapd[1821]: conn=13 op=12 RESULT tag=105 err=0 text=
Dec 4 17:52:47 zorak slapd[1820]: conn=13 op=13 ADD dn="mail=acct1@domain1.test,jvd=domain1.test,o=hosting,dc=jamm,dc=test"
Dec 4 17:52:47 zorak slapd[1820]: conn=13 op=13 RESULT tag=105 err=65 text=no structural object classes provided

Here's what JVM/JammVirualDomain looks like:
objectclass ( NAME 'JammVirtualDomain'
DESC 'Virtual Domain entry to be used with postfix transport maps'
MUST ( jvd $ accountActive $ lastChange $ delete $ editAccounts $
editPostmasters )
MAY ( postfixTransport $ description ) )

Here's what the JammMailAccount object (that is trying to be added)
looks like:
objectclass ( NAME 'JammMailAlias' SUP top AUXILIARY
DESC 'Mail aliasing/forwarding entry'
MUST ( mail $ maildrop $ accountActive $ lastChange )
MAY ( mailsource $ cn $ description $ userPassword ) )

Is there anything really obvious that I'm missing?


Keith T. Garner kgarner@kgarner.com
The whole problem with the world is that fools and fanatics are always so
certain of themselves, and wiser people so full of doubts. --Bertrand Russell