With the recent events, we've seen that script failing when LDAP returns a 500 error. To improve things, it would be nice to:
- add error handling to avoid crashing when LDAP returns a 500 error
- add a retry policy (exponential backoff limited to 5 ?) to the script to avoid failing on the first error
- add a metric set to track errors/success and the matching set of alerts