General developer forum

how to change script so LDAP sync task only retrieves active users from AD

 
Picture of Nadirshah Ferozepurwalla
how to change script so LDAP sync task only retrieves active users from AD
 

Running LDAP sync task retrieves all the users from AD, even the users disabled in Microsoft AD.

I want to alter the script such that it gets only the active users and not the disabled users from AD so that the remaining users (Disabled users in AD) can be marked as suspended in Moodle

Please help, I have no knowledge of AD code and parameters and methods

 
Average of ratings: -