{"id":951,"date":"2011-03-21T17:26:17","date_gmt":"2011-03-21T15:26:17","guid":{"rendered":"http:\/\/skeletor.org.ua\/?p=951"},"modified":"2011-04-22T08:47:12","modified_gmt":"2011-04-22T05:47:12","slug":"roundcube-%d0%b8-%d0%b0%d0%b4%d1%80%d0%b5%d1%81%d0%bd%d0%b0%d1%8f-%d0%ba%d0%bd%d0%b8%d0%b3%d0%b0-%d0%b2-ldape","status":"publish","type":"post","link":"https:\/\/skeletor.org.ua\/?p=951","title":{"rendered":"roundcube \u0438 \u0430\u0434\u0440\u0435\u0441\u043d\u0430\u044f \u043a\u043d\u0438\u0433\u0430 \u0432 LDAP\u2019e"},"content":{"rendered":"<p>\u0412 \u0441\u0442\u0430\u0442\u044c\u0435 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u043b\u043e\u0436\u0435\u043d \u043f\u0440\u0438\u043c\u0435\u0440 \u0440\u0430\u0431\u043e\u0447\u0438\u0445 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0430\u0434\u0440\u0435\u0441\u043d\u043e\u0439 \u043a\u043d\u0438\u0433\u0438 \u0432 <strong>ldap&#8217;e<\/strong>.<\/p>\n<p><!--more--><\/p>\n<p><strong><span style=\"color: #ff0000;\">\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0430\u0434\u0440\u0435\u0441\u043d\u043e\u0439 \u043a\u043d\u0438\u0433\u0438 \u0432 ldap&#8217;e \u0442\u0430\u043a\u043e\u0432\u0430:<\/span><\/strong><\/p>\n<p>\u0432 \u043a\u043e\u0440\u043d\u0435 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430 \u0441\u043e\u0437\u0434\u0430\u043d \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 <strong>OU<\/strong> \u0441 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c <strong>addressbook<\/strong>. \u0415\u0441\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 <strong>people<\/strong>, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0437\u0430\u0432\u0435\u0434\u0451\u043d \u044e\u0437\u0435\u0440 <strong>book_ro<\/strong>, \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0438 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0430\u0434\u0440\u0435\u0441\u043d\u043e\u0439 \u043a\u043d\u0438\u0433\u0435.<\/p>\n<p><strong><span style=\"color: #ff0000;\">\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0437\u0430\u043f\u0438\u0441\u0435\u0439:<\/span><\/strong><\/p>\n<p><code>\u043a\u043b\u0430\u0441\u0441 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 = inetOrgPerson<br \/>\ncn = \u0438\u043c\u044f<br \/>\nsn = \u0444\u0430\u043c\u0438\u043b\u0438\u044f<br \/>\nmail = \u043f\u043e\u0447\u0442\u043e\u0432\u044b\u0439 \u0430\u0434\u0440\u0435\u0441<\/code><\/p>\n<p>\u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u043e\u0442\u043b\u0438\u0447\u0438\u044f &#8211; \u043e\u0442\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0439\u0442\u0435 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 \u043a\u043e\u0434 \u043f\u043e\u0434 \u0441\u0435\u0431\u044f.<\/p>\n<p>\u0410 \u043d\u0438\u0436\u0435 \u043f\u0440\u0438\u0432\u043e\u0436\u0443 \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u043a\u043e\u0434 \u0438\u0437 \u0444\u0430\u0439\u043b\u0430 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a <strong>roundcube<\/strong> :<\/p>\n<p><code>$rcmail_config['address_book_type'] = 'ldap';<br \/>\n$rcmail_config['ldap_public']['domain.lan'] = array(<br \/>\n'name' \u00a0 \u00a0 \u00a0 \u00a0 \u00a0=&gt; 'domain.lan',<br \/>\n'hosts' \u00a0 \u00a0 \u00a0 \u00a0 =&gt; array('192.168.0.1'),<br \/>\n'port' \u00a0 \u00a0 \u00a0 \u00a0 \u00a0=&gt; 389,<br \/>\n'use_tls' \u00a0 \u00a0 \u00a0 =&gt; false,<br \/>\n'user_specific' =&gt; false,<br \/>\n'base_dn' \u00a0 \u00a0 \u00a0 =&gt; 'ou=addressbook,dc=domain,dc=lan',<br \/>\n'bind_dn' \u00a0 \u00a0 \u00a0 =&gt; 'cn=book_ro,ou=people,dc=domain,dc=lan',<br \/>\n'bind_pass' \u00a0 \u00a0 =&gt; 'user_pass',<br \/>\n'ldap_version' \u00a0=&gt; 3,<br \/>\n'search_fields' =&gt; array('addressbook', 'cn'),<br \/>\n'name_field' \u00a0 \u00a0=&gt; 'cn',<br \/>\n'email_field' \u00a0 =&gt; 'mail',<br \/>\n'surname_field' =&gt; 'sn',<br \/>\n'firstname_field' =&gt; 'cn',<br \/>\n'sort' \u00a0 \u00a0 \u00a0 \u00a0 \u00a0=&gt; 'cn',<br \/>\n'scope' \u00a0 \u00a0 \u00a0 \u00a0 =&gt; 'sub',<br \/>\n'filter' \u00a0 \u00a0 \u00a0 \u00a0=&gt; '(&amp;(mail=*)(objectClass=inetOrgPerson))',<br \/>\n'global_search' =&gt; true,<br \/>\n'fuzzy_search' \u00a0=&gt; true);<br \/>\n<\/code><br \/>\n\u041a\u0441\u0442\u0430\u0442\u0438, \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c <strong>book_ro<\/strong> \u0434\u043e\u043b\u0436\u0435\u043d \u043e\u0431\u043b\u0430\u0434\u0430\u0442\u044c \u043f\u0440\u0430\u0432\u0430\u043c\u0438 \u043d\u0430 \u0447\u0442\u0435\u043d\u0438\u0435 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0433\u043e <strong>OU<\/strong>. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0442\u0430\u043a\u0443\u044e \u0437\u0430\u043f\u0438\u0441\u044c \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 <strong>ldap<\/strong>:<\/p>\n<p><code>access to dn.base=\"\" by * read<br \/>\naccess to dn.base=\"cn=Subschema\" by * read<br \/>\naccess to attrs=userPassword<br \/>\nby self read<br \/>\nby anonymous auth<br \/>\nby users read<br \/>\n###ou=addressbook<br \/>\naccess to dn=\"ou=addressbook,dc=fbp,dc=lan\"<br \/>\nby dn=\"cn=book_ro,ou=people,dc=fbp,dc=lan\" read<br \/>\nby * auth<br \/>\naccess to dn.subtree=\"ou=addressbook,dc=fbp,dc=lan\"<br \/>\nby dn=\"cn=book_ro,ou=people,dc=fbp,dc=lan\" read<br \/>\nby * auth<br \/>\n### other access<br \/>\naccess to *<br \/>\nby anonymous auth<br \/>\nby users read<br \/>\nby * none<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0412 \u0441\u0442\u0430\u0442\u044c\u0435 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u043b\u043e\u0436\u0435\u043d \u043f\u0440\u0438\u043c\u0435\u0440 \u0440\u0430\u0431\u043e\u0447\u0438\u0445 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0430\u0434\u0440\u0435\u0441\u043d\u043e\u0439 \u043a\u043d\u0438\u0433\u0438 \u0432 ldap&#8217;e.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,10],"tags":[],"class_list":["post-951","post","type-post","status-publish","format-standard","hentry","category-mail","category-others"],"_links":{"self":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/951","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=951"}],"version-history":[{"count":2,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/951\/revisions"}],"predecessor-version":[{"id":1102,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/951\/revisions\/1102"}],"wp:attachment":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=951"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=951"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=951"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}