Skip to content

Commit

Permalink
Fix nil map
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonodonnell committed Jan 14, 2022
1 parent 5dc6e43 commit 002ed5f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion builtin/credential/ldap/path_login.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ func (b *backend) pathLogin(ctx context.Context, req *logical.Request, d *framew
}

if cfg.UPNDomain != "" {
auth.Alias.Metadata["upn_domain_username"] = effectiveUsername
auth.Alias.Metadata = map[string]string{
"upn_domain_username": effectiveUsername,
}
}

cfg.PopulateTokenAuth(auth)
Expand Down

0 comments on commit 002ed5f

Please sign in to comment.