Correct binding and searching -- please look

Given the following DIT:
edge.com (Domain)
|-- Subgroup 1(type Organizational Unit)
|-- MMC_Users (type Organizational Unit)
|-- Advisors (type Organizational Unit)
|-- Person One (type User)
|-- Person Two (type User)
|-- Q (type Organizational Unit)
|-- Person Three (type User)
|-- Person Four (type User)
|-- Person Five (type User)
|-- TNBT (type Organizational Unit)
|-- Person Six (type User)
|-- MSU (type Organizational Unit)
|-- Person Seven (type User)
How would I bind to find all the user names of people listed in a subgroups of MMC_Users? In other words, what user exist in the Advisors, Q, TNBT, and MSU groups.
I am using the following search code:
Hashtable oEnv =new HAshtable();
oEnv.put(javax.naming.Context.PROVIDER_URL, "ldap://bos-gc01:389/dn=edge,dn=com");
oEnv.put(Context.SECURITY_AUTHENTICATION, "simple");
oEnv.put(Context.SECURITY_PRINCIPAL, "user");
oEnv.put(Context.SECURITY_CREDENTIALS, "pasword");
DirContext oCTX = new InitialDirContext(oEnv);
SearchControls constraints.setSearchScope(SearchControls.SUBTREE_SCOPE);
System.out.println("asking for search results....");
results = oCTX.search("ou=Q,ou=MMC_Users","(uid=*)", constraints);
System.out.println("@@@ DOES IT GET HERE?");
while ((results != null) && results.hasMore())
System.out.println("never get here");
Any help would be greatly appreciated.

ARGH! correct spacing wasn't showing is showing on this before....
edge.com (Domain)
   |-- Subgroup 1(type Organizational Unit)
   |-- MMC_Users (type Organizational Unit)
      |-- Advisors (type Organizational Unit)
        |-- Person One (type User)
        |-- Person Two (type User)
      |-- Q (type Organizational Unit)
        |-- Person Three (type User)
        |-- Person Four (type User)
        |-- Person Five (type User)
      |-- TNBT (type Organizational Unit)
        |-- Person Six (type User)
      |-- MSU (type Organizational Unit)
        |-- Person Seven (type User)

Similar Messages

Maybe you are looking for

  • Hp f2280 and Windows 8.1 pro 64bit

    Hello, I need help with my printer, I ve recently upgraded my OS to Win 8.1 from Vista, after upgrade i' ve installed drivers from hp official website and now it begins to be weird, my pc set my printer f2280 as default etc. everything looks fine on

  • Read image raw data without creating image

    Is there any way to read image raw data into an array from a file but not creating an image ? I looked through ImageIO. It seems that every time an image reader is called , a bufferediamge is created or reused ? Tanks fro any advice.

  • Set Memory of Geforce Go 7600 in Satellite A100-819

    I just bought a A100-819 and according to the specifications the Geforce Go 7600 has 256Mb of dedicated memory. However, when I check the properties I see it shows 256Mb dedicated memory and 255Mb shared memory. How do I turn of this shared memory?

  • "java ODBC Microsoft Access Driver Syntax error (missing operator) in query

    Hi I am new to java and I am getting this error message when using java to access and insert data into an MS Access database. "java ODBC Microsoft Access Driver Syntax error (missing operator) in query expression" The commands are String insertComman

  • Trouble with Bluetooth Devices

    I have a MacBook Pro 13" from late-2011.  Recently I have decided to use Bluetooth headsets instead of wired earbuds because I tend to forget they are in my ears and when I get up, they are yanked out of my ears, hurting me and potentially pulling my