1 %define mod_name auth_ldap
2 %define apxs /usr/sbin/apxs1
3 Summary: This is a LDAP authentication module for Apache
4 Summary(cs): Autentizaèní modul LDAP pro WWW server Apache
5 Summary(da): En LDAP-autenticeringsmodul for Apache
6 Summary(de): Ein LDAP Authentifizierungsmodul für Apache
7 Summary(es): Este módulo proporciona autenticación LDAP para Apache
8 Summary(fr): Module d'authentification LDAP pour Apache
9 Summary(id): Module LDAP authentication untuk Apache
10 Summary(it): Modulo di autenticazione LDPA per Apache
11 Summary(ja): Apache ÍѤΠLDAP ǧ¾Ú¥â¥¸¥å¡¼¥ë
12 Summary(nb): En LDAP-autentiseringsmodul for Apache
13 Summary(pl): Modu³ uwierzytelnienia LDAP dla Apache
14 Summary(pt): Um módulo de autenticação de LDAP para o Apache
15 Summary(pt_BR): Este módulo provê autenticação LDAP para o Apache
16 Summary(ru): áÕÔÅÎÔÉÆÉËÁÃÉÏÎÎÙÊ ÍÏÄÕÌØ LDAP ÄÌÑ ÓÅÒ×ÅÒÁ Apache
17 Summary(sl): Avtentikacijski modul LDAP za Apache
18 Summary(sv): En LDAP autentiseringsmodul för Apache
19 Summary(zh_CN): ÕâÊÇÓÃÓÚ Apache µÄ LDAP Ñé֤ģ¿é
20 Name: apache1-mod_%{mod_name}
24 Group: Networking/Daemons
25 Source0: http://www.rudedog.org/auth_ldap/auth_ldap-%{version}.tar.gz
26 # Source0-md5: ff7de9027fe8852facd27be93462c5cc
27 Patch0: %{name}-makefile.patch
28 URL: http://www.rudedog.org/auth_ldap/
29 BuildRequires: autoconf
30 BuildRequires: apache1-devel >= 1.3.33-2
31 BuildRequires: openldap-devel
32 BuildRequires: %{apxs}
33 PreReq: apache1 >= 1.3.33-2
34 PreReq: apache1-mod_auth
35 Requires(triggerpostun): %{apxs}
36 Obsoletes: apache-mod_%{mod_name} <= %{version}
37 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39 %define _pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null)
40 %define _sysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null)
43 This is an authentication module for Apache that allows you to
44 authenticate HTTP clients using user entries in an LDAP directory.
47 Balíèek obsahuje autentizaèní modul pro WWW server Apache, který
48 umo¾òuje autentizovat HTTP klienty proti polo¾kám v adresáøové slu¾bì
52 Denne pakke indeholder en autenticeringsmodul for webtjeneren Apache -
53 med auth_ldap installeret kan HTTP-klienter autenticeres mod
54 brugerinformation i et LDAP-katalog.
57 Dieses Paket enthält ein Authentifizierungs-Modul für den Apache
58 Webserver, das Ihnen ermöglicht, HTTP-Clients mit Hilfe von
59 Benutzereinträgen in einem LDAP-Verzeichniss zu authentifizieren.
62 Este paquete contiene un módulo de autenticación para el servidor
63 Apache web que le permite autenticar clientes HTTP usando entradas de
64 usuario en un directorio LDAP.
67 Ce paquetage contient un module d'authentification pour le serveur Web
68 Apache, qui vous permet d'authentifier les clients HTTP en utilisant
69 les entrées utilisateur dans un répertoire LDAP.
72 Ini adalah authentication module untuk Apache yang memungkinkan anda
73 melakukan otentikasi HTTP client menggunakan user entry di dalam LADP
77 Questo pacchetto contiene un modulo di autenticazione per il Web
78 server Apache che consente di autenticare i client HTTP tramite gli
79 inserimenti utente in una directory LDPA.
82 ¤³¤Î¥Ñ¥Ã¥±¡¼¥¸¤Ë¤Ï Apache Web ¥µ¡¼¥Ð¡¼¤Ç LDAP ¥Ç¥£¥ì¥¯¥È¥êÆâ¤Î¥æ¡¼¥¶¡¼
83 ¥¨¥ó¥È¥ê¤ò»È¤Ã¤¿ HTTP ¥¯¥é¥¤¥¢¥ó¥È¤Îǧ¾Ú¤ò²Äǽ¤Ë¤¹¤ë¤¿¤á¤Îǧ¾Ú
84 ¥â¥¸¥å¡¼¥ë¤¬´Þ¤Þ¤ì¤Æ¤¤¤Þ¤¹¡£
87 Denne pakken inneholder en autentiseringsmodul for webtjeneren Apache
88 - med auth_ldap installert kan HTTP-klienter autentiseres mot
89 brukerinformasjon i en LDAP-katalog.
92 W pakiecie znajduje siê modu³ do Apache, który pozwala na
93 uwierzytelnianie klientów HTTP przy u¿yciu LDAP.
96 Este pacote contém um módulo de autenticação para o servidor Web
97 Apache que lhe permite autenticar os clientes HTTP usando registos de
98 utilizadores numa directoria LDAP.
100 %description -l pt_BR
101 Este módulo permite que você autentique clientes HTTP usando o
105 üÔÏ ÍÏÄÕÌØ ÁÕÔÅÎÔÉÆÉËÁÃÉÉ ÄÌÑ Apache, ÐÏÚ×ÏÌÑÀÝÉÊ ÉÄÅÎÔÉÆÉÃÉÒÏ×ÁÔØ
106 HTTP-ËÌÉÅÎÔÏ× ÎÁ ÏÓÎÏ×Å ÚÁÐÉÓÅÊ ÐÏÌØÚÏ×ÁÔÅÌÑ × ËÁÔÁÌÏÇÅ LDAP.
109 Detta paket innehåller en autenticeringsmodul för webbservern Apache
110 som låter dig autenticera HTTP-klienter med använderposter i en
113 %description -l zh_CN
114 ÕâÊÇÓÃÓÚ Apache µÄÑé֤ģ¿é£¬ËüÔÊÐíÄúʹÓà LDAP Ŀ¼ÖеÄÓû§ÏîÑéÖ¤ HTTP
118 %setup -q -n auth_ldap-%{version}
120 mv -f auth_ldap.c mod_auth_ldap.c
125 --with-apxs=%{apxs} \
126 --with-ldap-sdk=openldap \
132 rm -rf $RPM_BUILD_ROOT
133 install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/conf.d}
135 install mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
137 echo 'LoadModule %{mod_name}_module modules/mod_%{mod_name}.so' > \
138 $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/90_mod_%{mod_name}.conf
141 rm -rf $RPM_BUILD_ROOT
144 if [ -f /var/lock/subsys/apache ]; then
145 /etc/rc.d/init.d/apache restart 1>&2
149 if [ "$1" = "0" ]; then
150 if [ -f /var/lock/subsys/apache ]; then
151 /etc/rc.d/init.d/apache restart 1>&2
155 %triggerpostun -- apache1-mod_%{mod_name} < 1.6.0-1.1
156 # check that they're not using old apache.conf
157 if grep -q '^Include conf\.d' /etc/apache/apache.conf; then
158 %{apxs} -e -A -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
162 %defattr(644,root,root,755)
164 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_%{mod_name}.conf
165 %attr(755,root,root) %{_pkglibdir}/mod_auth_ldap.so