Rechercher : dans
Par :

Probleme installation module LDAP

Dernière réponse le 1 nov 2007 à 11:48:11 tlivernet, le 31 oct 2007 à 10:00:27 
 Signaler ce message aux modérateurs

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/mod­ules.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!

Configuration: Mandrake 9.2
PHP 5
Apache2
Mysql

Meilleures réponses pour « Probleme installation module LDAP » dans :
Installer un serveur ssh sous Ubuntu VoirUn serveur ssh vous permet d'accéder à distance à votre machine. Vous aurez ainsi accès à la console distante (équivalente à telnet, mais sécurisée) et au transfer de fichiers (équivalent à FTP, mais sécurité également). Installation On ne peut...
Les profils de Firefox VoirVoilà une astuce très intéressante qui permet de gérer les profils de Firefox. Dès l'installation de Firefox sur votre PC (peu importe le système d'exploitation), ce dernier créera automatiquement un profil Par défaut pour votre...
[Safari] Modules / Plugins installés VoirVoici une astuce très simple pour vous permettre de trouver facilement la liste des modules et plugins installés pour votre navigateur Safari. Sous Windows Avec le navigateur Safari Avec l'explorateur de Windows Téléchargement des...
LDAP - Installation d'un serveur d'annuaire (OpenLDAP sous Linux VoirPrésentation de OpenLDAP OpenLDAP (http://www.openldap.org) est un projet libre de serveur d'annuaire conforme à la norme LDAP 3. Ce serveur, dérivé de l'implémentation mise au point par l'université du Michigan, est développé selon les termes de...
Construction et utilisation du serveur LDAP (OpenLDAP) VoirConstruction de la base de l'annuaire LDAP Pour commencer à saisir des informations dans notre annuaire, il s'agit de créer deux fichiers texte au format LDIF. Avant de saisir les informations concernants les utilisateurs, il faut dans un premier...
LDAP - Introduction aux annuaires LDAP VoirIntroduction aux annuaires La définition du dictionnaire (© - Le Petit Larousse) pour le mot "annuaire" est la suivante : ANNUAIRE n.m. (du lat. annuus, annuel). Ouvrage publié chaque année, donnant la liste des membres d'une profession, des...

1

 chamseddine2008, le 1 nov 2007 à 11:48:11

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

Répondre à chamseddine2008