Roy,
I saw this post and wondered if you had any luck? I also have a problem accessing properties but further on down the tree. It seems I can not retrieve and Numerics (MS - Integer8, I think)... specifically the pwdLastSet value...have you ever had success accessing a similar value?
Here is our code, not sure if it helps your case
[CODE]
InitialDirContext ctx = new InitialDirContext(props);
SearchControls constraints = new SearchControls();
constraints.setSearchScope(SearchControls.SUBTREE_SCOPE);
String[] attrIDs = {"cn", "distinguishedName", "description"};
String filt = "cn="+userid;
constraints.setReturningAttributes(attrIDs);
NamingEnumeration results = ctx.search("ou=Foo,DC=foo,DC=foo,DC=foo,DC=foo", filt, constraints);
if (results != null && results.hasMore()){
status = 1;
SearchResult si = (SearchResult)results.next();
Attributes attrs = si.getAttributes();
if (attrs != null) {
for (NamingEnumeration ae = attrs.getAll(); ae.hasMoreElements()
{
Attribute attr = (Attribute)ae.next();
String attrId = attr.getID();
if (attrId.equals("distinguishedName")){
{
for (Enumeration vals = attr.getAll(); vals.hasMoreElements()
{
str = str + vals.nextElement();
etc., etc.