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 protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]