Results 1 to 1 of 1
Thread: CompositeName with LDAP URL
-
CompositeName with LDAP URL
Example below creates CompositeName that comprise of LDAP URL.
Java Code:String url = "ldap://localhost:389/cn=homedir,cn=Jon%20Ruiz,ou=people,o=JNDITutorial"; // Create a CompositeName in which the first component is a URL string Name name = new CompositeName().add(url); // Add the other components name.add("tutorial").add("report.txt"); // Perform the lookup by using CompositeName System.out.println(ctx.lookup(name));
Similar Threads
-
Configuring LDAP and JAVA
By peiceonly in forum Advanced JavaReplies: 2Last Post: 04-19-2007, 06:46 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks