ejabberd - Comments for "Problem with showing full usernames -&amp;gt; mod_shared_roster_ldap" https://www.ejabberd.im/node/4724 en http://www.process-one.net/do https://www.ejabberd.im/node/4724#comment-57584 <p><noindex><a href="http://www.process-one.net/docs/ejabberd/guide_en.html#msrlattrs" title="http://www.process-one.net/docs/ejabberd/guide_en.html#msrlattrs" rel="nofollow" >http://www.process-one.net/docs/ejabberd/guide_en.html#msrlattrs</a></noindex></p> <div class="quote-msg"> <div class="quote-author">Quote:</div> <dl> <dt>ldap_useruid</dt> <dd>The name of the attribute which holds the ID of a roster item. Value of this attribute in the roster item objects needs to match the ID retrieved from the ldap_memberattr attribute of a group object. Retrieved from results of the “User Filter”. Defaults to cn.</dd> </dl> </div> <p>I didn't mean to offend you. However, that proposition didn't make any sense.</p> Mon, 11 Jul 2011 21:35:40 +0000 mikekaganski comment 57584 at https://www.ejabberd.im c4r0l1n3 wrote: Hi https://www.ejabberd.im/node/4724#comment-57583 <div class="quote-msg"> <div class="quote-author"><em>c4r0l1n3</em> wrote:</div> <p>Hi there,</p> <div class="codeblock"><code>{mod_shared_roster_ldap,<br />[<br />%% Base filter for lookups %% ou=JabberGroups<br />{ldap_base, &quot;ou=XMPP,dc=example,dc=com&quot;},<br />{ldap_rfilter, &quot;(objectClass=*)&quot;},<br />{ldap_filter,&quot;&quot;},<br />{ldap_ufilter,&quot;(uid=%u)&quot;},<br />{ldap_groupattr,&quot;cn&quot;},<br />%%{ldap_groupdesc,&quot;description&quot;},<br />{ldap_memberattr,&quot;memberUid&quot;},<br />%%{ldap_memberattr_format, &quot;uid=%u,ou=XMPP,dc=example,dc=com&quot;},<br />{ldap_useruid, &quot;uid&quot;},<br />%%{ldap_auth_check, &quot;on&quot;},<br />{ldap_userdesc,&quot;cn&quot;}<br />%% END mod_shared_roster_ldap<br />]<br />}<br />]}.</code></div> </div> <p>In comparrison to my shared roster config:</p> <div class="codeblock"><code>&nbsp; {mod_shared_roster_ldap,[<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {ldap_base, &quot;ou=Company,dc=example,dc=com&quot;},<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {ldap_groupattr,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;cn&quot;},<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {ldap_groupdesc,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;description&quot;},<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {ldap_memberattr,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;memberUid&quot;},<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {ldap_rfilter,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;(objectClass=*)&quot;},<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {ldap_ufilter,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;(uid=%u)&quot;},<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {ldap_useruid,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;uid&quot;},<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {ldap_userdesc,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;displayName&quot;},<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {ldap_filter,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;&quot;}<br />&nbsp; ]},</code></div> <p>Looks like my base config difference is '{ldap_userdesc,"displayName"}'</p> <p>Needless to say I've been trying hard at my AD configuration (which is a small snip above). Our AD is a little more complex than a flat roster. Unfortunately I'm not able to get my groups showing right... not sure why... still working on it; but that 'displayName' should help you potentially; unless that's a Windows AD specific thing.</p> Mon, 11 Jul 2011 20:10:30 +0000 mengesb comment 57583 at https://www.ejabberd.im mikekaganski https://www.ejabberd.im/node/4724#comment-57580 <div class="quote-msg"> <div class="quote-author"><em>mikekaganski</em> wrote:</div> <p>2mengesb:<br /> I suppose you don't understand what you suggest. The ldap_useruid must correspond to the data in ldap_memberattr of the ldap_gfilter. </p></div> <p><noindex><a href="http://www.process-one.net/docs/ejabberd/guide_en.html#htoc62" title="http://www.process-one.net/docs/ejabberd/guide_en.html#htoc62" rel="nofollow" >http://www.process-one.net/docs/ejabberd/guide_en.html#htoc62</a></noindex> says nothing about ldap_memberattr matching anything. Its true I'm not quite up to par understanding some of these mappings, hence I've asked for help in my own thread trying to work on my shared roster, but that doesn't mean i'm any less right or wrong; I'm simply going by what I've setup that shows the right display name.</p> Mon, 11 Jul 2011 14:53:45 +0000 mengesb comment 57580 at https://www.ejabberd.im 2mengesb: I suppose you don't https://www.ejabberd.im/node/4724#comment-57577 <p>2mengesb:<br /> I suppose you don't understand what you suggest. The ldap_useruid must correspond to the data in ldap_memberattr of the ldap_gfilter.</p> <p>2OP:<br /> I'm not sure if this has something to to the problem,<br /> but your data shows that in no phase the shared roster contains the properly formed jid (i.e. "user@server"). You may check for the xml data that your client gets.</p> <p>I would try to make a mixed roster for a user, where some roster items were from ldap shared roster, and some added manually, and inspect the xml data that is recieved and sent by your client when getting the roster from server (e.g. on logon).</p> <p>I suppose that your client doesn't use the additional (optional) information in the roster (ldap_userdesc), and just uses the jid to get the vcard, from which it will get the display string (e.g. your client may have a user-definable field which is to show in user list). Then, if your roster contains items with invalid jid, it is unable to get the relevant vcard.</p> <p>However, something is wrong with this: as you say, you are able to get the correct information when clicking "get information". This is inconsistent with my idea.</p> <p>By the way, you haven't shown other data that is relevant: seems like some of your fields are set at a higher level, one of them being the abovementioned ldap_gfilter.</p> Sun, 10 Jul 2011 01:05:03 +0000 mikekaganski comment 57577 at https://www.ejabberd.im Your problem is with the https://www.ejabberd.im/node/4724#comment-57575 <p>Your problem is with the '{ldap_useruid, "uid"}' item I think. Change that to cn:</p> <p><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {ldap_useruid,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;cn&quot;},</code></p> <p>That should fix your problem.</p> Sat, 09 Jul 2011 21:01:39 +0000 mengesb comment 57575 at https://www.ejabberd.im