forked from hswaw/hscloud
prodvider: clean up LDAP connections
Change-Id: Ic95e6d1b845832fa0fb2da51b418bcdcb8fd05c4master
parent
71a21c7693
commit
896926c921
|
@ -9,7 +9,7 @@ local kube = import "../../../kube/kube.libsonnet";
|
||||||
|
|
||||||
cfg:: {
|
cfg:: {
|
||||||
namespace: "prodvider",
|
namespace: "prodvider",
|
||||||
image: "registry.k0.hswaw.net/cluster/prodvider:1567199084-2e1c08fa7a41faac2ef3f79a1bb82f8841a68016",
|
image: "registry.k0.hswaw.net/cluster/prodvider:1567256363-71a21c769369d013972d8dd0a71b83bee3e6848e",
|
||||||
|
|
||||||
pki: {
|
pki: {
|
||||||
intermediate: {
|
intermediate: {
|
||||||
|
|
|
@ -38,6 +38,7 @@ func (p *prodvider) Authenticate(ctx context.Context, req *pb.AuthenticateReques
|
||||||
glog.Errorf("ldap.DialTLS: %v", err)
|
glog.Errorf("ldap.DialTLS: %v", err)
|
||||||
return nil, status.Error(codes.Unavailable, "could not context LDAP")
|
return nil, status.Error(codes.Unavailable, "could not context LDAP")
|
||||||
}
|
}
|
||||||
|
defer lconn.Close()
|
||||||
|
|
||||||
dn := fmt.Sprintf(flagLDAPBindDN, username)
|
dn := fmt.Sprintf(flagLDAPBindDN, username)
|
||||||
err = lconn.Bind(dn, password)
|
err = lconn.Bind(dn, password)
|
||||||
|
|
Loading…
Reference in New Issue