Novell Home

Searching Out the De-provisioned

Novell Cool Solutions: Trench

Digg This - Slashdot This

Posted: 7 Jan 2003
 

Here's a snippet of code to help you perform an LDAP search on your directory for users who are no longer with your company but still have network access:

The problem:
I need to do an LDAP search of all my users with a filter that says "return all the employees with pncEmployeeStatus=Terminated, and not loginDisabled=True". What I'm looking for is a list of users who no longer work here but for some reason we never disabled their accounts.

The solution:
In order to get the search results you want, your filter needs to look like this:

(&(pncEmployeeStatus=Terminated)(|(!(loginDisabled=*))(!(loginDisabled=TRUE))))


Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com

© 2014 Novell