You could use a filter like this:

"(&(" + propertyName + "=" + propertyValue +
")(objectClass=inetOrgPerson)(!(loginDisabled=true )))";


See also:
https://www.google.com/search?q=ldap...rch=Novell.com


Wolfgang

On 30.07.2012 22:16, binucybersoft wrote:
> String searchFilter = "(&(objectclass=user)(" + propertyName + "=" +
> propertyValue + ")!(ndsLoginProperties=logindisabled))";