Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-28-2009, 08:19 PM
Member
 
Posts: 12
Default Filtering out Active Directory Locked Out Users?

Based on Q269181, you can specify a filter attribute like this:

attributename:ruleOID:=value

Which turns into something like this:

Code:
(userAccountControl:1.2.840.113556.1.4.803:=2)
userAccountControl is the attribute used to store information about the user's password account information.
1.2.840.113556.1.4.803 is LDAP_MATCHING_RULE_BIT_AND so it should match every account that has only the value specified.
2 is the value for an account being locked out. This is a decimal bit-mask value specified in Q305144:

Code:
ACCOUNTDISABLE   	0x2    	2 # Account is disabled
NORMAL_ACCOUNT    	0x0200	512 # Account is normal
DONT_EXPIRE_PASSWORD	0x10000	65536 # Account Password never expires
So in theory, by adding something like:

Code:
(!(userAccountControl:1.2.840.113556.1.4.804:=2))
Should filter so that only active accounts that are not locked out will be returned by the ldap search. (...804) is the OR operation.

I haven't been able to find a combination that works, though. Has anyone else?
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.