ejabberd - Comments for "How can I configure mod_vcard_ldap correctly?" https://www.ejabberd.im/node/504 en an update about bodomizer's mod_vcard_ldap experience https://www.ejabberd.im/node/504#comment-1082 <p>I've looked through that installation, added few INFO_MSG and found that mod_vcard_ldap *does* work, but wants "displayname" ldap attribute instead of "cn". </p> <p>For these, who might face the same issue in feature:<br /> ldap_lca_to_vcard/3 function in mod_vcard_ldap.erl file maps ldap attribs such as {uid, displayname, telephonenumber, description} to {NICKNAME, FN, TEL/NUMBER, DESC} vCard tags.</p> <p>We still were not able to make Miranda IM show contacts in "Lastname Firstname" notation with shared roster enabled though... :(<br /> Related bug: <noindex><a href="http://www.jabber.ru/bugzilla/show_bug.cgi?id=174" rel="nofollow" >#174</a></noindex></p> Mon, 21 Nov 2005 15:57:08 +0000 oghma comment 1082 at https://www.ejabberd.im Back to mod_vcard_ldap :) https://www.ejabberd.im/node/504#comment-1080 <pre>'host' is a common option for ejabberd modules</pre><p>Ok, it's my fault to say it's not documented, sorry. I know that it's common for other modules too.<br /> Anyways the main goal of this topic is to find whether mod_vcard_ldap is working at all in some configuration. Does it?<br /> Please see the extract from openldap server log in other branch of this topic. I suppose that connection to ldap is successful but mod_vcard_ldap just doesn't understand the output correctly...</p> Mon, 21 Nov 2005 13:38:10 +0000 bodomizer comment 1080 at https://www.ejabberd.im 'host' is a common option https://www.ejabberd.im/node/504#comment-1078 <p>'host' is a common option for ejabberd modules. It is described in the ejabberd guide (the official documentation).</p> <p>The modules option 'host' sets the name for the service as listed on the Jabber Discovery. This option is not specific to LDAP, and has nothing to do with LDAP. It is available for the standard mod_vcard too, and a lot more modules. </p> <p>I suggest you remove it from ejabberd.cfg until you understand what it does and you really want to use it.</p> Mon, 21 Nov 2005 12:07:34 +0000 mfoss comment 1078 at https://www.ejabberd.im Look. Here's what I see in https://www.ejabberd.im/node/504#comment-1077 <p>Look. Here's what I see in LDAP server log on each try of getting user details:<br /> ===<br /> Nov 21 14:07:37 vm_alm24 slapd[32647]: conn=0 op=3 SRCH base="ou=People,dc=moscow,dc=myorg,dc=com" scope=2 filter="(uid=iivanov)"<br /> Nov 21 14:07:37 vm_alm24 slapd[32647]: conn=0 op=3 ENTRY dn="uid=iivanov,ou=People,dc=moscow,dc=myorg,dc=com"<br /> Nov 21 14:07:37 vm_alm24 slapd[32647]: conn=0 op=3 SEARCH RESULT tag=101 err=0 nentries=1 text=<br /> ===<br /> I understand these three lines as:<br /> 1) ejabberd performs search in database;<br /> 2) search is successful, the entry is shown;<br /> 3) entry is passed to ejabberd as a search result.<br /> Am I right?</p> Mon, 21 Nov 2005 11:18:10 +0000 bodomizer comment 1077 at https://www.ejabberd.im The main answer is "I did it https://www.ejabberd.im/node/504#comment-1076 <p>The main answer is "I did so because I have no documentation that says not to do so".</p> <p>Well, my root LDAP server contains all the users' information under ou=People and is accessible through ldap://localhost, why not?<br /> Should I assign a pseudo-name vjud.locahost to it also?<br /> Will it guarantee that mod_vcard_ldap will start working?</p> Mon, 21 Nov 2005 10:08:42 +0000 bodomizer comment 1076 at https://www.ejabberd.im {mod_vcard_ldap, [{host, https://www.ejabberd.im/node/504#comment-1075 <pre>{mod_vcard_ldap, [{host, "localhost"}]}</pre><p> Why did you add the option 'host'? </p> <p>It's optional, in your case it doesn't have any effect, and, in fact, it's incorrect: it should be "vjud.localhost", or "users.localhost", or "vjud.myserver.com", ... not simply "localhost".</p> Mon, 21 Nov 2005 08:55:25 +0000 mfoss comment 1075 at https://www.ejabberd.im Most likely it is not :) https://www.ejabberd.im/node/504#comment-1072 <p>This is a test installation without any other resource-consuming processes. LDAP server is located on localhost, it is stable and we can do ldapsearch on it at any time. Moreover user can log in to ejabberd using ldap authentication at any time without any troubles and with his/her roster fetched through mod_shared_roster from the same LDAP database.</p> <p>I can quote any part of ejabberd.log here though there are no messages about connection is lost. Search for vcard always returns 1 result without any positive impact on the client side :((</p> <p>Does Alexey have the working config himself?</p> Mon, 21 Nov 2005 07:37:01 +0000 bodomizer comment 1072 at https://www.ejabberd.im Comment from Aleksey https://www.ejabberd.im/node/504#comment-1061 <p>I asked Aleksey and he answered: 'it seems connection to ldap server dies, probably there should be some error reports in logs'.</p> Fri, 18 Nov 2005 14:42:52 +0000 mfoss comment 1061 at https://www.ejabberd.im