{"id":1137,"date":"2012-03-15T10:01:57","date_gmt":"2012-03-15T04:01:57","guid":{"rendered":"http:\/\/notes.norfolks.org\/?p=1137"},"modified":"2012-05-22T10:50:51","modified_gmt":"2012-05-22T04:50:51","slug":"mod_shared_roster_ldap","status":"publish","type":"post","link":"https:\/\/notes.norfolks.fun\/?p=1137","title":{"rendered":"mod_shared_roster_ldap"},"content":{"rendered":"<p>\u041c\u043e\u0434\u0443\u043b\u044c \u0434\u043b\u044f <strong>ejabberd<\/strong> &#8212; mod_shared_roster_ldap<br \/>\n(<em>LDAP-based shared roster module for ejabberd server<\/em>)<br \/>\n<strong>\u0410\u0434\u0440\u0435\u0441 \u043f\u0440\u043e\u0435\u043a\u0442\u0430:<\/strong><br \/>\n<a href=\"https:\/\/alioth.debian.org\/projects\/ejabberd-msrl\/\">https:\/\/alioth.debian.org\/projects\/ejabberd-msrl\/<\/a><br \/>\n<strong>\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u043a \u0432\u0435\u0440\u0441\u0438\u0438 0.5.3:<\/strong><br \/>\nhttp:\/\/ejabberd-msrl.alioth.debian.org\/doc\/0.5.3\/msrl.html<\/p>\n<p>\u041a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u044f \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0432 <strong>Debian 6<\/strong> \u0434\u043b\u044f <strong>ejabberd (2.1.5-3+squeeze1)<\/strong>:<br \/>\nI. <strong>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430<\/strong> ejabberd 2:<\/p>\n<pre lang=\"text\">apt-get install ejabberd<\/pre>\n<p>II. <strong>\u041a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u044f<\/strong> mod_shared_roster_ldap<\/p>\n<ol>\n<li>you need an Erlang runtime and compiler installation, they probably come together \u2014 check whether you have the <code>erl<\/code> and <code>erlc<\/code> commands. You should probably use the same (or close enough) erlang compiler version as the one which was used to compile your binary ejabberd installation.<\/li>\n<li>you also need an unpacked source package of ejabberd (strictly speaking only the *.hrl headers are needed) for the same version as you binary ejabberd installation [1],<\/li>\n<li>copy the files mod_shared_roster_ldap_helpers.erl, mod_shared_roster_ldap.hrl and mod_shared_roster_ldap.erl, into the src\/ subdirectory of ejabberd source tree<\/li>\n<li>compile the modules by running the following in a terminal [2]:\n<pre lang=\"text\"> erlc mod_shared_roster_ldap.erl\r\n erlc mod_shared_roster_ldap_helpers.erl<\/pre>\n<\/li>\n<li>copy the resulting mod_shared_roster_ldap.beam and mod_shared_roster_ldap_helpers.beam to the ejabberd ebin directory [3]<\/li>\n<li>restart <code>ejabberd<\/code> to let it load the module,<\/li>\n<\/ol>\n<p>_____________________________________________________________________________<br \/>\n[1] If you run a Debian-based system, you should be able to get that easily with just a<code>pt-get install dpkg-dev <\/code>; <code>apt-get source ejabberd<\/code><br \/>\n[2] You need to have the compiler command <code>erlc<\/code> in your execution PATH variable, or specify the full path to erlc. In Windows it will be something like <code>\"c:\\Program Files\\Erl5.6.5\\bin\\erlc.exe\"<\/code><br \/>\n[3] this will be something like <code>\/usr\/lib\/ejabberd\/ebin<\/code> or <code>lib\/ejabberd-your-version\/ebin\/<\/code> depending on your system.<\/p>\n<p>\u0410 \u0442\u0430\u043a \u0436\u0435:<\/p>\n<p><a href=\"http:\/\/www.ejabberd.im\/node\/4041\">\u0420\u0443\u0441\u0441\u043a\u0438\u0435 \u043f\u043e\u043b\u043d\u044b\u0435 \u0438\u043c\u0435\u043d\u0430 \u0432 mod_shared_roster_ldap \u0438 AD<\/a><br \/>\n<a href=\"http:\/\/ejabberd-msrl.alioth.debian.org\/doc\/0.5.3\/msrl.html\">mod_shared_roster_ldap 0.5.3 Shared Roster LDAP Documentation<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041c\u043e\u0434\u0443\u043b\u044c \u0434\u043b\u044f ejabberd &#8212; mod_shared_roster_ldap (LDAP-based shared roster module for ejabberd server) \u0410\u0434\u0440\u0435\u0441 \u043f\u0440\u043e\u0435\u043a\u0442\u0430: https:\/\/alioth.debian.org\/projects\/ejabberd-msrl\/ \u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u043a \u0432\u0435\u0440\u0441\u0438\u0438 0.5.3: http:\/\/ejabberd-msrl.alioth.debian.org\/doc\/0.5.3\/msrl.html \u041a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u044f \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0432 Debian 6 \u0434\u043b\u044f ejabberd (2.1.5-3+squeeze1): I. \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 ejabberd 2: apt-get install ejabberd II. \u041a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u044f mod_shared_roster_ldap you &hellip; <a href=\"https:\/\/notes.norfolks.fun\/?p=1137\">\u0427\u0438\u0442\u0430\u0442\u044c \u0434\u0430\u043b\u0435\u0435 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26,14,8],"tags":[],"class_list":["post-1137","post","type-post","status-publish","format-standard","hentry","category-ejabberd","category-linux","category-8"],"_links":{"self":[{"href":"https:\/\/notes.norfolks.fun\/index.php?rest_route=\/wp\/v2\/posts\/1137","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/notes.norfolks.fun\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/notes.norfolks.fun\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/notes.norfolks.fun\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/notes.norfolks.fun\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1137"}],"version-history":[{"count":9,"href":"https:\/\/notes.norfolks.fun\/index.php?rest_route=\/wp\/v2\/posts\/1137\/revisions"}],"predecessor-version":[{"id":1327,"href":"https:\/\/notes.norfolks.fun\/index.php?rest_route=\/wp\/v2\/posts\/1137\/revisions\/1327"}],"wp:attachment":[{"href":"https:\/\/notes.norfolks.fun\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1137"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/notes.norfolks.fun\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1137"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/notes.norfolks.fun\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1137"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}