3 Replies Latest reply on Dec 28, 2011 6:00 PM by EJP

    How to retrieve all records with its all attributes???

    907772
      Hi,

      I am trying to query LDAP to get all the records with is all attributes using InitialDirContext.search method.
      But I am getting exception as "Invalid Attribute exception".

      For the search method i used filer as

      String filter = "(&( uid =* ))";

      String[] filterAttr = { "uid" };

      SearchControls searchControl = new SearchControls();
      searchControl.setSearchScope( SearchControls.SUBTREE_SCOPE );

      results = dctx.search( PPL_DN, filter, searchControl );

      Please help to resolve this...

      Thanks in Advance


      Regards,
      Peri