Fixes #17998 - Only print LDAP bind status if available
The ldap logger tries to call payload[:bind].status but it might not bedefined if the bind goes wrong in some LDAP sources.
This causes a 500 instead of logging the status of the bind. We shouldonly display payload[:bind].status if it's available.
Fixes #17998 - Only print LDAP bind status if available
The ldap logger tries to call payload[:bind].status but it might not be
defined if the bind goes wrong in some LDAP sources.
This causes a 500 instead of logging the status of the bind. We should
only display payload[:bind].status if it's available.