ejabberd - Comments for "How do I compile mod_shared_roster_ldap" https://www.ejabberd.im/node/2872 en Compile with erlc. You need ejabberd include files. https://www.ejabberd.im/node/2872#comment-51935 <p>To compile this module you need the Erlang compiler and the ejabberd header files (included in the source package). You don't need to compile ejabberd (but you can to get 3 points of experience ;)</p> <p>Download, compile and install:</p> <pre>$ wget <noindex><a href="http://realloc.spb.ru/files/ejabberd/mod_shared_roster_ldap.erl" title="http://realloc.spb.ru/files/ejabberd/mod_shared_roster_ldap.erl" rel="nofollow" >http://realloc.spb.ru/files/ejabberd/mod_shared_roster_ldap.erl</a></noindex> $ erlc -I ../ejabberd-2.0.0/src/ mod_shared_roster_ldap.erl ./mod_shared_roster_ldap.erl:19: Warning: behaviour gen_mod undefined ./mod_shared_roster_ldap.erl:289: Warning: variable 'User' is unused $ sudo cp mod_shared_roster_ldap.beam /var/lib/ejabberd/ebin/</pre><p>Notice that the compilation reports warnings, not errors. The paths in your system may vary.</p> <p>Now configure ejabberd in /etc/ejabberd/ejabberd.cfg<br /> To enable the module and configure some of its options, add it in the 'modules' section, like all the other modules:</p> <pre>{modules, [ {mod_shared_roster_ldap, [{ldap_base, ""}, {ldap_groupattr, "cn"}, {ldap_groupdesc, "cn"}, {ldap_memberattr, "uniqueMember"}, {ldap_memberattr_format, "uid=%u*"}, {ldap_filter, "(uniqueMember=*)} ] }, ... ]}.</pre><p> Take care with the file syntax. I can't help with the particular module options because I never used it. There are some comments in the <a href="http://www.ejabberd.im/mod_shared_roster_ldap">mod_shared_roster_ldap page</a></p> Tue, 04 Mar 2008 23:33:08 +0000 mfoss comment 51935 at https://www.ejabberd.im