Probleme installation module LDAP

Fermé
tlivernet - 31 oct. 2007 à 10:00
chamseddine2008 Messages postés 1 Date d'inscription jeudi 1 novembre 2007 Statut Membre Dernière intervention 1 novembre 2007 - 1 nov. 2007 à 11:48
Bonjour,
je suis debutant dans l'utilisation de linux. J'utilise un serveur apache2 avec PHP 5 sous mandrake et n'arrive pas à installer un module pour faire faire fonctionner les LDAP.
Suite à l'erreur Call to undefined function ldap_connect() à l'ouverture d'une page PHP je fais quelques recherches et essaie sans resultat d'ajouter le module auth_ldap à apache provenant de cette page (http://www.delouw.ch/linux/FR-Apache-Compile-HOWTO/html/modules.html)
Je suis la procedure d'installation:

Lorsque je tappe la commande ./configure --with-apxs=/usr/local/apache/bin/apxs \ > --with-sdk=openldap
tout semble bien se passe

[root@localhost auth_ldap-1.6.1]# ./configure --with-apxs=/usr/local/apache/bin/apxs \
> --with-sdk=openldap
loading cache ./config.cache
checking for apxs... (cached) /usr/sbin/apxs2
checking whether apxs works... yes
checking for ber_init in -llber... (cached) no
checking for ldap_init in -lldap... (cached) no
checking how to run the C preprocessor... (cached) cc -E
checking for ANSI C header files... (cached) yes
checking for working const... (cached) yes
checking for vprintf... (cached) yes
checking for strdup... (cached) yes
checking for strerror... (cached) yes
creating ./config.status
creating Makefile


mais lorsque je fais make ou make install il m'affiche une multitude d'erreur du type:

auth_ldap.c:191: warning: passing arg 4 of `ap_log_rerror' makes integer from pointer without a cast
auth_ldap.c:191: warning: passing arg 5 of `ap_log_rerror' from incompatible pointer type
auth_ldap.c:196: error: `LDAP_OPT_REFERRALS' undeclared (first use in this function)
auth_ldap.c:292: warning: passing arg 4 of `ap_log_rerror' makes integer from pointer without a cast
auth_ldap.c:292: warning: passing arg 5 of `ap_log_rerror' from incompatible pointer type
auth_ldap.c:292: warning: passing arg 6 of `ap_log_rerror' makes pointer from integer without a cast
auth_ldap.c:299: warning: passing arg 4 of `ap_log_rerror' makes integer from pointer without a cast
auth_ldap.c:299: warning: passing arg 5 of `ap_log_rerror' from incompatible pointer type
auth_ldap.c:299: warning: passing arg 6 of `ap_log_rerror' makes pointer from integer without a cast
auth_ldap.c:301: error: `LDAP_SERVER_DOWN' undeclared (first use in this function)
auth_ldap.c: At top level:
auth_ldap.c:327: error: syntax error before '*' token
auth_ldap.c: In function `auth_ldap_find_connection':
.
.
.
auth_ldap.c:1078: warning: initialization from incompatible pointer type
auth_ldap.c:1080: warning: initialization from incompatible pointer type
auth_ldap.c:1081: warning: initialization from incompatible pointer type
auth_ldap.c:1085: warning: excess elements in struct initializer
auth_ldap.c:1085: warning: (near initialization for `auth_ldap_module')
auth_ldap.c:1086: warning: excess elements in struct initializer
auth_ldap.c:1086: warning: (near initialization for `auth_ldap_module')
auth_ldap.c:1087: warning: excess elements in struct initializer
auth_ldap.c:1087: warning: (near initialization for `auth_ldap_module')
auth_ldap.c:1088: warning: excess elements in struct initializer
auth_ldap.c:1088: warning: (near initialization for `auth_ldap_module')
auth_ldap.c:1090: warning: excess elements in struct initializer
auth_ldap.c:1090: warning: (near initialization for `auth_ldap_module')
make: *** [auth_ldap.o] Erreur 1


Quelqu'un a t il deja eu à installer un module apache et comment vous y etes vous pris? Je ne sais meme pas si cette installation est necessaire le but etant qu'il ne m'affiche plus l'erreur Call to undefined function ldap_connect()
Sinon j'ai essayé d'autres solutions comme d'ajouter dans mon fichier modules le fichier mod_ldap.so et mis la ligne
LoadModule ldap_module modules/mod_ldap.so dans httpd2.conf sans plus de resultat.

Merci d'avance pour votre aide!
A voir également:

1 réponse

chamseddine2008 Messages postés 1 Date d'inscription jeudi 1 novembre 2007 Statut Membre Dernière intervention 1 novembre 2007
1 nov. 2007 à 11:48
Bonjour ,

Tout simplement il faut installer le module additionnels ( mod_dav )

donc il faut voir : http://www.apachefrance.com/ ====> pour les fichiers releases qui correspond a la version de ton apache
-2