Re: program

Eric Rosenquist (rosenqui@krusty.esltd.com)
Fri, 9 Dec 1994 18:56:06 -0500 (EST)

> I wrote a program using ldap to query the directory and return
> info from the directory. It works fine. In the directory, however,
> I added to some new object classes and attributes. When I use
> the program to return all the attributes of an entry, I get the
> OID for the attribute type and an ASN.1 string for the attribute
> value. How do I 'tell' ldap of the new object classes and attributes?
> thanks.

You can't do anything within the client (other than knowing the schema
and translating the OIDs to strings yourself). The place to handle it
is in the daemon. The ldapd uses the ISODE libdsap, which gets its
schema information out of the $(ETCDIR)/oidtables.* files. If the
oidtables are correct on the ldapd's machine, and if ldapd knows where
to find them, you should automatically get the right attribute names
and string encodings of the values in the data the daemon returns to
your client.

Eric
------------------------\ /--------------------------\ /-----------------------
Eric Rosenquist |Phone : (613) 592-4924 |"You're not as stupid as
Enterprise Solutions Ltd.|Fax : (613) 591-3485 |you look,or sound,or our
94 Rowe Drive |Internet: rosenqui@esltd.com|best testing indicates"
Kanata Ont CANADA K2L 3Y9|Opinions: are my own | -- Mr. Burns to Homer
------------------------/ \--------------------------/ \-----------------------