summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoreisin <eisin@users.noreply.github.com>2018-12-24 19:09:25 +0100
committerGitHub <noreply@github.com>2018-12-24 19:09:25 +0100
commit40210de359588da31a0efe1cfbb856ee27b1f8f1 (patch)
treed8c927a2b738d683e1d9e75bf2b6129e779d0b10
parentmatches when search condition set within basedn (diff)
downloadpamldapd-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.go2
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
}
}