Issue 7283 - Usage of private headers make building out-of-tree extensions painful
Summary: Usage of private headers make building out-of-tree extensions painful
Status: VERIFIED FEEDBACK
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: build (show other issues)
Version: unspecified
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-30 08:43 UTC by guillomovitch@gmail.com
Modified: 2021-08-03 17:46 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 guillomovitch@gmail.com 2012-05-30 08:43:39 UTC
Full_Name: Guillaume Rousse
Version: any
OS: Linux
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (128.93.30.10)


In order to build out of tree extensions, such as ppolicy external password
checker (http://ltb-project.org/wiki/documentation/openldap-ppolicy-check-password),
you need additional slapd headers, portable.h and slapd.h (and a bunch of
additional dependant ones), which are currently not installed, and thus
considered as private.

A request to ship those headers was refused by fedora package maintainer,
precisely for this reason:
https://bugzilla.redhat.com/show_bug.cgi?id=812860

The situation ought to be clarified, and some kind of solution found, as
maintaining a custom slapd build just to be able to benefit from this
extensability is largely overkill.
Comment 1 Howard Chu 2012-05-30 12:33:23 UTC
guillomovitch@gmail.com wrote:
> Full_Name: Guillaume Rousse
> Version: any
> OS: Linux
> URL: ftp://ftp.openldap.org/incoming/
> Submission from: (NULL) (128.93.30.10)
>
>
> In order to build out of tree extensions, such as ppolicy external password
> checker (http://ltb-project.org/wiki/documentation/openldap-ppolicy-check-password),
> you need additional slapd headers, portable.h and slapd.h (and a bunch of
> additional dependant ones), which are currently not installed, and thus
> considered as private.
>
> A request to ship those headers was refused by fedora package maintainer,
> precisely for this reason:
> https://bugzilla.redhat.com/show_bug.cgi?id=812860

They gave the right answer. The slap.h header is private and subject to change 
without notice.

> The situation ought to be clarified, and some kind of solution found, as
> maintaining a custom slapd build just to be able to benefit from this
> extensability is largely overkill.

Probably this should be discussed on the openldap-devel mailing list. There's 
no straightforward solution to this request.

In the case of the LTB password checker module, there's barely any need for 
slap.h; the module could easily be tweaked to avoid all references to it.

-- 
   -- 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 2 Howard Chu 2012-05-30 12:34:09 UTC
changed state Open to Feedback
Comment 3 Quanah Gibson-Mount 2017-04-12 21:06:45 UTC
moved from Incoming to Build