This discussion is archived
3 Replies Latest reply: Dec 28, 2011 10:00 AM by EJP RSS

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

907772 Newbie
Currently Being Moderated
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

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points