BACKPORT source4/libcli/ldap/ldap_bind.c from master