diff options
Diffstat (limited to 'src')
-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 } } |