ejabberd - Comments for "Multiple domains using different LDAP uidattr" https://www.ejabberd.im/node/3352 en searching ldap users https://www.ejabberd.im/node/3352#comment-53928 <div class="quote-msg"> <div class="quote-author"><em>ewdriver</em> wrote:</div> <p>I solved the different LDAP attibutes problem, POLITICALLY. :-)<br /> Making both domains have 'mail' attribute.<br /> So, the mail attribute can be uid.</p> <p>However, searching users in the other domain is not easy.<br /> Is it possible to search users in other domains?</p> <p>Thanks, in advance.</p></div> <p>If your directory is AD and your domains are in the same AD forest : no problem for searching users.<br /> If you've got different independent domains, the same account is to be used for searching accounts in all different domains.</p> Wed, 14 Jan 2009 08:12:16 +0000 dray comment 53928 at https://www.ejabberd.im Thanks for your advice https://www.ejabberd.im/node/3352#comment-53923 <p>I solved the different LDAP attibutes problem, POLITICALLY. :-)<br /> Making both domains have 'mail' attribute.<br /> So, the mail attribute can be uid.</p> <p>However, searching users in the other domain is not easy.<br /> Is it possible to search users in other domains?</p> <p>Thanks, in advance.</p> Tue, 13 Jan 2009 04:03:22 +0000 ewdriver comment 53923 at https://www.ejabberd.im Not possible. See workaround https://www.ejabberd.im/node/3352#comment-53915 <p>Disclaimer: I know little about LDAP or mod_vcard_ldap.</p> <p>I don't see any simple solution to your problem.</p> <p>Here is a workaround: in ejabberd you can define mod_vcard_ldap with some options for the first vhost, and the module with different options for the second vhost. Check in the Guide about host_config and {add, modules}. That way you have two separa vjuds that work correctly for each domain: vjud.dom1.com and vjud.dom2.com. </p> <p>Then, in dom1 enable the module mod_disco with option extra_domains and put "vjud.dom2.com". And viceversa. That way users of dom1 have in Service Discovery both vjuds. And users of dom2 have both vjuds too.</p> <p>They need to perform two searches, but that's the only workaround I could find for your wacky setup :P</p> Sat, 10 Jan 2009 19:08:41 +0000 mfoss comment 53915 at https://www.ejabberd.im