Hi,
I'm new on ejabberd, and it seems great.
How can we configure ejabberd to realize the search on LDAP. When I launch with pandion this request:
SENT: < iq type="get" id="sd51" to="vjud.dcsieu.sieu.labtech.pls.domain"><query xmlns="jabber:iq:search" xml:lang="fr"
I receive this and pandion display a form:
RECV: from="vjud.dcsieu.sieu.labtech.pls.domain" to="a750134@dcsieu.sieu.labtech.pls.domain/Unify" id="sd51" type="result"><query xmlns="jabber:iq:search" instructions Vous avez besoin d'un client supportant x:data pour faire une recherche</instructions><x xmlns="jabber:x:data" type="form"><title>Rechercher des utilisateurs vjud.dcsieu.sieu.labtech.pls.domain</title><instructions>Remplissez le formulaire pour recherche un utilisateur Jabber (Ajouter * à la fin du champ pour chercher n'importe quelle fin de chaîne</instructions><field type="text-single" label="Utilisateur" var="user"></field><field type="text-single" label="Nom complet" var="fn"></field><field type="text-single" label="Nom" var="given"></field><field type="text-single" label="Autre nom" var="middle"></field><field type="text-single" label="Nom de famille" var="family"></field><field type="text-single" label="Pseudo" var="nickname"></field><field type="text-single" label="Date d'anniversaire" var="bday"></field><field type="text-single" label="Pays" var="ctry"></field><field type="text-single" label="Ville" var="locality"></field><field type="text-single" label="email" var="email"></field><field type="text-single" label="Nom de l'organisation" var="orgname"></field><field type="text-single" label="Unité de l'organisation" var="orgunit... />
If I search something
SENT: <iq type="set" id="sd52" to="vjud.dcsieu.sieu.labtech.pls.domain"><query xml:lang="fr" xmlns="jabber:iq:search"><x xmlns="jabber:x:data" type="submit"><field var="user"><value/></field><field var="fn"><value/></field><field var="given"><value/></field><field var="middle"><value/></field><field var="family"><value>lainn*</value></field><field var="nickname"><value/></field><field var="bday"><value/></field><field var="ctry"><value/></field><field var="locality"><value/></field><field var="email"><value/></field><field var="orgname"><value/></field><field var="orgunit....
There is no request on LDAP and no result return ..
RECV: <iq from="vjud.dcsieu.sieu.labtech.pls.domain" to="a750134@dcsieu.sieu.labtech.pls.domainUnify" id="sd52" type="result"><query xmlns="jabber:iq:search"><x xmlns="jabber:x:data" type="result"><title>Résultat de la recherche des utilisateurs vjud.dcsieu.sieu.labtech.pls.domain</title><reported><field label="JID" var="jid"></field><field label="Nom complet" var="fn"></field><field label="Nom" var="given"></field><field label="Autre nom" var="middle"></field><field label="Nom de famille" var="family"></field><field label="Pseudo" var="nickname"></field><field label="Date d'anniversaire" var="bday"></field><field label="Pays" var="ctry"></field><field label="Ville" var="locality"></field><field label="email" var="email"></field><field label="Nom de l'organisation" var="orgname"></field><field label="Unité de l'organisation" var="orgunit
How can I configure this point.
Try mod_vcard_ldap instead of mod_vcard
A search for what, and where? If you are able to express a coherent question, you are near to the solution. I guess the question you want to do is:
In that case, there is something you can try. The vjud service is implemented in mod_vcard, and that module uses the internal Mnesia database to gather information. If you want to search for users on LDAP, use mod_vcard_ldap instead. To do that, replace mod_vcard with mod_vcard_ldap at the end of your ejabberd.cfg and restart ejabberd.
I hope it works, but I don't know if it will since I never used LDAP. Anyway, please come back and tell us if it works.