This is a code issue. I'm trying to do something, and its not working, and I need some help from someone who knows LDAP in z/OS 1.6. Here is a statement of my problem. By the way, I am cloning an existing system, one that I wrote, to come up with a similar system to achieve a similar result, an LDAP database with information that can be used in a web application to display data to end users on their web browsers using CGI programs written in REXX to generate HTML to go back to the client browser.
I've defined a schema for my new data, and have run ldapmodify to add the schema, and that works quite nicely. Here are portions of that:
objectclasses: (
9.9.99.9.9.10.91
NAME 'OnCallNotes'
DESC 'Defines the OnCallNotes object'
SUP top
Structural
MUST ( NoteNumber )
MAY (Date $ OnCallCUID $ Summary $ Notes )
)
objectclasses: (
9.9.99.9.9.10.92
NAME 'OCLastNumber'
DESC 'Last OnCallNote number generated'
SUP top
Structural
MUST ( NoteNumber )
)
of course the rest of this file contains attribute definitions for Date, OnCallCuid, Summary and Notes. The addition was fine. Then I tried to add some data with ldapadd and a text file that contained:
NoteNumber=4, ou=OnCallNotes, o=ccss
objectclass=top
objectclass=OnCallNotes
NoteNumber=4
Date=2006/04/11
>
Summary=This is the first test note
Notes=This is a long note of what happened in an on call situation.
And it worked quite nicely, but then I tried to add this with LDAP add:
NoteNumber=6, ou=OCLastNumber, o=ccss
NoteNumber=6
and it failed with:
adding new entry NoteNumber=6, ou=OCLastNumber, o=ccss
ldap_add: Object class violation
ldap_add: additional info: R001071 Entry did not contain an object class. (schem
aimpl.c|1.74.2.2|1558), (schemaimpl.c|1.74.2.2|1578), (tdbm_add.c|1.90.1.3|816)
Can someone help me by telling me what I did wrong?
Kevin Mullin Sr. Analyst IBM Corporation (206) 345-7068 [EMAIL PROTECTED] | ![]() |


