Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 32436 - mod_ldap_userdir
Summary: mod_ldap_userdir
Status: VERIFIED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Apache Team - Bugzilla Reports
URL: http://horde.net/~jwm/software/mod_ld...
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2003-10-31 17:21 UTC by Patrick Goldmann
Modified: 2005-01-21 08:45 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
new ebuild for mod_ldap_userdir (mod_ldap_userdir-1.1.1.ebuild,954 bytes, text/plain)
2003-10-31 17:23 UTC, Patrick Goldmann
Details
new ebuild (1.1.4) (mod_ldap_userdir-1.1.4.ebuild,2.57 KB, text/plain)
2004-05-11 10:08 UTC, Patrick Goldmann
Details
sample conf for mod_ldap_userdir-1.1.4 (47_mod_ldap_userdir.conf,375 bytes, text/plain)
2004-05-11 10:10 UTC, Patrick Goldmann
Details
Patch for mod_ldap_userdir-1.1.4.ebuild.enable support for apache 1.x (mod_ldap_userdir-1.1.4.ebuild.diff,2.09 KB, patch)
2004-05-11 12:07 UTC, Minati jean michel
Details | Diff
several bugfixes for the ebuild (mod_ldap_userdir-1.1.4.patch,890 bytes, patch)
2004-08-24 01:34 UTC, Patrick Goldmann
Details | Diff
This fixes the depend issues between apache-1 and apache-2 (mod_ldap_userdir-1.1.4.patch,1.92 KB, patch)
2005-01-12 09:40 UTC, Andrew Williams
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Goldmann 2003-10-31 17:21:14 UTC
From the author's homepage: "mod_ldap_userdir is a module that enables the
Apache web server to look up user home directories (for /~user URLs) from an
LDAP directory."

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Patrick Goldmann 2003-10-31 17:23:01 UTC
Created attachment 20038 [details]
new ebuild for mod_ldap_userdir

currently apache2 only...
Comment 2 Patrick Goldmann 2003-10-31 17:23:52 UTC
Comment on attachment 20038 [details]
new ebuild for mod_ldap_userdir

currently apache2 only
Comment 3 Stuart Herbert (RETIRED) gentoo-dev 2004-04-23 01:32:31 UTC
Re-assigning to the apache team
Comment 4 Chuck Short (RETIRED) gentoo-dev 2004-05-06 15:06:10 UTC
horde.net seems to have fallen off the face of the earth. is this module mirrored somewhere else?

chuck
Comment 5 Minati jean michel 2004-05-11 07:36:35 UTC
horde.net is back,I'll test the ebuild
Comment 6 Minati jean michel 2004-05-11 08:11:14 UTC
it compile and install, but I have troubles to get apache running with it :

bash-2.05b# /etc/init.d/apache2 start
 * Apache2 has detected a syntax error in your configuration files:
Syntax error on line 57 of /etc/apache2/conf/apache2.conf:
Cannot load /usr/lib/apache2/extramodules/mod_ldap_userdir.so into server: /usr/lib/apache2/extramodules/mod_ldap_userdir.so: undefined symbol: ap_table_setn


here is my emerge info :
Portage 2.0.50-r6 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.6.3)
=================================================================
System uname: 2.6.3 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
Gentoo Base System version 1.4.3.8p1
Autoconf: sys-devel/autoconf-2.57-r1
Automake: sys-devel/automake-1.7.5-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -mcpu=i686 -funroll-loops -pipe"
CHOST="i486-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O3 -mcpu=i686 -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/mnt/local_portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X apm arts avi berkdb crypt cups encode foomaticdb gdbm gif gnome gpm gtk gtk2 imlib java jpeg kde ldap libg++ libwww mad mikmod motif mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl slang spell ssl svga tcpd truetype x86 xml2 xmms xv zlib"
Comment 7 Patrick Goldmann 2004-05-11 10:08:40 UTC
Created attachment 31194 [details]
new ebuild (1.1.4)

this should work correctly, although still apache2 only. i think if you have
either apache1 or both installed, this will break. could someone who has
apache1 running test (and maybe even correct ;)) this?
Comment 8 Patrick Goldmann 2004-05-11 10:10:07 UTC
Created attachment 31195 [details]
sample conf for mod_ldap_userdir-1.1.4

this should go into net-www/mod_ldap_userdir/files/
Comment 9 Minati jean michel 2004-05-11 10:24:37 UTC
I had both apache installed.
let's test the new ebuild.
Comment 10 Minati jean michel 2004-05-11 12:07:12 UTC
Created attachment 31206 [details, diff]
Patch for mod_ldap_userdir-1.1.4.ebuild.enable support for apache 1.x

I tested your new ebuild ,it works with both apache installed.
also I made this patch to add support for apache 1.x .
Note that I just setuped apache to load the module, I didn t made tests with a
real ldap server,since I don t have one at home.
Comment 11 Chuck Short (RETIRED) gentoo-dev 2004-05-26 17:55:03 UTC
Added to cvs, thanks for the ebuild.
Comment 12 Patrick Goldmann 2004-05-27 04:26:58 UTC
well, the ebuild now in portage has a bug (at least 1.1.4).
myconf="${myconf} --with-apxs2=/usr/sbin/apxs2" should be
myconf="${myconf} --with-apxs=/usr/sbin/apxs2". i think it's the same way for 1.1.1, not tried tho. gotta run now...
Comment 13 Minati jean michel 2004-06-18 11:05:09 UTC
right.
Comment 14 Daniel Webert 2004-08-18 19:44:32 UTC
why do i have to install apache1 if i just want to use it w/ apache2? can someone check the ebuild/depends/flags plz ...

