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.
(cherry picked from commit 7447d046a09751a96bff0f1e857e85a7aa176396)
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.
(cherry picked from commit 7447d046a09751a96bff0f1e857e85a7aa176396)