ejabberd - Comments for "Virtual host configuration help required" https://www.ejabberd.im/node/1219 en I have a working config now! https://www.ejabberd.im/node/1219#comment-2675 <p>Hi,</p> <p>Thanks for the tip. I now have a working mod_vcard on virtual host "A" + mod_vcard_ldap on virtual host "B" setup, by following your example above. However it did not work for me straight away, it seems that the ORDER of the commands in the config file is important. My apologies if this is a well understood or documented point. In my earlier attempts I had been following the ejabberd.cfg "stanza" and I was adding my host_config changes to the "host_config section" which occurs BEFORE the "common modules" section. It was only when I moved my "host_config" lines to the bottom of the ejabberd.cfg file that things began to work as expected.</p> <p>With thanks,</p> <p>Warren.</p> Tue, 05 Dec 2006 11:13:18 +0000 warren_h comment 2675 at https://www.ejabberd.im Should work; example configuration https://www.ejabberd.im/node/1219#comment-2643 <div class="quote-msg"> <div class="quote-author"><em>warren_h</em> wrote:</div> <p>However the behaviour with or without the patch remains the same. According to my testing it is not possible to add the mod_vcard module by using the host_config line.</p></div> <p>ejabberd does not allow to run mod_vcard and mod_vcard_ldap on the same vhost, for the same reason that it does not allow to run two mod_vcards on the same vhost.</p> <p>I made an experiment. Since I don't have LDAP installed, I tried to run two mod_vcards, one for each vhost on my system (localhost and atenea). Each module will have a different configuration.</p> <pre>{hosts, ["localhost", "atenea"]}. {modules, [ ... % Don't define the module on the common 'modules' section %{mod_vcard, []}, ... ]}. % Instead, define the module independently for each vhost. {host_config, "localhost", [{{add, modules}, [ {mod_vcard, [{host, "loki.localhost"}]} ] }]}. {host_config, "atenea", [{{add, modules}, [ {mod_vcard, [{host, "ati.atenea"}]} ] }]}.</pre><p> It works for me. The vcard on localhost is called loki, and the vcard on atenea is called ati.</p> Sat, 02 Dec 2006 10:49:31 +0000 mfoss comment 2643 at https://www.ejabberd.im Tried the host_config+add patch. https://www.ejabberd.im/node/1219#comment-2629 <p>Hi,</p> <p>Thanks for the suggestion. I've installed and tested with this patch. However the behaviour with or without the patch remains the same. According to my testing it is not possible to add the mod_vcard module by using the host_config line. With or without the "add" patch or with or without the presence of mod_vcard_ldap.</p> <p>I've gone back to testing the setup which in my opion should work :</p> <p> {mod_vcard, [{host, "jud.guests.example.com"}]},<br /> {mod_vcard_ldap, [{host, "jud.example.com"},</p> <p>When I check the loaded modules for each virtual host I see that mod_vcard and mod_vcard_ldap are loaded for both virtual hosts.</p> <p>I tried using the admin interface to stop the running mod_vcard_ldap modules on both virtual hosts, but this does not help. The only way I can get mod_vcard to work is to not load mod_vcard_ldap in the first place.</p> <p>Regards,</p> <p>Warren.</p> Fri, 01 Dec 2006 09:22:37 +0000 warren_h comment 2629 at https://www.ejabberd.im Still looks like mod_vcard and mod_vcard_ldap are not compatible https://www.ejabberd.im/node/1219#comment-2622 <p>Hi,</p> <p>Thanks for the suggestion. I tried this :</p> <p>{host_config, "guests.example.com", [{auth_method, internal},<br /> {modules, [<br /> {mod_vcard, [{host, "jud.guests.example.com"}]}]}<br /> ]}.</p> <p>Possibly I've got a typo in there but running with the above line resulted in the mod_vcard service disappearing altogether for the guests.example.com vhost.</p> <p>Thanks,</p> <p>Warren.</p> Thu, 30 Nov 2006 15:20:34 +0000 warren_h comment 2622 at https://www.ejabberd.im Try host_config, else try host_config+add patch https://www.ejabberd.im/node/1219#comment-2621 <div class="quote-msg"> <div class="quote-author"><em>d.k.brazz</em> wrote:</div> <p>try add for each host section like this:</p> <p>{host_config, "example.net", [{auth_method, internal}, {modules, [{mod_vcard,[]}, ....]}]}.</p></div> <p>This should work on theory with modules, but probably does not on practice. If it doesn't work (modules config is messed by ejabberd...) then you can try <noindex><a href="http://www.jabber.ru/bugzilla/show_bug.cgi?id=241" rel="nofollow" >this patch</a></noindex>.</p> Thu, 30 Nov 2006 15:11:49 +0000 mfoss comment 2621 at https://www.ejabberd.im try add for each host https://www.ejabberd.im/node/1219#comment-2620 <p>try add for each host section like this:</p> <p>{host_config, "example.net", [{auth_method, internal}, {modules, [{mod_vcard,[]}, ....]}]}.</p> <p><noindex><a href="http://www.process-one.net/en/projects/ejabberd/docs/guide_en.html#htoc15" title="http://www.process-one.net/en/projects/ejabberd/docs/guide_en.html#htoc15" rel="nofollow" >http://www.process-one.net/en/projects/ejabberd/docs/guide_en.html#htoc15</a></noindex></p> Thu, 30 Nov 2006 13:01:20 +0000 d.k.brazz comment 2620 at https://www.ejabberd.im mod_vcard and mod_vcard_ldap compatibility https://www.ejabberd.im/node/1219#comment-2619 <p>Hi,</p> <p>Now I have configured</p> <p> {mod_vcard, [{host, "jud.guests.example.com"}]},<br /> {mod_vcard_ldap, [{host, "jud.example.com"},</p> <p>However now the problem is that when mod_vcard_ldap is enabled mod_vcard breaks, they are not compatible! With the config as above the mod_vcard server appears (via service discovery) to be available to Jabber users of guests.example.com, but they are unable to update their vcard entries. This problem is rectified by commenting out mod_vcard_ldap, but then the LDAP Jabber User Directory service for users of example.com is no longer available...</p> <p>So how do I enable both mod_vcard and mod_vcard_ldap for different hosts at the same time? Please note that the version of ejabberd I am using is 1.1.2.</p> <p>Thanks,</p> <p>Warren.</p> Thu, 30 Nov 2006 11:48:57 +0000 warren_h comment 2619 at https://www.ejabberd.im