Issue 8964 - ldap proxy segmentation fault
Summary: ldap proxy segmentation fault
Status: VERIFIED FIXED
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: slapd (show other issues)
Version: unspecified
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
: 8689 (view as issue list)
Depends on:
Blocks:
 
Reported: 2019-01-29 15:10 UTC by praveen.adini@fireeye.com
Modified: 2021-01-13 17:13 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description praveen.adini@fireeye.com 2019-01-29 15:10:02 UTC
Full_Name: Praveen Adini
Version: 2.4.47-r2
OS: Alpine Containers
URL: 
Submission from: (NULL) (209.135.212.252)


I'm trying to setup a openldap proxy wherein the proxy denies any search
requests for uid=root. When i tried using the rwm overlay to stop the
operation(#), i'm getting a segmentation fault although i see the unwilling to
perform operation 53 message being printed. here is the snippet of the conf that
i'm using.

overlay                          rwm
rwm-rewriteEngine      on
rwm-rewriteContext     searchFilter
rwm-rewriteRule           "(.*)(uid=root)(.*)" "$1$2$3" "#"

Comment 1 Quanah Gibson-Mount 2019-06-17 15:30:27 UTC
changed notes
changed state Open to Release
moved from Incoming to Software Bugs
Comment 2 OpenLDAP project 2019-07-24 19:02:13 UTC
Fixed in master
Fixed in RE24 (2.4.48)
Comment 3 Quanah Gibson-Mount 2019-07-24 19:02:13 UTC
changed notes
changed state Release to Closed
Comment 4 Ondřej Kuzník 2019-09-24 10:24:20 UTC
On Tue, Jan 29, 2019 at 03:10:02PM +0000, praveen.adini@fireeye.com wrote:
> I'm trying to setup a openldap proxy wherein the proxy denies any search
> requests for uid=root. When i tried using the rwm overlay to stop the
> operation(#), i'm getting a segmentation fault although i see the unwilling to
> perform operation 53 message being printed. here is the snippet of the conf that
> i'm using.
> 
> overlay                          rwm
> rwm-rewriteEngine      on
> rwm-rewriteContext     searchFilter
> rwm-rewriteRule           "(.*)(uid=root)(.*)" "$1$2$3" "#"

Hi Praveen,
can you post a self-contained test script that triggers this issue? On
its own, the above works as advertised, so maybe other overlays are
interfering?

There have been (probably still are) issues when combining rwm with some
other overlays.

Thanks,

-- 
Ondřej Kuzník
Senior Software Engineer
Symas Corporation                       http://www.symas.com
Packaged, certified, and supported LDAP solutions powered by OpenLDAP

Comment 5 Howard Chu 2021-01-13 17:13:17 UTC
*** Issue 8689 has been marked as a duplicate of this issue. ***