Thanks Emmanuel,

If combine it into the following I can get what appears to be complete list

           String attrIds[] = {"1.1","+","*"};

            SearchControls searchCtls = new SearchControls();
            searchCtls.setSearchScope(SearchControls.SUBTREE_SCOPE);
            searchCtls.setReturningAttributes(attrIds);

Regards
suneet


On Fri, Mar 25, 2011 at 7:00 PM, Emmanuel Lécharny <elecharny@apache.org> wrote:
On 3/25/11 11:44 PM, Suneet Shah wrote:
Hello,

thanks for providing the link below.  According to the link it says that I
need to specify the list of operational attributes in order to be able to
obtain the values for them.
Is there a way to programatically determine the list of attributes that are
available for an object so that dynamically build that list?

You can pass the '+' special attribute, in combinaison to the special '1.1' attribute, to get the list of available operational attributes, and only those (excluding the values). Then you can select the ones that you want the values for, and resend a request with the specific attributes.

Keep in mind that Operational attributes are not associated with an ObjectClass. They are also specific to a server, except a few ones that are mandatory whatever the Ldap server you will address.

Bottom line, you'd better know which Op Attr you want to manipulate, and you also have to understand that most of them are purely for the server internal use.


--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com