Issue 6740 - syncrepl/--disable-rewrite dependency
Summary: syncrepl/--disable-rewrite dependency
Status: VERIFIED FIXED
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: build (show other issues)
Version: unspecified
Hardware: All All
: --- normal
Target Milestone: 2.5.0
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-08 10:21 UTC by Hallvard Furuseth
Modified: 2020-10-14 21:01 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Hallvard Furuseth 2010-12-08 10:21:22 UTC
Full_Name: Hallvard B Furuseth
Version: HEAD
OS: 
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (129.240.6.233)
Submitted by: hallvard


configure should mention syncrepl here:
    --enable-rewrite  enable DN rewriting in back-ldap and rwm overlay

test059-slave-config fails with --disable-rewrite. Testrun/test.out says
    parse_syncrepl_line:
    unable to parse "suffixmassage=cn=schema,cn=config,cn=slave"
Comment 1 Hallvard Furuseth 2010-12-08 10:37:17 UTC
What's special about DN rewriting so it has a configure option
anyway?  It doesn't disable building of libraries/librewrite.

-- 
Hallvard

Comment 2 ando@openldap.org 2010-12-08 16:36:40 UTC
> What's special about DN rewriting so it has a configure option
> anyway?  It doesn't disable building of libraries/librewrite.

It used to, as far as I remember.  I remember something about performing
simple suffixmassage when librewrite is not built.  In any case I agree
that given the widespread usage of rewrite capabilities (authz regexp, for
example) not building librewrite is somehow pointless.

p.

Comment 3 ando@openldap.org 2010-12-08 23:54:10 UTC
moved from Incoming to Build
Comment 4 Howard Chu 2011-02-17 00:59:31 UTC
h.b.furuseth@usit.uio.no wrote:
> Full_Name: Hallvard B Furuseth
> Version: HEAD
> OS:
> URL: ftp://ftp.openldap.org/incoming/
> Submission from: (NULL) (129.240.6.233)
> Submitted by: hallvard
>
>
> configure should mention syncrepl here:
>      --enable-rewrite  enable DN rewriting in back-ldap and rwm overlay
>
> test059-slave-config fails with --disable-rewrite. Testrun/test.out says
>      parse_syncrepl_line:
>      unable to parse "suffixmassage=cn=schema,cn=config,cn=slave"
>
>

Ando wrote:
>> What's special about DN rewriting so it has a configure option
>> anyway?  It doesn't disable building of libraries/librewrite.
>
> It used to, as far as I remember.  I remember something about performing
> simple suffixmassage when librewrite is not built.  In any case I agree
> that given the widespread usage of rewrite capabilities (authz regexp, for
> example) not building librewrite is somehow pointless.

Agreed. I'm fine with dropping this configure switch and unifdef'ing it so 
that librewrite is always used.

-- 
   -- Howard Chu
   CTO, Symas Corp.           http://www.symas.com
   Director, Highland Sun     http://highlandsun.com/hyc/
   Chief Architect, OpenLDAP  http://www.openldap.org/project/

Comment 5 Hallvard Furuseth 2011-02-17 12:43:17 UTC
Howard Chu writes:
> Agreed. I'm fine with dropping this configure switch and unifdef'ing it so 
> that librewrite is always used.

Built unless --disable-slapd, I think.  It is not installed, and the
other libraries do not use it.

-- 
Hallvard

Comment 6 Quanah Gibson-Mount 2020-04-17 16:24:48 UTC
Note: The --enable-rewrite flag literally has no effect, since BUILD_REWRITE is not honored anywhere as it is.
Comment 7 Quanah Gibson-Mount 2020-04-17 16:26:07 UTC
Ah, actually... it does affect how back-meta etc are built... but not whether or not the library is built.
Comment 8 Ryan Tandy 2020-04-17 16:28:05 UTC
(In reply to Quanah Gibson-Mount from comment #6)
> Note: The --enable-rewrite flag literally has no effect, since BUILD_REWRITE
> is not honored anywhere as it is.

Maybe not in the build system, but the ENABLE_REWRITE and SLAP_AUTH_REWRITE defines in the code are fully respected.
Comment 9 Quanah Gibson-Mount 2020-04-17 16:31:38 UTC
(In reply to Ryan Tandy from comment #8)
> (In reply to Quanah Gibson-Mount from comment #6)
> > Note: The --enable-rewrite flag literally has no effect, since BUILD_REWRITE
> > is not honored anywhere as it is.
> 
> Maybe not in the build system, but the ENABLE_REWRITE and SLAP_AUTH_REWRITE
> defines in the code are fully respected.

Right, I noted that in comment#7 ;)

I was referring back to comment#5 ;)
Comment 11 Quanah Gibson-Mount 2020-04-22 16:12:12 UTC
Commits: 
  • bc9a9286 
by Quanah Gibson-Mount at 2020-04-22T14:49:10+00:00 
ITS#6740 - Always enable rewrite