mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
s3:passdb: Zero password in fetch_ldap_pw() callers
Signed-off-by: Pavel Filipenský <pfilipensky@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
parent
84d5e156ff
commit
3151e76054
@ -6659,8 +6659,7 @@ static NTSTATUS pdb_init_ldapsam_common(struct pdb_methods **pdb_method, const c
|
||||
nt_status = smbldap_init(*pdb_method, pdb_get_tevent_context(),
|
||||
location, false, bind_dn, bind_secret,
|
||||
&ldap_state->smbldap_state);
|
||||
memset(bind_secret, '\0', strlen(bind_secret));
|
||||
SAFE_FREE(bind_secret);
|
||||
BURN_FREE_STR(bind_secret);
|
||||
SAFE_FREE(bind_dn);
|
||||
if ( !NT_STATUS_IS_OK(nt_status) ) {
|
||||
return nt_status;
|
||||
|
@ -1678,8 +1678,7 @@ static int net_sam_provision(struct net_context *c, int argc, const char **argv)
|
||||
|
||||
status = smbldap_init(tc, NULL, ldap_uri, false, bind_dn, bind_secret, &state);
|
||||
|
||||
memset(bind_secret, '\0', strlen(bind_secret));
|
||||
SAFE_FREE(bind_secret);
|
||||
BURN_FREE_STR(bind_secret);
|
||||
SAFE_FREE(bind_dn);
|
||||
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
|
Loading…
Reference in New Issue
Block a user