diff options
author | eisin <eisin@users.noreply.github.com> | 2018-12-24 19:09:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-24 19:09:25 +0100 |
commit | 40210de359588da31a0efe1cfbb856ee27b1f8f1 (patch) | |
tree | d8c927a2b738d683e1d9e75bf2b6129e779d0b10 | |
parent | matches when search condition set within basedn (diff) | |
download | pamldapd-40210de359588da31a0efe1cfbb856ee27b1f8f1.tar pamldapd-40210de359588da31a0efe1cfbb856ee27b1f8f1.tar.gz pamldapd-40210de359588da31a0efe1cfbb856ee27b1f8f1.tar.bz2 pamldapd-40210de359588da31a0efe1cfbb856ee27b1f8f1.tar.lz pamldapd-40210de359588da31a0efe1cfbb856ee27b1f8f1.tar.xz pamldapd-40210de359588da31a0efe1cfbb856ee27b1f8f1.tar.zst pamldapd-40210de359588da31a0efe1cfbb856ee27b1f8f1.zip |
-rw-r--r-- | src/pamldapd.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pamldapd.go b/src/pamldapd.go index a50fed1..9685b3e 100644 --- a/src/pamldapd.go +++ b/src/pamldapd.go @@ -131,7 +131,7 @@ func (b Backend) Search(bindDN string, req ldap.SearchRequest, conn net.Conn) (r username = filterUid } } else { - if username, err = b.getUserNameFromBindDN(req.BaseDN); err != nil { + if username, err = b.getUserNameFromBindDN(bindDN); err != nil { return ldap.ServerSearchResult{ResultCode: ldap.LDAPResultOperationsError}, err } } |