From 40210de359588da31a0efe1cfbb856ee27b1f8f1 Mon Sep 17 00:00:00 2001 From: eisin Date: Tue, 25 Dec 2018 03:09:25 +0900 Subject: Fix degradion --- src/pamldapd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } } -- cgit v1.2.3