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.
Created attachment 20038 [details] new ebuild for mod_ldap_userdir currently apache2 only...
Comment on attachment 20038 [details] new ebuild for mod_ldap_userdir currently apache2 only
Re-assigning to the apache team
horde.net seems to have fallen off the face of the earth. is this module mirrored somewhere else? chuck
horde.net is back,I'll test the ebuild
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"
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?
Created attachment 31195 [details] sample conf for mod_ldap_userdir-1.1.4 this should go into net-www/mod_ldap_userdir/files/
I had both apache installed. let's test the new ebuild.
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.
Added to cvs, thanks for the ebuild.
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...
right.
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>
do you have apache2 in USE ?
Created attachment 38080 [details, diff] several bugfixes for the ebuild fixed the DEPEND problem. also fixed 2 typos...
the last patch has not been commited to CVS for Portage thus the 1.1.4 ebuild still has the defects it fixed.
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.
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.
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.
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.
> 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
> 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