# ldapsrc="ldapsearch -LLL -H \"$ldapurl\" -b \"$basedn\" -D \"$binddn\" -w \"$ldappas\""
other="-b \"${basedn}\" -D \"${binddn}\" -w \"${ldappas}\""
ldapsrc="ldapsearch -v -LLL -H ldap://ad.local.lan $other"
$ldapsrc
ldap_bind: Invalid credentials (49)
additional info: 80090308: LdapErr: DSID-0C0903A9, comment: AcceptSecurityContext error, data 52e, v1db0