mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-28 18:49:34 -05:00
fix perror; removed extra sequence opening (is it needed; if yes, it must also be closed, see #if 0)
This commit is contained in:
parent
2ad0a297b8
commit
538b582cdc
1 changed files with 7 additions and 2 deletions
|
|
@ -71,7 +71,7 @@ int ldap_parse_verify_credentials(
|
|||
rc = ldap_parse_extended_result(ld, res, &retoid, &retdata, 0);
|
||||
|
||||
if( rc != LDAP_SUCCESS ) {
|
||||
ldap_perror(ld, "ldap_parse_whoami");
|
||||
ldap_perror(ld, "ldap_parse_verify_credentials");
|
||||
return rc;
|
||||
}
|
||||
|
||||
|
|
@ -129,7 +129,9 @@ ldap_verify_credentials(LDAP *ld,
|
|||
assert(msgidp != NULL);
|
||||
|
||||
ber = ber_alloc_t(LBER_USE_DER);
|
||||
ber_printf(ber, "{");
|
||||
#if 0
|
||||
ber_printf(ber, "{" /*}*/ );
|
||||
#endif
|
||||
if (dn == NULL) dn = "";
|
||||
|
||||
if (mechanism == LDAP_SASL_SIMPLE) {
|
||||
|
|
@ -159,6 +161,9 @@ ldap_verify_credentials(LDAP *ld,
|
|||
}
|
||||
}
|
||||
}
|
||||
#if 0
|
||||
ber_printf(ber, /*{*/ "N}" );
|
||||
#endif
|
||||
|
||||
ber_flatten(ber, &reqdata);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue