[Date Prev][Date Next]
re: Subclassing inetOrgPerson
I did not modify the core schema,
I subclassed inetOrgPerson and created my own local.schema and added it to the slapd.conf file.
> --On Monday, April 19, 2004 1:27 PM -0600 Mike Stockemer
> <Mike.Stockemer@neotool.com> wrote:
> > For our special situation I needed to have separate attributes for a
> > given contacts multiple email addresses. So I subclassed inetOrgPerson
> > and added two new attributes, mail2 and mail3, identical to the mail
> > attribute of inetOrgPerson. If I do an ldapsearch like so
> > ldapsearch -x -b 'ou=people,dc=neotool,dc=com'
> > 'email@example.com'
> > The search is successfule and returns all attributes, even mail2 and
> > mail3 for contacts who have this information. If I do the same search
> > with email2 I get an error :80 unknown error.
> I'll comment with this:
> You need to get an OID, create your own schema, and then extend with
> attributes that "belong" to you. You should never change/modify a core,
> RFC derived, schema.
> Quanah Gibson-Mount
> Principal Software Developer
> ITSS/TSS/Computing Systems
> ITSS/TSS/Infrastructure Operations
> Stanford University
> GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html
Mike Stockemer, Support Engineer
NeoTool Development, LLC
PO Box 3586
Montrose, CO 81402-3586
970/252-0500 x11 (Voice)
866/Neo-Tool x11 (US toll free voice)
"NeoTool: All things HL7" -- Software tools, Training, and Consulting.