This content has been marked as final. Show 2 replies
get the below one for sample code
Querying deleted objects container in Active Directory using JNDI
there is no such status attribute in ad but you have to get the userAccountControl attribute for same. add the userAccountControl in the returnAttribute and then decode it (for example,if the value of userAccountControl =512 means Enable)
Refer this as well.