Syncing only non-disabled users with Service Manager 2012 Active Directory Connector

Syncing only non-disabled users with Service Manager 2012 Active Directory Connector

Today at a customer implementation, we started importing users from AD into the Service Manager 2012 CMDB.
After the first sync, we noticed all users, including disabled ones, were synched.

After some digging, it seems the LDAP query below does the trick:

 
 

Only the enabled users were imported.