socialcast/socialcast-command-line — pull request #14 by scashin133 (2012-08-09 18:18:25+00:00)
Title: add-sanity-check-for-terminate-users

Sometimes the AD server fails to return a correct result set. This has happened a few times for a particular customer.

This sanity_check option will check that all active users being marked for deletion are definitely no longer in AD. This is accomplished by scanning through the list of users currently active in Socialcast and finding all the users who would be terminated. For each of those users it attempts to find that user in AD again. If it finds them it will abort the script.