ejabberd - Comments for "Problem with rosters when using LDAP" https://www.ejabberd.im/node/3134 en Screenshots with Psi https://www.ejabberd.im/node/3134#comment-53407 <div class="quote-msg"> <div class="quote-author"><em>jtl10</em> wrote:</div> <p>Has anyone tried shared rosters with the PSI client?</p></div> <p>Yes, check <noindex><a href="/screenshots-shared-roster-groups" rel="nofollow" >Shared Roster Groups Screenshots</a></noindex></p> Wed, 09 Jul 2008 20:18:58 +0000 mfoss comment 53407 at https://www.ejabberd.im Thanks... the problems seems to be with shared rosters then... https://www.ejabberd.im/node/3134#comment-53406 <p>Thanks for the help so far.<br /> <noindex><a href="mailto:Bob.hope@example.net" rel="nofollow" >Bob.hope@example.net</a></noindex> was a typo... it's actually <noindex><a href="mailto:bob.hope@mail.example.net" rel="nofollow" >bob.hope@mail.example.net</a></noindex>, so I don't think that's the issue. </p> <p>As far the users tab in the web interface... it's not completely blank... it shows the usual side frames and has a blank to add new users... it even has the headers for the table of users (User Offline Messages Last Activity). It just doesn't show any users. </p> <p>As for shared rosters... the shared rosters group module just doesn't seem to work. The web interface works normally... I can create new shared roster group (I tried @all@ and typing in sets of usernames) - but they never show up in the PSI client. </p> <p>I'll try installing everything from scratch again just to see if I am missing anything, but I think I'm doing everything correctly. Has anyone tried shared rosters with the PSI client? Could that be the issue?</p> Wed, 09 Jul 2008 19:28:18 +0000 jtl10 comment 53406 at https://www.ejabberd.im All works for me. Check your 'hosts' option https://www.ejabberd.im/node/3134#comment-53390 <p>I know very little about LDAP. I installed slapd in Debian, created an admin account and two user accounts. Then I configured ejabberd to use ldap as auth_method.</p> <p>I tested with ejabberd compiled from SVN trunk, Erlang/OTP and other dependencies from Debian Unstable packages. I think there weren't major changes in LDAP code since ejabberd 2.0.1 was released.</p> <p>My config:</p> <pre> %{auth_method, internal}. {auth_method, ldap}. {ldap_servers, ["localhost"]}. {ldap_base, "dc=pike"}. {ldap_rootdn, "cn=admin,dc=pike"}. {ldap_password, "qweqwe"}. </pre><div class="quote-msg"> <div class="quote-author"><em>jtl10</em> wrote:</div> <p>It won't let me register a new account for the user (I'm assuming since they are already in Active Directory) </p></div> <p>Accounts are to be created in LDAP by you in some way, not using ejabberd.</p> <div class="quote-msg"> <div class="quote-author"><em>jtl10</em> wrote:</div> <p>In the web admin, active users will show up in the online users page, but the users page itself is blank. </p></div> <p>It works for me. Do you mean no users are listed, or that the page shown is completely blank? In the later case there will probably be an error message in the ejabberd log file.</p> <div class="quote-msg"> <div class="quote-author"><em>jtl10</em> wrote:</div> <p>From reading through the pages here, I was under the impression that they should at least see a list of all the LDAP users who've connected, but this doesn't seem to be the case. </p></div> <p>The roster is considered private data. By default only the user can add or remove contacts to his roster. So some text misleaded you.</p> <div class="quote-msg"> <div class="quote-author"><em>jtl10</em> wrote:</div> <p>The shared roster function in the web interface doesn't work... </p></div> <p>It works for me. I created a group identified as: asd. Then I set Name: bubu, Description: desc, Members: @all@, Display: asd.<br /> I logged in with one of the two LDAP accounts, and I saw the other user as offline. Then I logged in with the other, and both users could see the other as online. I didn't add those users as contacts: they were displayed to the clients by ejabberd as they are in a shared roster group.</p> <div class="quote-msg"> <div class="quote-author"><em>jtl10</em> wrote:</div> <p>I've manually create rosters in the web interface but nothing ever shows up in the client. </p></div> <p>I added a non-existent contact to one of the user's roster using Web Admin. Then I logged in to that user, and he saw the other existing user (thanks to Shared Roster Groups) and a new contact (which of course corresponds to an account that doesn't exist, so he's always offline). </p> <p>The rosters are managed by mod_roster, and are stored in the internal Mnesia table 'roster'. You can see in Web Admin the size of that table, to see if it increases. Or dump the whole database to a text file.</p> <div class="quote-msg"> <div class="quote-author"><em>jtl10</em> wrote:</div> <p>I've also tried installing mod_shared_roster_ldap. I compiled it and got it running, but it didn't work either. No matter what I tried nothing ever showed up in the client. </p></div> <p>I didn't try that module, because the regular one worked as expected for the simple feature we wanted.</p> <div class="quote-msg"> <div class="quote-author"><em>jtl10</em> wrote:</div> <p>Ideally I'd like to be able to create several shared rosters that would automatically be loaded on the client for each user... but at this point I'd be happy just to have everyone show up in the roster... or for any solution at all that would let push out a group roster that would be visible in the PSI client. </p></div> <p>All worked correctly in my very simple LDAP auth setup. Your config seems correct.</p> <div class="quote-msg"> <div class="quote-author"><em>jtl10</em> wrote:</div> <p>I've set the host to be mail.example.net.<br /> ...<br /> let's say <noindex><a href="mailto:bob.hope@example.net" rel="nofollow" >bob.hope@example.net</a></noindex> </p></div> <p>If you set this in ejabberd.cfg</p> <pre> {hosts, ["example.net"]}. </pre><p>then your Jabber ID will be "bob.hope@example.net".</p> <p>If you set this in ejabberd.cfg</p> <pre> {hosts, ["mail.example.net"]}. </pre><p>then your Jabber ID will be "bob.hope@mail.example.net".</p> <p>If you attempt to overlook this, the results are unpredictable.</p> Tue, 08 Jul 2008 22:46:23 +0000 mfoss comment 53390 at https://www.ejabberd.im