fix issue7793: ping ldap server is always success (#7795)
fix issue7793: ping ldap server is always success (#7795)

Signed-off-by: stonezdj <e448f09b914c496cf3b92ef4ede40f018f408657@gmail.com>
reasonerjt/harbor,wy65701436/harbor,reasonerjt/harbor,wy65701436/harbor,reasonerjt/harbor,reasonerjt/harbor,wy65701436/harbor,wy65701436/harbor,wy65701436/harbor,wy65701436/harbor,reasonerjt/harbor,reasonerjt/harbor