Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > J2EE
J2EE General J2EE (Java 2 Enterprise Edition) discussions. Questions not specific to EE will be redirected elsewhere.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the J2EE section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old May 12th, 2007, 06:29 AM
Registered User
Join Date: May 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default urgent help needed in ldap search operation

Code Snippet

// Connection to the server

String base = "o=product, ou=Members, o=ABC, o=abc.net";

String filter = "(objectClass=*)";
String[] ATTRS = {"cn"};

// Search String
res = ld.search(base,LDAPv2.SCOPE_SUB,filter,ATTRS,false );

// Printing Results
while (res.hasMoreElements()) {
try {
// The next entry
LDAPEntry entry = res.next();
printEntry(entry, ATTRS);

Root Structure is as follows
cn =ddd
cn =aaa
cn =bbb
cn =ddd
cn =aaa
cn =bbb

Under Members there are 3 different roots.again in sales there is another subroot called c=US which contains list of cn values.

When I give the search string as "o=product, ou=Members, o=ABC, o=abc.net",I could get all the cn values.
But when I give the Search string as "c=US,o=product, ou=Members, o=ABC, o=abc.net",no values are returned.

Can you help me in tracing this pbm


Similar Threads
Thread Thread Starter Forum Replies Last Post
Find or Search Operation bright_mulenga Access VBA 2 January 17th, 2008 11:55 AM
Needed Very Urgent ndrnathan C# 0 June 8th, 2007 07:43 AM
urgent help needed ramabharti Javascript How-To 2 November 21st, 2006 01:17 AM
URGENT Help needed scott Access 12 November 16th, 2003 03:13 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.