[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Sun's JNDI Tutorial && OpenLDAP
hi,
has anyone had success using sun's jndi tutorial w/ openldap?
i'm having problems in the very initial stages... setup, even :-)
specifically, as prep for the tutorial, the user is supposed to modify
the slapd schema to handle java objects. there is a provided java class
to do this, but i am unable to get it to run...
i consistently get the following exception:
root@40oz:~# java -Djava.naming.provider.url=ldap://localhost/
-classpath $CLASSPATH:. CreateJavaSchema "-ncn=Manager, dc=home, dc=net"
-psecret
javax.naming.OperationNotSupportedException: Cannot get schema
information from server; remaining name ''
at com.sun.jndi.ldap.LdapCtx.getSchemaEntry(LdapCtx.java:1423)
at com.sun.jndi.ldap.LdapCtx.getSchemaTree(LdapCtx.java:1329)
at com.sun.jndi.ldap.LdapCtx.c_getSchema(LdapCtx.java:1276)
at
com.sun.jndi.toolkit.ctx.ComponentDirContext.p_getSchema(ComponentDirContext.java:418)
at
com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.getSchema(PartialCompositeDirContext.java:391)
at
com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.getSchema(PartialCompositeDirContext.java:380)
at
javax.naming.directory.InitialDirContext.getSchema(InitialDirContext.java:188)
at CreateJavaSchema.showSchema(CreateJavaSchema.java:153)
at CreateJavaSchema.run(CreateJavaSchema.java:110)
at CreateJavaSchema.main(CreateJavaSchema.java:95)
my basic system info is: Linux, Berkely DB, OpenLDAP, pthreads...
any and all help/comments are appreciated!
many thanks,
derek
- References:
- Help
- From: "Ching-Liang Tseng" <cltseng@idini.com>