{"id":72722,"date":"2020-03-03T20:42:21","date_gmt":"2020-03-03T17:42:21","guid":{"rendered":"https:\/\/prohoster.info\/blog\/administrirovanie\/sozdayom-web-adresnyj-spravochnik-php-ldap"},"modified":"2020-03-03T20:42:21","modified_gmt":"2020-03-03T17:42:21","slug":"sozdayom-web-adresnyj-spravochnik-php-ldap","status":"publish","type":"post","link":"https:\/\/prohoster.info\/it\/blog\/administrirovanie\/sozdayom-web-adresnyj-spravochnik-php-ldap","title":{"rendered":"\u0421\u043e\u0437\u0434\u0430\u0451\u043c WEB \u0430\u0434\u0440\u0435\u0441\u043d\u044b\u0439 \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a PHP + LDAP","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<p>\u0422\u0430\u043a \u0441\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u0443 (\u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e) \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043a\u0430\u043c\u043f\u0430\u043d\u0438\u0438 \u0431\u044b\u043b\u043e \u043c\u043d\u043e\u0433\u043e \u043e\u0442\u0434\u0430\u043b\u0451\u043d\u043d\u044b\u0445 \u043e\u0444\u0438\u0441\u043e\u0432, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043d\u0430\u0445\u043e\u0434\u0438\u043b\u043e\u0441\u044c \u043f\u0440\u0438\u043b\u0438\u0447\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439. \u0412\u0441\u0435 \u043e\u0444\u0438\u0441\u044b \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u044b \u0432 \u043e\u0434\u043d\u0443 \u0441\u0435\u0442\u044c \u0441 \u043e\u0431\u0449\u0438\u043c \u0434\u043e\u043c\u0435\u043d\u043e\u043c, \u043a\u0430\u0436\u0434\u044b\u0439 \u043e\u0444\u0438\u0441 \u0431\u044b\u043b \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d \u0432 Active Directory (\u0434\u0430\u043b\u0435\u0435 \u043f\u043e \u0442\u0435\u043a\u0441\u0442\u0443 AD) \u043a\u0430\u043a Organization Unit (OU), \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0443\u0436\u0435 \u0437\u0430\u0432\u043e\u0434\u0438\u043b\u0438\u0441\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438.<\/p>\n<p>\u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0431\u044b\u043b\u043e \u0434\u0430\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0431\u044b\u0441\u0442\u0440\u043e \u0438 \u0431\u0435\u0437 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u044b\u0445 \u0443\u0441\u0438\u043b\u0438\u0439 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u043a\u043e\u043d\u0442\u0430\u043a\u0442\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0433\u043e \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\u0430 \u0438\u0437 AD, \u0430 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0445 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u043e\u0432 \u043e\u0441\u0432\u043e\u0431\u043e\u0434\u0438\u0442\u044c \u043e\u0442 \u0440\u0443\u0442\u0438\u043d\u044b \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u0433\u0440\u0430\u043b \u0440\u043e\u043b\u044c \u0430\u0434\u0440\u0435\u0441\u043d\u043e\u0439 \u043a\u043d\u0438\u0433\u0438.<br \/>\n<noindex><a rel=\"nofollow\" name=\"habracut\"><\/a><\/noindex><\/p>\n<p>\u0413\u043e\u0442\u043e\u0432\u044b\u0445 \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0438\u0445 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432 \u0434\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0438 \u043d\u0435 \u043d\u0430\u0448\u043b\u043e\u0441\u044c, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0434\u0435\u043b\u0430\u0442\u044c \u0432\u0441\u0451 \u0441\u0432\u043e\u0438\u043c\u0438 \u0440\u0443\u043a\u0430\u043c\u0438 \u0438 \u0433\u043e\u043b\u043e\u0432\u043e\u0439.<\/p>\n<p>\u041d\u0430\u0447\u043d\u0451\u043c \u0441 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0434\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0443\u0436\u043d\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0447\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c, \u044d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u2014 \u0438\u0442\u043e\u0433\u043e\u0432\u044b\u0439 \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0432\u0441\u0435\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c \u0434\u043e\u043c\u0435\u043d\u0430 \u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043e\u043c \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430. \u041f\u0435\u0440\u0432\u043e\u0435, \u0447\u0442\u043e \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442 \u043d\u0430 \u0443\u043c \u044d\u0442\u043e PHP \u0432 \u0441\u0432\u044f\u0437\u043a\u0435 \u0441 ldap, \u0438\u0445 \u0438 \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c. \u0411\u043e\u043b\u044c\u0448\u0438\u043c \u043f\u043b\u044e\u0441\u043e\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f PHP \u044f \u0441\u0447\u0438\u0442\u0430\u044e \u0435\u0433\u043e \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u0443 \u2014 \u043b\u044e\u0431\u043e\u0439 \u0445\u043e\u0442\u044c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e\u043d\u0438\u043c\u0430\u044e\u0449\u0438\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440 \u0441\u043c\u043e\u0436\u0435\u0442 \u0432\u043d\u0435\u0441\u0442\u0438, \u043f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438, \u043d\u0443\u0436\u043d\u044b\u0435 \u043f\u0440\u0430\u0432\u043a\u0438 \u0432 \u043a\u043e\u0434, \u043d\u0435 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043d\u0430\u043f\u0440\u044f\u0433\u0430\u044f\u0441\u044c.<\/p>\n<p>\u0418\u0442\u0430\u043a, \u043d\u0430\u0447\u043d\u0451\u043c. \u0434\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0437\u0430\u0434\u0430\u0434\u0438\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043a \u0434\u043e\u043c\u0435\u043d\u0443:<\/p>\n<pre><code class=\"php\">$srv =&quot;SERVER&quot;;\n$srv_domain =&quot;DOMAIN.COM&quot;;\n$srv_login =&quot;USERNAME@&quot;.$srv_domain; \n$srv_password =&quot;PASSWORD&quot;;\n<\/code><\/pre>\n<p>\n\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043f\u0443\u043d\u043a\u0442\u043e\u043c \u043d\u0443\u0436\u043d\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0432 \u043a\u0430\u043a\u043e\u043c OU \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043a\u0430\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439. \u0414\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e \u0431\u0443\u0434\u0435\u043c \u043f\u0435\u0440\u0435\u0445\u0432\u0430\u0442\u044b\u0432\u0430\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0438\u0437 $_GET[&#8216;place&#8217;]. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0435\u0441\u043b\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442 \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 <i><noindex><a rel=\"nofollow\" href=\"https:\/\/server\/index.php?place=\">server\/index.php?place=<\/a><\/noindex><b>first<\/b><\/i>, \u0442\u043e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 <b>$place<\/b> \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0438\u0441\u0432\u043e\u0435\u043d\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <b>first<\/b>.<\/p>\n<pre><code class=\"php\">$place = (@$_GET['place']);\n$doscript=true;\nswitch($place){ \ncase &quot;first&quot; :\n\t$dn =&quot;OU=ou1,OU=DOMAIN,dc=DOMAIN,dc=COM&quot;;\t\t\t\n\tbreak;\ncase &quot;second&quot;:\n\t$dn =&quot;OU=ou2,OU=DOMAIN,dc=DOMAIN,dc=COM&quot;;\t\t\t\n\tbreak;\n\t\/\/\u0437\u0434\u0435\u0441\u044c \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0435\u0449\u0451 \u0443\u0441\u043b\u043e\u0432\u0438\u0439.\ndefault:\n\t$doscript=false; \n\tbreak;\n}\nif (!$doscript) include &quot;main_table.html&quot;;\n<\/code><\/pre>\n<p>\n\u041f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f <b>$doscript<\/b> \u043d\u0443\u0436\u043d\u0430 \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u2014 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043b\u0438 \u043b\u0438 \u043c\u044b OU, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043a\u0430\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0438\u043b\u0438 \u043d\u0435\u0442. \u0415\u0441\u043b\u0438 \u043d\u0435 \u043d\u0430\u0448\u043b\u043e\u0441\u044c \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u0439, \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044b\u0445 \u0432 \u00abswitch-case\u00bb, \u0442\u043e $doscript=false, \u0433\u043b\u0430\u0432\u043d\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c\u0441\u044f \u043d\u0435 \u0431\u0443\u0434\u0435\u0442, \u0430 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0432\u0435\u0434\u0435\u043d\u0430 \u0441\u0442\u0430\u0440\u0442\u043e\u0432\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u00abmain_table.html\u00bb (\u043e \u043d\u0435\u0439 \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u0432 \u0441\u0430\u043c\u043e\u043c \u043a\u043e\u043d\u0446\u0435).<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0436\u0435 \u043c\u044b \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043b\u0438 OU, \u0442\u043e\u0433\u0434\u0430 \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0430\u0435\u043c \u043a \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0438\u043c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f\u043c: \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u043c \u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u0430:<\/p>\n<pre><code class=\"php\">else if ($doscript) {\n{echo &quot;\n&lt;!DOCTYPE html&gt; \n&lt;html xmlns='http:\/\/www.w3.org\/1999\/xhtml'&gt;\n&lt;head&gt;\n&lt;link rel='shortcut icon' href='ico.png'&gt;\n&lt;meta charset='windows-1251\/ '&gt;\n<\/code><\/pre>\n<p>\n\u0412\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0441\u0442\u0438\u043b\u0438 \u0434\u043b\u044f \u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u0438\u044f\u0442\u043d\u043e\u0433\u043e \u0432\u043d\u0435\u0448\u043d\u0435\u0433\u043e \u0432\u0438\u0434\u0430 (\u0434\u0430, \u0438\u0445 \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043a\u0430\u043a css-\u0444\u0430\u0439\u043b, \u043e\u0434\u043d\u0430\u043a\u043e \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u0435\u0440\u0441\u0438\u0438 IE \u043d\u0435 \u0445\u043e\u0442\u044f\u0442 \u0432\u043e\u0441\u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u0441\u0442\u0438\u043b\u0438, \u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0435 \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u044f\u043c\u043e \u0432 \u0441\u043a\u0440\u0438\u043f\u0442):<\/p>\n<pre><code class=\"php\">&lt;style&gt;\n\t*{text-align: center; font-family:tahoma; font-size:14px;}\n\ta{text-decoration: none; color: #000;}\n\ta:hover{text-decoration: underline; color: #0059FF;}\n\t#bold{text-decoration: none; font-weight: 600;font-size:20px;}\n\t#table,tr,td{border-style:solid;border-width:1px;\tborder-collapse:collapse;padding:5px; height:22px;border-color:#7d7d7d;}\n\t\/* \u041d\u0435\u0447\u0435\u0442\u043d\u044b\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 *\/#table tbody tr:nth-child(odd){background: #fff;}\n\t\/* \u0427\u0435\u0442\u043d\u044b\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 *\/   #table tbody tr:nth-child(even){background: #F7F7F7;}\t\n\t#noborder{border-width: 0 px; border-style: none;}\t\n\t#sp30px{text-indent: 30px;text-align: justify;}\n\t#smallsize{font-family:tahoma; text-indent: 5px; text-align:left; font-size:12px;}\n\t#top {background: #ffffff;\n\t\ttext-align: center;\n\t\tleft:0;\n\t\ttop:0px;\n\t\ttable-layout: fixed;\n\t\tborder-style:solid;\n\t\tborder-width:0px;\n\t\tborder-collapse:collapse;\n\t\tpadding:0px;\n\t\theight:22px;\n\t\tborder: 0px;\n\t\tz-index: 99999;\n\t\tdisplay:block;\n\t\twidth:80px;\n\t\topacity: 0.6;\n\t\tfilter: alpha(Opacity=60);\n\t\theight:100%;\n\t\tposition:fixed;}\n\t#top:hover{background: #afafaf;opacity: 100;filter: alpha(Opacity=100);text-decoration: none;color: #000000;}\n\t.smalltext{padding-top: 1px;\n\t\tpadding-bottom: 1px;\n\t\ttext-align: bottom;\n\t\tfont-family:tahoma;\n\t\tcolor: #a0a0a0;\n\t\tline-height: 7px;\n\t\tfont-size: 10px;}\n\t.smalltext:hover{color: #0000ff;}\t\t\n\t.transition-rotate {position: relative;\n\t\tz-index: 2;\n\t\tmargin: 0 auto;\n\t\tpadding: 5px;\n\t\ttext-align: center;\n\t\tmax-width: 500px;\n\t\tcursor: pointer;\n\t\ttransition: 0.1s linear;}\n\t.transition-rotate:hover {-webkit-transform: rotate(-2deg);\ttransform: rotate(-2deg);}\n\t#lineheight{\n\t\ttext-align: left;\n\t\tline-height: 1px;\n\t\ttext-decoration: none;\n\t\tfont-weight: 600;\n\t\tfont-size:20px;}\n&lt;\/style&gt;\n<\/code><\/pre>\n<p>\n\u0421\u043e \u0441\u0442\u0438\u043b\u044f\u043c\u0438 \u043f\u043e\u043a\u043e\u043d\u0447\u0435\u043d\u043e, \u0442\u0435\u043f\u0435\u0440\u044c \u043f\u0438\u0448\u0435\u043c \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0432\u043a\u043b\u0430\u0434\u043a\u0438 \u0438 \u0440\u0438\u0441\u0443\u0435\u043c \u0443\u0434\u043e\u0431\u043d\u0443\u044e \u0441\u0441\u044b\u043b\u043a\u0443 \u0432\u043e\u0437\u0432\u0440\u0430\u0442\u0430 \u043d\u0430 \u0433\u043b\u0430\u0432\u043d\u0443\u044e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443:<\/p>\n<pre><code class=\"php\">&lt;title&gt;Adressbook of &laquo;YourMegaCompanyName&raquo;&lt;\/title&gt;\t\n&lt;\/head&gt;\n&lt;body style='background-color:#ffffff;'&gt;&quot;;\n}\necho &quot;\n&lt;table id='top'&gt;&lt;tr&gt;&lt;td id='top'&gt;\n&lt;a href='index.php?place=main' id='top' &gt;\n&lt;br&gt;&lt;br&gt;&lt;br&gt;\n&lt;img src='back_to_main.png' alt='' border='0' width='75' height='60'\/&gt;\n&lt;p&gt;\u041d\u0430 \u0433\u043b\u0430\u0432\u043d\u0443\u044e&lt;\/p&gt;&lt;\/a&gt;\n&lt;\/td&gt;&lt;\/tr&gt;&lt;\/table&gt;\n&quot;;\n<\/code><\/pre>\n<p>\n\u041e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u043c \u043f\u043e\u0438\u0441\u043a\u043e\u0432\u044b\u0435 \u0444\u0438\u043b\u044c\u0442\u0440\u044b \u043f\u043e AD, \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u043e\u0431 OU:<\/p>\n<pre><code class=\"php\">$filter =&quot;(&(objectcategory=user)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))&quot;; \/\/\u0432\u0441\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438, \u043a\u0440\u043e\u043c\u0435 \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u044b\u0445.\n$filter2 =&quot;(objectCategory=OrganizationalUnit)&quot;; \/\/ \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e OU\n$ds=ldap_connect($srv);   \nif ($ds) { \n    $r=ldap_bind($ds,$srv_login,$srv_password);;     \n\tldap_set_option($ds,LDAP_OPT_REFERRALS, 0);\n\tldap_set_option($ds,LDAP_OPT_PROTOCOL_VERSION,3);\n\t$sr=ldap_search($ds,$dn ,$filter );   \n    ldap_sort($ds,$sr, &quot;givenname&quot;);\n    $info = ldap_get_entries($ds, $sr); \n    $sr2=ldap_search($ds,$dn ,$filter2 );   \n    $placeinfo = ldap_get_entries($ds, $sr2); \n$PlaceName = $placeinfo[0][&quot;l&quot;][0];  \t\t\t\/\/ name of place\n$PlaceAddres = $placeinfo[0][&quot;street&quot;][0];\t\t\/\/ address of place\n$PlaceMail = $placeinfo[0][&quot;description&quot;][0]; \t\/\/ mail of place\n$PlacePhone = $placeinfo[0][&quot;st&quot;][0]; \t\t\/\/ phone of plase\n<\/code><\/pre>\n<p>\n\u0414\u0430\u043b\u0435\u0435 \u043e\u0444\u043e\u0440\u043c\u043b\u044f\u0435\u043c \u0432\u0435\u0440\u0445\u043d\u044e\u044e \u0447\u0430\u0441\u0442\u044c \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b:<\/p>\n<pre><code class=\"php\">echo&quot;&lt;table align='center' height = '80'&gt;\n\t&lt;td id='noborder' &gt;&lt;div id='lineheight'&gt;&quot;. $PlaceName .&quot;&lt;\/div&gt;&lt;\/td&gt;&lt;\/tr&gt;\n\t&lt;tr&gt;&lt;td id='noborder' &gt;&quot;. $PlaceAddres .&quot;&lt;\/td&gt;&lt;\/tr&gt;\n    &lt;\/table&gt;\n&lt;table align='center' id='table'&gt;\n\t&lt;tr&gt;&lt;td width='35' bgcolor = #f0f0e4&gt;  \u2116 &lt;\/td&gt;\n\t&lt;td width='300' bgcolor = #f0f0e4&gt; Name &lt;\/td&gt;\n\t&lt;td width='250' bgcolor = #f0f0e4&gt; E-mail &lt;\/td&gt;\n\t&lt;td width='60' bgcolor = #f0f0e4&gt; Phone &lt;\/td&gt;\n\t&lt;td width='150' bgcolor = #f0f0e4&gt; Mobile &lt;\/td&gt;&lt;\/tr&gt;\n\t&lt;tr&gt;&lt;td&gt;&lt;\/td&gt;&lt;td&gt; \u0414\u0430\u043d\u043d\u044b\u0435 OU &lt;\/td&gt;&lt;td&gt;&quot;;\necho &quot;&lt;div class='transition-rotate'&gt;&lt;a href=mailto:&quot; . $PlaceMail .&quot;&gt;&quot; . $PlaceMail .&quot; &lt;\/a&gt;&lt;\/div&gt;&quot;;\necho &quot;&lt;\/td&gt;&lt;td width='150'&gt; &quot; . $PlacePhone .&quot; &lt;\/td&gt;&lt;td&gt; - &lt;\/td&gt;&lt;\/tr&gt;&quot;;\n<\/code><\/pre>\n<p>\n\u0414\u0430\u043b\u0435\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0432 \u0446\u0438\u043a\u043b\u0435 \u0438 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c, \u0447\u0442\u043e\u0431\u044b \u0441\u043a\u0440\u044b\u0442\u044c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0441\u043b\u0443\u0436\u0435\u0431\u043d\u044b\u0435) \u0443\u0447\u0451\u0442\u043d\u044b\u0435 \u0437\u0430\u043f\u0438\u0441\u0438, \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u00abhide\u00bb \u0432 \u043f\u043e\u043b\u0435 \u00ab\u043a\u043e\u043c\u043d\u0430\u0442\u0430\u00bb \u0432 \u0440\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u0430\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0432 AD, \u0442\u0430\u043a\u0438\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u043d\u0435 \u0431\u0443\u0434\u0443\u0442 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c\u0441\u044f \u0432 \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u0435:<\/p>\n<pre><code class=\"php\">for ($i=0; $i&lt;$info[&quot;count&quot;];$i++) { \n$UserHide = $info[$i][&quot;physicaldeliveryofficename&quot;][0];\nif ($UserHide != 'hide') {\n$UserName = $info[$i][&quot;cn&quot;][0];                \/\/\u0418\u043c\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\n$UserPosition = $info[$i][&quot;title&quot;][0]; \t\t\/\/ \u0414\u043e\u043b\u0436\u043d\u043e\u0441\u0442\u044c\n$UserMail = $info[$i][&quot;mail&quot;][0];\t\t\t\/\/mail\nif (!$UserMail)) $UserMail = &quot;-&quot;;                  \/\/\u0435\u0441\u043b\u0438 \u043d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445 \u043e \u044f\u0449\u0438\u043a\u0435 \u0432 AD, \u0442\u043e \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u043c \u043f\u0440\u043e\u0447\u0435\u0440\u043a\n$UserIpPhone = $info[$i][&quot;ipphone&quot;][0];\t\t\/\/ip phone\n\tif (!$UserIpPhone) $UserIpPhone = &quot;-&quot;;    \/\/\u0435\u0441\u043b\u0438 \u043d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445 \u043e \u044f\u0449\u0438\u043a\u0435 \u0432 AD, \u0442\u043e \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u043c \u043f\u0440\u043e\u0447\u0435\u0440\u043a\n$UserMobile = $info[$i][&quot;mobile&quot;][0];\t\t\/\/mobile\n\tif (!$UserMobile) $UserMobile = &quot;-&quot;;     \/\/\u0435\u0441\u043b\u0438 \u043d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445 \u043e \u044f\u0449\u0438\u043a\u0435 \u0432 AD, \u0442\u043e \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u043c \u043f\u0440\u043e\u0447\u0435\u0440\u043a\n<\/code><\/pre>\n<p>\n\u041a\u0441\u0442\u0430\u0442\u0438, \u0435\u0441\u043b\u0438 \u0432\u0430\u043c \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0430, \u0442\u043e \u043f\u043e\u043c\u043d\u0438\u0442\u0435 (\u044d\u0442\u043e \u0432\u0430\u0436\u043d\u043e):<br \/>\n<b>\u0432 \u0437\u0430\u043f\u0440\u043e\u0441\u0435 \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u043c \u0438\u043c\u044f \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0430 <u>\u0441\u0442\u0440\u043e\u0447\u043d\u044b\u043c\u0438 <\/u>\u0431\u0443\u043a\u0432\u0430\u043c\u0438<\/b>, \u0438\u043d\u0430\u0447\u0435 \u043d\u0435 \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442.<\/p>\n<p>\u0418 \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0443:<\/p>\n<pre><code class=\"php\">    echo &quot;&lt;tr&gt;\n\t&lt;td&gt;&quot;. $n+=1 .&quot;&lt;\/td&gt;\n\t&lt;td&gt; &quot;. $UserName .&quot;&lt;br&gt; &lt;div class='smalltext'&gt;&quot;. $UserPosition .&quot;&lt;\/div&gt;&lt;\/td&gt;&lt;td&gt;&quot;; \/\/\t\u0418\u043c\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0438 \u0434\u043e\u043b\u0436\u043d\u043e\u0441\u0442\u044c \n\tif ($UserMail !='-') echo &quot;&lt;div class='transition-rotate'&gt;&lt;a href=mailto:'$UserMail'&gt;$UserMail  &lt;\/a&gt;&lt;\/div&gt;&quot;;    \/\/ \u0435\u0441\u043b\u0438 \u0443 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0435\u0441\u0442\u044c e-mail \u0441\u043e\u0437\u0434\u0430\u0451\u043c \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0443 \u043f\u0438\u0441\u044c\u043c\u0430\n\telse echo &quot;-&quot;; \/\/\u0435\u0441\u043b\u0438 \u043d\u0435\u0442 e-mail - \u0441\u0442\u0430\u0432\u0438\u043c \u043f\u0440\u043e\u0447\u0435\u0440\u043a.\n \techo &quot;&lt;td&gt; &quot;. $UserIpPhone .&quot; &lt;\/td&gt;\n \t&lt;td&gt; &quot;. $UserMobile .&quot; &lt;\/td&gt;&lt;\/tr&gt;&quot;;\n\t}\n}\necho &quot;&lt;\/table&gt;&quot;;\n<\/code><\/pre>\n<p>\n\u0414\u0430\u043b\u0435\u0435 \u043c\u044b \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043f\u043e ldap, \u0438\u043b\u0438 \u0432\u044b\u0432\u043e\u0434\u0438\u043c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u043e \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043a \u0441\u0435\u0440\u0432\u0435\u0440\u0443:<\/p>\n<pre><code class=\"php\">ldap_close($ds); \n} \nelse echo &quot;&lt;h4&gt;Unable to connect to LDAP server&lt;\/h4&gt;&quot;; \necho '&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;\/body&gt;&lt;\/html&gt;';}\n<\/code><\/pre>\n<p>\n\u0424\u0430\u0439\u043b \u00abmain_table.html\u00bb \u0438\u0437\u043d\u0443\u0442\u0440\u0438 \u0441\u0435\u0431\u044f \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043f\u0440\u043e\u0441\u0442\u0443\u044e html \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0441 \u0441\u0441\u044b\u043b\u043a\u0430\u043c\u0438, \u0438 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a:<\/p>\n<pre><code class=\"php\">&lt;head&gt;\n&lt;link rel=&quot;shortcut icon&quot; href=&quot;ico.png&quot;\/&gt;\n&lt;meta charset=&quot;windows-1251&quot;\/&gt;\n&lt;title&gt;Adressbook of &laquo;YourMegaCompanyName&raquo;&lt;\/title&gt;\n&lt;\/head&gt;\n&lt;body style='background-color:#ffffff;'&gt;\n&lt;center&gt;&lt;a href=index.php&gt;&lt;IMG border=&quot;none&quot; src=&quot;logo.png&quot;\/&gt;&lt;\/a&gt;&lt;\/center&gt;\n&lt;center&gt;&lt;b&gt;Places and offices&lt;\/b&gt;&lt;\/center&gt;\n&lt;br&gt;\n&lt;table border=&quot;0&quot; width=&quot;450&quot; bgcolor=&quot;#dddddd&quot; align=&quot;center&quot; valign=&quot;middle&quot; CELLSPACING=&quot;0&quot;&gt;\n\n&lt;tr id=&quot;space&quot;&gt;&lt;td&gt;&lt;\/td&gt;&lt;\/tr&gt;\n&lt;tr&gt;&lt;td align=&quot;left&quot; id=&quot;abz&quot;&gt;&lt;a href=&quot;index.php?place=ou1&quot;&gt;OU1&lt;\/a&gt;&lt;\/td&gt;&lt;\/tr&gt;\n&lt;tr id=&quot;space&quot;&gt;&lt;td&gt;&lt;\/td&gt;&lt;\/tr&gt;\n&lt;tr&gt;&lt;td align=&quot;left&quot; id=&quot;abz&quot;&gt;&lt;a href=&quot;index.php?place=ou2&quot;&gt;OU2&lt;\/a&gt;&lt;\/td&gt;&lt;\/tr&gt;\n\n&lt;\/table&gt;&lt;\/body&gt;&lt;\/html&gt;\n<\/code><\/pre>\n<p>\n\u0415\u0441\u043b\u0438 \u043a\u043e\u043c\u0443-\u043b\u0438\u0431\u043e \u043f\u043e\u043c\u043e\u0436\u0435\u0442 \u043c\u043e\u0439 \u043a\u043e\u0434 \u2014 \u044f \u0431\u0443\u0434\u0443 \u0440\u0430\u0434, \u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435\u0441\u044c! <\/p>\n<p>\u0422\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u043a\u0430\u043a \u0432\u0430\u043c \u0443\u0433\u043e\u0434\u043d\u043e (\u0443\u043b\u0443\u0447\u0448\u0430\u0442\u044c\/\u0443\u0445\u0443\u0434\u0448\u0430\u0442\u044c) \u0438 \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u044f\u0442\u044c \u043b\u044e\u0431\u044b\u043c\u0438 \u043c\u0435\u0442\u043e\u0434\u0430\u043c\u0438. <\/p>\n<p>\u0421\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435!<br \/>\n<br \/>\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a: <a content=\"nofollow\" rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/post\/490690\/\">habr.com<\/a> <\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"<p>\u0422\u0430\u043a \u0441\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u0443 (\u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e) \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043a\u0430\u043c\u043f\u0430\u043d\u0438\u0438 \u0431\u044b\u043b\u043e \u043c\u043d\u043e\u0433\u043e \u043e\u0442\u0434\u0430\u043b\u0451\u043d\u043d\u044b\u0445 \u043e\u0444\u0438\u0441\u043e\u0432, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043d\u0430\u0445\u043e\u0434\u0438\u043b\u043e\u0441\u044c \u043f\u0440\u0438\u043b\u0438\u0447\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439. \u0412\u0441\u0435 \u043e\u0444\u0438\u0441\u044b \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u044b \u0432 \u043e\u0434\u043d\u0443 \u0441\u0435\u0442\u044c \u0441 \u043e\u0431\u0449\u0438\u043c \u0434\u043e\u043c\u0435\u043d\u043e\u043c, \u043a\u0430\u0436\u0434\u044b\u0439 \u043e\u0444\u0438\u0441 \u0431\u044b\u043b \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d \u0432 Active Directory (\u0434\u0430\u043b\u0435\u0435 \u043f\u043e \u0442\u0435\u043a\u0441\u0442\u0443 AD) \u043a\u0430\u043a Organization Unit (OU), \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0443\u0436\u0435 \u0437\u0430\u0432\u043e\u0434\u0438\u043b\u0438\u0441\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438. \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0431\u044b\u043b\u043e \u0434\u0430\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0431\u044b\u0441\u0442\u0440\u043e \u0438 \u0431\u0435\u0437 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u044b\u0445 [&hellip;]<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[688],"tags":[],"class_list":["post-72722","post","type-post","status-publish","format-standard","hentry","category-administrirovanie"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u0422\u0430\u043a \u0441\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u0443 (\u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e) \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043a\u0430\u043c\u043f\u0430\u043d\u0438\u0438 \u0431\u044b\u043b\u043e \u043c\u043d\u043e\u0433\u043e \u043e\u0442\u0434\u0430\u043b\u0451\u043d\u043d\u044b\u0445 \u043e\u0444\u0438\u0441\u043e\u0432, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043d\u0430\u0445\u043e\u0434\u0438\u043b\u043e\u0441\u044c \u043f\u0440\u0438\u043b\u0438\u0447\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439. \u0412\u0441\u0435 \u043e\u0444\u0438\u0441\u044b \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u044b \u0432 \u043e\u0434\u043d\u0443 \u0441\u0435\u0442\u044c \u0441 \u043e\u0431\u0449\u0438\u043c \u0434\u043e\u043c\u0435\u043d\u043e\u043c, \u043a\u0430\u0436\u0434\u044b\u0439 \u043e\u0444\u0438\u0441 \u0431\u044b\u043b \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d \u0432 Active Directory (\u0434\u0430\u043b\u0435\u0435 \u043f\u043e \u0442\u0435\u043a\u0441\u0442\u0443 AD) \u043a\u0430\u043a Organization Unit (OU), \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0443\u0436\u0435 \u0437\u0430\u0432\u043e\u0434\u0438\u043b\u0438\u0441\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438. \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0431\u044b\u043b\u043e \u0434\u0430\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0431\u044b\u0441\u0442\u0440\u043e \u0438 \u0431\u0435\u0437 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u044b\u0445\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Yuri Gagarin\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/prohoster.info\/it\/blog\/administrirovanie\/sozdayom-web-adresnyj-spravochnik-php-ldap\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<meta property=\"og:locale\" content=\"it_IT\" \/>\n\t\t<meta property=\"og:site_name\" content=\"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\ud83e\udd47\u0421\u043e\u0437\u0434\u0430\u0451\u043c WEB \u0430\u0434\u0440\u0435\u0441\u043d\u044b\u0439 \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a PHP + LDAP | ProHoster\" \/>\n\t\t<meta property=\"og:description\" content=\"\u0422\u0430\u043a \u0441\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u0443 (\u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e) \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043a\u0430\u043c\u043f\u0430\u043d\u0438\u0438 \u0431\u044b\u043b\u043e \u043c\u043d\u043e\u0433\u043e \u043e\u0442\u0434\u0430\u043b\u0451\u043d\u043d\u044b\u0445 \u043e\u0444\u0438\u0441\u043e\u0432, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043d\u0430\u0445\u043e\u0434\u0438\u043b\u043e\u0441\u044c \u043f\u0440\u0438\u043b\u0438\u0447\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439. \u0412\u0441\u0435 \u043e\u0444\u0438\u0441\u044b \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u044b \u0432 \u043e\u0434\u043d\u0443 \u0441\u0435\u0442\u044c \u0441 \u043e\u0431\u0449\u0438\u043c \u0434\u043e\u043c\u0435\u043d\u043e\u043c, \u043a\u0430\u0436\u0434\u044b\u0439 \u043e\u0444\u0438\u0441 \u0431\u044b\u043b \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d \u0432 Active Directory (\u0434\u0430\u043b\u0435\u0435 \u043f\u043e \u0442\u0435\u043a\u0441\u0442\u0443 AD) \u043a\u0430\u043a Organization Unit (OU), \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0443\u0436\u0435 \u0437\u0430\u0432\u043e\u0434\u0438\u043b\u0438\u0441\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438. \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0431\u044b\u043b\u043e \u0434\u0430\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0431\u044b\u0441\u0442\u0440\u043e \u0438 \u0431\u0435\u0437 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u044b\u0445\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/prohoster.info\/it\/blog\/administrirovanie\/sozdayom-web-adresnyj-spravochnik-php-ldap\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"350\" \/>\n\t\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2020-03-03T17:42:21+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2020-03-03T17:42:21+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\ud83e\udd47\u0421\u043e\u0437\u0434\u0430\u0451\u043c WEB \u0430\u0434\u0440\u0435\u0441\u043d\u044b\u0439 \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a PHP + LDAP | ProHoster","description":"\u0422\u0430\u043a \u0441\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u0443 (\u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e) \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043a\u0430\u043c\u043f\u0430\u043d\u0438\u0438 \u0431\u044b\u043b\u043e \u043c\u043d\u043e\u0433\u043e \u043e\u0442\u0434\u0430\u043b\u0451\u043d\u043d\u044b\u0445 \u043e\u0444\u0438\u0441\u043e\u0432, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043d\u0430\u0445\u043e\u0434\u0438\u043b\u043e\u0441\u044c \u043f\u0440\u0438\u043b\u0438\u0447\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439. \u0412\u0441\u0435 \u043e\u0444\u0438\u0441\u044b \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u044b \u0432 \u043e\u0434\u043d\u0443 \u0441\u0435\u0442\u044c \u0441 \u043e\u0431\u0449\u0438\u043c \u0434\u043e\u043c\u0435\u043d\u043e\u043c, \u043a\u0430\u0436\u0434\u044b\u0439 \u043e\u0444\u0438\u0441 \u0431\u044b\u043b \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d \u0432 Active Directory (\u0434\u0430\u043b\u0435\u0435 \u043f\u043e \u0442\u0435\u043a\u0441\u0442\u0443 AD) \u043a\u0430\u043a Organization Unit (OU), \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0443\u0436\u0435 \u0437\u0430\u0432\u043e\u0434\u0438\u043b\u0438\u0441\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438. \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0431\u044b\u043b\u043e \u0434\u0430\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0431\u044b\u0441\u0442\u0440\u043e \u0438 \u0431\u0435\u0437 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u044b\u0445","canonical_url":"https:\/\/prohoster.info\/it\/blog\/administrirovanie\/sozdayom-web-adresnyj-spravochnik-php-ldap","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"it_IT","og:site_name":"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b","og:type":"article","og:title":"\ud83e\udd47\u0421\u043e\u0437\u0434\u0430\u0451\u043c WEB \u0430\u0434\u0440\u0435\u0441\u043d\u044b\u0439 \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a PHP + LDAP | ProHoster","og:description":"\u0422\u0430\u043a \u0441\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u0443 (\u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e) \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043a\u0430\u043c\u043f\u0430\u043d\u0438\u0438 \u0431\u044b\u043b\u043e \u043c\u043d\u043e\u0433\u043e \u043e\u0442\u0434\u0430\u043b\u0451\u043d\u043d\u044b\u0445 \u043e\u0444\u0438\u0441\u043e\u0432, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043d\u0430\u0445\u043e\u0434\u0438\u043b\u043e\u0441\u044c \u043f\u0440\u0438\u043b\u0438\u0447\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439. \u0412\u0441\u0435 \u043e\u0444\u0438\u0441\u044b \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u044b \u0432 \u043e\u0434\u043d\u0443 \u0441\u0435\u0442\u044c \u0441 \u043e\u0431\u0449\u0438\u043c \u0434\u043e\u043c\u0435\u043d\u043e\u043c, \u043a\u0430\u0436\u0434\u044b\u0439 \u043e\u0444\u0438\u0441 \u0431\u044b\u043b \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d \u0432 Active Directory (\u0434\u0430\u043b\u0435\u0435 \u043f\u043e \u0442\u0435\u043a\u0441\u0442\u0443 AD) \u043a\u0430\u043a Organization Unit (OU), \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0443\u0436\u0435 \u0437\u0430\u0432\u043e\u0434\u0438\u043b\u0438\u0441\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438. \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0431\u044b\u043b\u043e \u0434\u0430\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0431\u044b\u0441\u0442\u0440\u043e \u0438 \u0431\u0435\u0437 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u044b\u0445","og:url":"https:\/\/prohoster.info\/it\/blog\/administrirovanie\/sozdayom-web-adresnyj-spravochnik-php-ldap","og:image":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:secure_url":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:width":350,"og:image:height":350,"article:published_time":"2020-03-03T17:42:21+00:00","article:modified_time":"2020-03-03T17:42:21+00:00","article:publisher":"https:\/\/www.facebook.com\/prohoster","article:author":"https:\/\/www.facebook.com\/prohoster"},"aioseo_meta_data":{"post_id":"72722","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"seo_analyzer_scan_date":null,"breadcrumb_settings":null,"limit_modified_date":false,"reviewed_by":null,"ai":null,"created":"2021-02-28 18:46:22","updated":"2022-09-28 18:42:08"},"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/prohoster.info\/it\/wp-json\/wp\/v2\/posts\/72722","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/it\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/it\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/it\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/it\/wp-json\/wp\/v2\/comments?post=72722"}],"version-history":[{"count":0,"href":"https:\/\/prohoster.info\/it\/wp-json\/wp\/v2\/posts\/72722\/revisions"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/it\/wp-json\/wp\/v2\/media?parent=72722"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/it\/wp-json\/wp\/v2\/categories?post=72722"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/it\/wp-json\/wp\/v2\/tags?post=72722"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}