ejabberd - Comments for "auth_method ldap cn / displayName attribute? And mod_shared_roster_ldap for custom group?" https://www.ejabberd.im/node/5025 en When I add a GMail buddy from https://www.ejabberd.im/node/5025#comment-58014 <p>When I add a GMail buddy from our ejabberd XMPP account, the GMail display name gets pushed.<br /> But when I add an ejabberd buddy from my GMail account, the ejabberd display name doesn't get pushed.</p> <p>So it seems GMail is doing something that ejabberd doesn't.</p> <p>Had a look at the XMPP console in Pidgin as you suggested and it seems that GMail sends the following message...</p> <p>My GMail Display Name</p> <p>image/png<br /> encoded binary photo data in here</p> <p>But ejabberd doesn't send that.<br /> I have mod_vcard_ldap enabled and it appears to return my mod_vcard_ldap mappings when I do a manual "Get Info" on the user.<br /> But it seems that ejabberd doesn't send that vCard vcard-temp stanza on buddy auth, whereas GMail does.</p> <p>My mod_vcard_ldap configuration is as follows...</p> <pre><div class="codeblock"><code>&nbsp;&nbsp;&nbsp; {mod_vcard_ldap, [<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {iqdisc, one_queue},<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {search, false},<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {ldap_vcard_map, [<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {&quot;NICKNAME&quot;, &quot;%s&quot;, [&quot;displayName&quot;]},<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {&quot;FIRST&quot;, &quot;%s&quot;, [&quot;givenName&quot;]},<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {&quot;LAST&quot;, &quot;%s&quot;, [&quot;sn&quot;]},<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {&quot;FN&quot;, &quot;%s&quot;, [&quot;displayName&quot;]},<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {&quot;EMAIL&quot;, &quot;%s&quot;, [&quot;zimbraMailDeliveryAddress&quot;]}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ]},<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {ldap_search_reported,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {&quot;Nickname&quot;, &quot;NICKNAME&quot;},<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {&quot;E-Mail&quot;, &quot;EMAIL&quot;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ]}<br />&nbsp;&nbsp;&nbsp; ]},</code></div></pre><p>Note that I have mod_vcard_ldap search set to false and I don't have mod_vcard configured.</p> <p>Anyone know if the sending of vcard-temp by ejabberd is configurable?<br /> Anyone been able to solve this?</p> <p>Cheers, B</p> Wed, 09 Nov 2011 17:10:49 +0000 batfastad comment 58014 at https://www.ejabberd.im I may be totally wrong with https://www.ejabberd.im/node/5025#comment-58011 <p>I may be totally wrong with everything I'm going to write,<br /> but I suppose that the problem that display name isn't pushed through s2s isn't caused bu LDAP. I guess that if you used any other DB (may it be internal mnesia, or ODBC, or whatever) you would get the same results. Maybe it's ejabberd that doesn't support some extended s2s protocol. Or you just didn't enable the module that implements that protocol. Or GMail may use some internal "cheating" when adding its own users (then you would see the same problem if you tried to add GMail buddy to another (not GMail) public XMPP account).</p> <p>Maybe you could capture the XMPP exchanges when you add a GMail buddy, and when you add a buddy from your server to your GMail account. Then you could compare the differences, and maybe notice which requests your client sends to GMail to get display names. Then it could allow you to identify the protocol that is missing here.</p> Wed, 09 Nov 2011 01:25:34 +0000 mikekaganski comment 58011 at https://www.ejabberd.im @all@ in mod_shared_roster https://www.ejabberd.im/node/5025#comment-58009 <p>@all@ in mod_shared_roster doesn't work with LDAP. I can see why it doesn't work.</p> <p>After some testing I still can't get an LDAP user's display name to be pushed to an external buddy, even with mod_vcard_ldap correctly configured.<br /> When you add a GMail buddy in Pidgin, their display name gets pushed to you. But when I add an LDAP buddy from my GMail XMPP account, you only see the jid. Until you do a "Get Info" on the LDAP buddy and a display name is retrieved along with any other info specified in the mappings for mod_vcard_ldap.</p> <p>Anyone got any ideas on this?<br /> If it's not possible to have a display name pushed when using LDAP auth, then that's fine.<br /> I'd just like to know so I don't waste time thinking about it!</p> <p>Cheers, B</p> Tue, 08 Nov 2011 14:20:29 +0000 batfastad comment 58009 at https://www.ejabberd.im 2. I haven't used https://www.ejabberd.im/node/5025#comment-57977 <p>2. I haven't used mod_shared_roster myself, but as far as I can read in the source code, this module is able to display the users' names correctly, if they are available using mod_vcard(_ldap). So the issue may be that you haven't configured the latter one correctly. Maybe the first question has the same solution...<br /> With mod_shared_roster_ldap, all users are in some group <strong>in roster</strong>. This, however, doesn't mean that they must belong to a LDAP group. You may use any commom attribute as a grouping value.<br /> However, your case would be better handled by mod_shared_roster, if it would support using @all@ with LDAP. Here on forum, there are posts that indicate that mod_shared_roster is unable to add @all@ LDAP users. I consider this as a bug, since web admin is able to display the LDAP users correctly. I suppose you should check if *all* works for you with mod_shared_roster, and if not, then file a bug.</p> Sun, 30 Oct 2011 00:17:15 +0000 mikekaganski comment 57977 at https://www.ejabberd.im