#3 Fix required groups

This commit is contained in:
Tiago Augusto Pimenta 2018-10-15 12:39:42 -03:00
parent ca6aab5629
commit 9b7d526d85
4 changed files with 4 additions and 4 deletions

2
build
View file

@ -3,7 +3,7 @@
set -e
base='docker.io/tpimenta/nginx-ldap-auth'
version='v1.0.1'
version='v1.0.2'
image="$base:$version"
atexit() {

View file

@ -71,7 +71,7 @@ spec:
spec:
serviceAccountName: nginx-ldap-auth
containers:
- image: docker.io/tpimenta/nginx-ldap-auth:v1.0.0
- image: docker.io/tpimenta/nginx-ldap-auth:v1.0.2
name: nginx-ldap-auth
command:
- "nginx-ldap-auth"

View file

@ -26,7 +26,7 @@ spec:
app: nginx-ldap-auth
spec:
containers:
- image: docker.io/tpimenta/nginx-ldap-auth:v1.0.1
- image: docker.io/tpimenta/nginx-ldap-auth:v1.0.2
name: nginx-ldap-auth
command:
- "nginx-ldap-auth"

View file

@ -55,7 +55,7 @@ func (p *Service) validate(username, password string) (bool, error) {
}
if ok || p.required == nil || len(p.required) == 0 {
return err != nil, nil
return err == nil, nil
}
groups, err := p.group.Find(id)