Semi-LDAP rookie here(z/OS 1.4).  Don't you have to say which objectclasses you 
need any time you're adding a new record.
 
Does it work if you include the 
    objectclass=top 
    objectclass=OnCallNotes 
lines in your LDIF file when adding the NoteNumber=6 record? 

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] Behalf Of Kevin 
Mullin
Sent: Wednesday, April 12, 2006 11:40 AM
To: IBM-MAIN@BAMA.UA.EDU
Subject: LDAP in z/OS 1.6 question



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 
OnCallCUID=KMULLIN 
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? 



#####################################################################################
Attention:
The information contained in this message and or attachments is intended
only for the person or entity to which it is addressed and may contain
confidential and/or privileged material. Any review, retransmission,
dissemination or other use of, or taking of any action in reliance upon,
this information by persons or entities other than the intended recipient
is prohibited. If you received this in error, please contact the sender and
delete the material from any system and destroy any copies.
#####################################################################################

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to