Skip to content

Commit b375146

Browse files
authored
Merge pull request #3 from simayosi/fix/removal-unauthenticated-bind
Removed the LDAP UnauthenticatedBind() call.
2 parents 8cc9216 + 1224524 commit b375146

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/ngx_auth/ldap_auth/bind_auth.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ func (lba *LdapAuth) Authenticate(user, pass string) (bool, bool, error) {
135135
if lba.conn.Bind(bind_dn, pass) != nil {
136136
return false, false, nil
137137
}
138-
defer lba.conn.UnauthenticatedBind(bind_dn)
139138

140139
if lba.cfg.UniqueFilter != "" {
141140
res, e := lba.conn.Search(lba.new_search_param(lba.cfg.UniqueFilter, user))

0 commit comments

Comments
 (0)