<snip>
root@porkoo ~ # 
===> emerge -vp mod_ldap_userdir

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild  N    ] dev-libs/mm-1.3.0  220 kB 
[ebuild  N    ] net-www/apache-1.3.31-r3  +pam 3,146 kB 
[ebuild  N    ] net-www/mod_ldap_userdir-1.1.4  +apache2 36 kB 

Total size of downloads: 3,402 kB
</snap>

<snip>
root@porkoo ~ # 
===> etcat -v apache
[ Results for search key           : apache ]
[ Candidate applications found : 8 ]

 Only printing found installed programs.

*  net-www/apache :
        [ ~ ] 1.3.29-r2 (1)
        [   ] 1.3.31 (1) 
        [   ] 1.3.31-r1 (1) 
        [   ] 1.3.31-r2 (1) 
        [   ] 1.3.31-r3 (1) 
        [   ] 2.0.49-r3 (2) 
        [   ] 2.0.49-r4 (2)
        [  I] 2.0.50 (2) 
</snap>

with an 'emerge -O mod_ldap_userdir' of course we have this error ...

<snip>
...
checking for gcc option to accept ANSI C... none needed
checking for apxs... apxs
checking whether apxs works... ./configure: line 2215: apxs: command not found
no
configure: error: Cannot build mod_ldap_userdir without a valid apxs program

!!! ERROR: net-www/mod_ldap_userdir-1.1.4 failed.
!!! Function src_compile, Line 32, Exitcode 1
!!! Configure failed
!!! If you need support, post the topmost build error, NOT this status message.
</snap>
Comment 15 Minati jean michel 2004-08-19 00:48:54 UTC
do you have apache2 in USE ? 
Comment 16 Patrick Goldmann 2004-08-24 01:34:20 UTC
Created attachment 38080 [details, diff]
several bugfixes for the ebuild

fixed the DEPEND problem. also fixed 2 typos...
Comment 17 Jason Galyon 2004-10-20 14:33:31 UTC
the last patch has not been commited to CVS for Portage thus the 1.1.4 ebuild still has the defects it fixed.
Comment 18 Daniel Palmer 2004-11-04 14:10:43 UTC
Yes, I also had issues with the depend and the broken --with-apxs2.   I didn't test the patch but looks like I made the same modifications and it compiled fine on amd64.  Please commit patch to portage and add at least ~amd64.

Cheers.
Comment 19 Andrew Williams 2005-01-12 09:40:38 UTC
Created attachment 48315 [details, diff]
This fixes the depend issues between apache-1 and apache-2 

I'm sorry if this is a dupe but after  trying many different methods this is
the cleanest way i've come across so far to make sure both major versions of
apache is supported at build time and that *all* the files actually get
installed when apache2 is in use.
Comment 20 Benedikt Böhm (RETIRED) gentoo-dev 2005-01-19 23:08:09 UTC
a new mod_ldap_userdir ebuild is in portage since the apache herds package refresh, please test it. also look at http://dev.gentoo.org/~vericgar/package-refresh.txt


Upgrade Instructions:
---------------------

After we have refreshed the packages on 8th Jan, to upgrade you will need to
do the following.

If you do not want to install masked/unstable packages on your machine(s),
these ebuilds will be unmasked and marked stable as soon as we have
determined that everything is working properly.

- unmask all needed packages (using /etc/portage/package.unmask and
  /etc/portage/package.keywords)
- emerge -uav world

With this update, we are bringing some changes to the Apache configuration:

- /etc/apache{,2}/conf is moving to be /etc/apache{,2}
- new httpd.conf replaces commonapache{,2}.conf and apache{,2}.conf files
- /etc/apache{,2}/conf/vhosts is moving to be /etc/apache{,2}/vhosts.d

After installing this update, you will need to manually migrate any changes
you've made to your existing configuration files into the new configuration
files.
Comment 21 Patrick Goldmann 2005-01-20 16:17:55 UTC
Tested. Builds and runs just fine. Just two issues:
The ebuild says it's gonna install the configuration file in /etc/apache2/modules.d/1.1.4-r1/47_mod_ldap_userdir.conf whereas it's really in /etc/apache2/modules.d/47_mod_ldap_userdir.conf.
Second thing is one has to be careful about permissions on that file as it's gonna hold a password.
Comment 22 Benedikt Böhm (RETIRED) gentoo-dev 2005-01-21 00:11:45 UTC
> The ebuild says it's gonna install the configuration file in /etc/apache2/modules.d/1.1.4-r1/47_mod_ldap_userdir.conf whereas it's really in /etc/apache2/modules.d/47_mod_ldap_userdir.conf.

fixed
Comment 23 Benedikt Böhm (RETIRED) gentoo-dev 2005-01-21 08:45:44 UTC
> Second thing is one has to be careful about permissions on that file as it's gonna hold a password.

it is set to 600 now, but i'm currently not able to test it, would be nice if anyone could just give it a try