ldap search filter problem

Hi.

I have a problem with search filters.

My code is similar to below:

public ArrayList<Object> rootSearch(String BaseDistinguishedName, String searchFilter){

searchFilter = "(uid>= tkiziloren)" ;

ArrayList<Object> myList = new ArrayList<Object>();

// myList.add(BaseDistinguishedName);

Attributes matchAttrs = new BasicAttributes(true);

SearchControls ctls = new SearchControls();

NamingEnumeration answer;

try {

answer = ctx.search(BaseDistinguishedName,searchFilter,ctls);

int i = 0;

while (answer.hasMore()) {

if(i == 100){

return myList;

}

SearchResult sr;

try {

sr = (SearchResult) answer.next();

String name = sr.getName();

myList.add(name);

} catch (NamingException ex) {

ex.printStackTrace();

}

i++;

}

} catch (NamingException ex) {

ex.printStackTrace();

}

return myList;

}

RFC definition says that its OK using "<=" and ">=" operators in search filters. However above code returns nothing.

Its working with other operators like "~=" , "=" by the way. (That is the filter "uid=tkiziloren" is working )

Is my search filter wrong? (I am using openldap.)

Thanks in advance.

Tevfik Kiziloren.

[1337 byte] By [tevfikkizilorena] at [2007-11-15]