Opened 19 years ago

Closed 19 years ago

#6563 closed defect (fixed)

apr-util & apache2: Add openldap variant

Reported by: blair (Blair Zajac) Owned by: danielluke (Daniel J. Luke)
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc:
Port:

Description

We're setting up an Apache 2.2.0 server with mod_dav_svn using with Darwin Ports and need to authenticate users against LDAP/ActiveDirectory.

Can the apr-util add an openldap variant that depends upon and links against Darwin Ports' openldap module?

And can apache2 also add a variant that compiles and installs the mod_ldap and the mod_auth_ldap modules?

Thanks, Blair

Attachments (1)

apr-util-patch.txt (942 bytes) - added by blair (Blair Zajac) 19 years ago.
Add an openldap variant and disable inadvertent linking against mysql and pgsql

Download all attachments as: .zip

Change History (4)

comment:1 Changed 19 years ago by danielluke (Daniel J. Luke)

Status: newassigned

(In reply to comment #0)

Can the apr-util add an openldap variant that depends upon and links against Darwin Ports' openldap module?

Again, patches welcome, but I'll see if I can take a look.

And can apache2 also add a variant that compiles and installs the mod_ldap and the mod_auth_ldap modules?

You'll want to open a feature request bug in bugzilla and assign it to the apache2 maintainer (not me) for that.

I'm sure a patch would make it happen faster in that case too ;-)

comment:2 Changed 19 years ago by blair (Blair Zajac)

I'm attaching a patch to do a couple of things:

1) Add an 'openldap' variant that uses the openldap port. Building

openldap requires building perl, so it's not a small compile. It could link against Apple's ldap, but that may cause problems since Apple's version is older (I think) than Darwin Ports'. So I left adding openldap as an enabling variant and not adding openldap by default.

It appears that not too many people ask for LDAP support with apr-util and apache2, otherwise I'm guessing both would be currently enabled in both ports.

2) Explicitly disable linking against MySQL and Postgresql. For now,

I think it's safer to explicitly disable linking against them, as I don't want apr-util picking up either database as a shared library dependency if I happen to build apr-util after MySQL and/or Postgresql.

As I said previously, I know of no packages that use this yet, so this is a safe feature to disable for now. If somebody wants apr-util to link against them, they can add a variant patch.

Regards, Blair

Changed 19 years ago by blair (Blair Zajac)

Attachment: apr-util-patch.txt added

Add an openldap variant and disable inadvertent linking against mysql and pgsql

comment:3 Changed 19 years ago by danielluke (Daniel J. Luke)

Resolution: fixed
Status: assignedclosed

Committed.

Thanks!

Note: See TracTickets for help on using tickets.