• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
JNDI Adaptor and Inserting Records
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

JNDI Adaptor and Inserting Records


  • Subject: JNDI Adaptor and Inserting Records
  • From: Timothy Worman <email@hidden>
  • Date: Thu, 11 Dec 2014 15:15:51 -0800

Hello All:

We are setting up a new LDAP server (389 Directory Server) and are moving away from Open Directory. With the new directory server I’d like to try to insert new user records directly through the WO JNDI adaptor.

Reverse engineering the directory sets relativeDistinguishedName as the primary key for inetOrgPerson. I’m doing a simple test trying to insert a user and I get the exception below. Apparently, in the model or elsewhere I have to create a ‘format’ for relativeDistinguishedName. I can find _some_ documentation of this online but I can’t find any examples of applying a format from the model. Can anyone give me a push as to what this might look like?

Can anyone give me an idea of what such a ‘format’ would include and where I should include it?

JNDIAdaptorException: The format for the distinguished name is null or empty! Entity: InetOrgPerson
  at com.webobjects.jndiadaptor.LDAPPlugIn._formatDistinguishedName(LDAPPlugIn.java:325)
  at com.webobjects.jndiadaptor.LDAPPlugIn.relativeDistinguishedNameForNewRow(LDAPPlugIn.java:413)
  at com.webobjects.jndiadaptor.JNDIContext._newPrimaryKey(JNDIContext.java:171)
     ... skipped 2 stack elements
  at com.webobjects.eocontrol.EOObjectStoreCoordinator.saveChangesInEditingContext(EOObjectStoreCoordinator.java:370)
  at com.webobjects.eocontrol.EOEditingContext.saveChanges(EOEditingContext.java:3192)
  at er.extensions.eof.ERXEC._saveChanges(ERXEC.java:1179)
  at er.extensions.eof.ERXEC.saveChanges(ERXEC.java:1102)
  at edu.ucla.gseis.jndi.test.components.Main.insertNewPerson(Main.java:34)
     ... skipped 25 stack elements
  at er.extensions.appserver.ERXComponentRequestHandler._dispatchWithPreparedPage(ERXComponentRequestHandler.java:157)
  at er.extensions.appserver.ERXComponentRequestHandler._dispatchWithPreparedSession(ERXComponentRequestHandler.java:235)
  at er.extensions.appserver.ERXComponentRequestHandler._dispatchWithPreparedApplication(ERXComponentRequestHandler.java:268)
  at er.extensions.appserver.ERXComponentRequestHandler._handleRequest(ERXComponentRequestHandler.java:302)
  at er.extensions.appserver.ERXComponentRequestHandler.handleRequest(ERXComponentRequestHandler.java:378)
  ... skipped 6 stack elements

Tim Worman
UCLA GSE&IS




 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Prev by Date: Re: FATAL Unlocking thread is not locking thread
  • Next by Date: RE: FATAL Unlocking thread is not locking thread
  • Previous by thread: Re: Facebook login component?
  • Next by thread: Help! Have array of EOs. Need convert to CSV (selected key paths)
  • Index(es):
    • Date
    • Thread