1
0
Fork 0

prodvider: clean up LDAP connections

Change-Id: Ic95e6d1b845832fa0fb2da51b418bcdcb8fd05c4
master
q3k 2019-08-31 15:00:51 +02:00
parent 71a21c7693
commit 896926c921
2 changed files with 2 additions and 1 deletions

View File

@ -9,7 +9,7 @@ local kube = import "../../../kube/kube.libsonnet";
cfg:: {
namespace: "prodvider",
image: "registry.k0.hswaw.net/cluster/prodvider:1567199084-2e1c08fa7a41faac2ef3f79a1bb82f8841a68016",
image: "registry.k0.hswaw.net/cluster/prodvider:1567256363-71a21c769369d013972d8dd0a71b83bee3e6848e",
pki: {
intermediate: {

View File

@ -38,6 +38,7 @@ func (p *prodvider) Authenticate(ctx context.Context, req *pb.AuthenticateReques
glog.Errorf("ldap.DialTLS: %v", err)
return nil, status.Error(codes.Unavailable, "could not context LDAP")
}
defer lconn.Close()
dn := fmt.Sprintf(flagLDAPBindDN, username)
err = lconn.Bind(dn, password)