{"id":3079,"date":"2021-07-22T08:20:03","date_gmt":"2021-07-22T08:20:03","guid":{"rendered":"https:\/\/www.bearloga.space\/?page_id=3079"},"modified":"2021-07-22T08:20:04","modified_gmt":"2021-07-22T08:20:04","slug":"ustanovite-i-nastrojte-open-ldap","status":"publish","type":"page","link":"https:\/\/www.bearloga.space\/uk\/ustanovite-i-nastrojte-open-ldap\/","title":{"rendered":"\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u0442\u0435 Open LDAP"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">LDAP, \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0439 \u043a\u0430\u043a&nbsp;<strong>\u043e\u0431\u043b\u0435\u0433\u0447\u0435\u043d\u043d\u044b\u0439 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430\u043c,<\/strong>&nbsp;\u2014 \u044d\u0442\u043e \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0439 \u0434\u043b\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430\u043c \u0443\u0441\u043b\u0443\u0433 X.500 \u0432\u043d\u0443\u0442\u0440\u0438 \u043f\u0440\u0435\u0434\u043f\u0440\u0438\u044f\u0442\u0438\u044f, \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u043c \u0438\u0437 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430.&nbsp;\u0422\u0435, \u043a\u0442\u043e \u0437\u043d\u0430\u043a\u043e\u043c \u0441 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c Windows Server, \u043c\u043e\u0433\u0443\u0442 \u0441\u0447\u0438\u0442\u0430\u0442\u044c LDAP \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u0445\u043e\u0436\u0438\u043c \u043f\u043e \u0441\u0432\u043e\u0435\u0439 \u043f\u0440\u0438\u0440\u043e\u0434\u0435 \u043d\u0430 Active Directory.&nbsp;\u042d\u0442\u043e \u0434\u0430\u0436\u0435 \u0448\u0438\u0440\u043e\u043a\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0430\u044f \u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u044f \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u0440\u0430\u0431\u043e\u0447\u0438\u0445 \u0441\u0442\u0430\u043d\u0446\u0438\u0439 Windows \u0432 \u043f\u0440\u0435\u0434\u043f\u0440\u0438\u044f\u0442\u0438\u0435 OpenLDAP CentOS.&nbsp;\u0421 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b, \u0440\u0430\u0431\u043e\u0447\u0430\u044f \u0441\u0442\u0430\u043d\u0446\u0438\u044f CentOS Linux \u043c\u043e\u0436\u0435\u0442 \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0440\u0435\u0441\u0443\u0440\u0441\u044b \u0438 \u0443\u0447\u0430\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0441 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u043c\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u044f\u043c\u0438 \u0432 \u0434\u043e\u043c\u0435\u043d\u0435 Windows.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0420\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u0435 LDAP \u0432 CentOS \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0430\u0433\u0435\u043d\u0442\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u043e\u0432, \u0430\u0433\u0435\u043d\u0442\u0430 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u043e\u0432 \u0438\u043b\u0438 DSA (\u0432\u0441\u0435 \u044d\u0442\u0438 \u0441\u043e\u043a\u0440\u0430\u0449\u0435\u043d\u0438\u044f \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b) \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e \u0431\u043e\u043b\u0435\u0435 \u0440\u0430\u043d\u043d\u0438\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430\u043c Novell Netware \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0434\u0435\u0440\u0435\u0432\u0430 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u043e\u0432 \u0441 NDS.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u041a\u0440\u0430\u0442\u043a\u0430\u044f \u0438\u0441\u0442\u043e\u0440\u0438\u044f LDAP<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">LDAP \u0431\u044b\u043b \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u0441\u043e\u0437\u0434\u0430\u043d \u043a\u0430\u043a \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430\u043c X.500 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u0440\u043f\u043e\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u0445 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432.&nbsp;\u0418 X.500, \u0438 LDAP \u0438\u043c\u0435\u044e\u0442 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0435 \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a\u0438 \u0438 \u043d\u0430\u0441\u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0445\u043e\u0436\u0438, \u0447\u0442\u043e \u043a\u043b\u0438\u0435\u043d\u0442\u044b LDAP \u043c\u043e\u0433\u0443\u0442 \u043e\u0431\u0440\u0430\u0449\u0430\u0442\u044c\u0441\u044f \u043a \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430\u043c X.500 \u0441 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u043f\u043e\u043c\u043e\u0449\u043d\u0438\u043a\u0430\u043c\u0438.&nbsp;\u0425\u043e\u0442\u044f LDAP \u0442\u0430\u043a\u0436\u0435 \u0438\u043c\u0435\u0435\u0442 \u0441\u0432\u043e\u0439 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u043e\u0432 \u043f\u043e\u0434 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c&nbsp;<strong>slapd<\/strong>&nbsp;.&nbsp;\u041e\u0441\u043d\u043e\u0432\u043d\u043e\u0435 \u0440\u0430\u0437\u043b\u0438\u0447\u0438\u0435 \u043c\u0435\u0436\u0434\u0443&nbsp;<em>LDAP<\/em>&nbsp;\u0438&nbsp;<em>DAP<\/em>&nbsp;\u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043e\u0431\u043b\u0435\u0433\u0447\u0435\u043d\u043d\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0430 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0447\u0435\u0440\u0435\u0437 TCP.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0412 \u0442\u043e \u0432\u0440\u0435\u043c\u044f \u043a\u0430\u043a&nbsp;<em>DAP<\/em>&nbsp;\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u043f\u043e\u043b\u043d\u0443\u044e \u043c\u043e\u0434\u0435\u043b\u044c OSI.&nbsp;\u0421 \u043f\u043e\u044f\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430, TCP \/ IP \u0438 Ethernet \u0432 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0441\u0435\u0442\u044f\u0445 \u0440\u0435\u0434\u043a\u043e \u043c\u043e\u0436\u043d\u043e \u0432\u0441\u0442\u0440\u0435\u0442\u0438\u0442\u044c \u0438\u043c\u043f\u043b\u0430\u043d\u0442\u0430\u0446\u0438\u044e \u0441\u043b\u0443\u0436\u0431 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u043e\u0432, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0449\u0443\u044e \u043a\u0430\u043a DAP, \u0442\u0430\u043a \u0438 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u043a\u043e\u0440\u043f\u043e\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u0435 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0438 X.500, \u0432\u044b\u0445\u043e\u0434\u044f\u0449\u0438\u0435 \u0437\u0430 \u0440\u0430\u043c\u043a\u0438 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0445 \u043c\u043e\u0434\u0435\u043b\u0435\u0439 \u0443\u0441\u0442\u0430\u0440\u0435\u0432\u0448\u0438\u0445 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0439.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0435 \u0441 openldap \u0434\u043b\u044f CentOS Linux:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><th>OpenLDAP<\/th><th>\u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 LDAP<\/th><\/tr><tr><td>OpenLDAP-\u0441\u0435\u0440\u0432\u0435\u0440<\/td><td>\u0421\u0435\u0440\u0432\u0435\u0440 LDAP<\/td><\/tr><tr><td>OpenLDAP-\u043a\u043b\u0438\u0435\u043d\u0442\u044b<\/td><td>\u041a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u0438\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 LDAP<\/td><\/tr><tr><td>OpenLDAP-\u0440\u0430\u0437\u0432\u0438<\/td><td>\u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0434\u043b\u044f OpenLDAP<\/td><\/tr><tr><td>\u041a\u043e\u043c\u043f\u0430\u0439-OpenLDAP<\/td><td>\u041e\u0431\u0449\u0438\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 OpenLDAP<\/td><\/tr><tr><td>Slapd<\/td><td>\u0421\u0435\u0440\u0432\u0435\u0440 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u043e\u0432 \u0434\u0435\u043c\u043e\u043d OpenLDAP<\/td><\/tr><tr><td>Slurpd<\/td><td>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0440\u0435\u043f\u043b\u0438\u043a\u0430\u0446\u0438\u0438 LDAP \u0447\u0435\u0440\u0435\u0437 \u0434\u043e\u043c\u0435\u043d \u043f\u0440\u0435\u0434\u043f\u0440\u0438\u044f\u0442\u0438\u044f<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435.<\/strong>&nbsp;\u041f\u0440\u0438 \u043d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0438 \u043f\u0440\u0435\u0434\u043f\u0440\u0438\u044f\u0442\u0438\u044f \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c&nbsp;<strong><em>\u0434\u043e\u043c\u0435\u043d<\/em><\/strong>&nbsp;\u0432\u0435\u0440\u0445\u043d\u0435\u0433\u043e \u0443\u0440\u043e\u0432\u043d\u044f&nbsp;<strong><em>.local<\/em><\/strong>&nbsp;.&nbsp;\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435&nbsp;<em>.net<\/em>&nbsp;\u0438\u043b\u0438&nbsp;<em>.com<\/em>&nbsp;\u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u0437\u0432\u0430\u0442\u044c \u0442\u0440\u0443\u0434\u043d\u043e\u0441\u0442\u0438 \u043f\u0440\u0438 \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u0438 \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0438 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0435\u0433\u043e \u0434\u043e\u043c\u0435\u043d\u0430.&nbsp;\u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u0441\u0435\u0431\u0435 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u0440\u0430\u0431\u043e\u0442\u0443 \u0434\u043b\u044f \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0449\u0435\u0439&nbsp;<em>acme.com<\/em>&nbsp;\u0434\u043b\u044f \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0445 \u0438 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439.&nbsp;\u0421\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0446\u0435\u043b\u0435\u0441\u043e\u043e\u0431\u0440\u0430\u0437\u043d\u043e \u0438\u043c\u0435\u0442\u044c \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u0440\u0435\u0441\u0443\u0440\u0441\u044b, \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u043c\u044b\u0435&nbsp;<em>acme.com<\/em>&nbsp;\u0438\u043b\u0438&nbsp;<em>acme.net<\/em>&nbsp;.&nbsp;\u0417\u0430\u0442\u0435\u043c \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0435 \u0441\u0435\u0442\u0435\u0432\u044b\u0435 \u043a\u043e\u0440\u043f\u043e\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u044b \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u044e\u0442\u0441\u044f \u043a\u0430\u043a&nbsp;<em>acme.local<\/em>&nbsp;.&nbsp;\u042d\u0442\u043e \u043f\u043e\u0432\u043b\u0435\u0447\u0435\u0442 \u0437\u0430 \u0441\u043e\u0431\u043e\u0439 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443 \u0437\u0430\u043f\u0438\u0441\u0435\u0439 DNS, \u043d\u043e \u0437\u0430\u043f\u043b\u0430\u0442\u0438\u0442 \u0437\u0430 \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u0443, \u043a\u0440\u0430\u0441\u043d\u043e\u0440\u0435\u0447\u0438\u0435 \u0438 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u044c.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 Open LDAP \u043d\u0430 CentOS<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 openldap, openldap-\u0441\u0435\u0440\u0432\u0435\u0440\u044b, openldap-\u043a\u043b\u0438\u0435\u043d\u0442\u044b \u0438 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0435&nbsp;<em>\u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b<\/em>&nbsp;\u0438\u0437&nbsp;<em>YUM<\/em>&nbsp;.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[root@localhost]# yum -y install openldap openldap-servers openldap-clients\nmigration tools\n Loaded plugins: fastestmirror, langpacks\n updates\n | 3.4 kB  00:00:00\n updates\/7\/x86_64\/primary_db\n | 2.2 MB  00:00:05\n Determining fastest mirrors\n (1\/2): extras\/7\/x86_64\/primary_db\n | 121 kB  00:00:01\n (2\/2): base\/7\/x86_64\/primary_db\n | 5.6 MB  00:00:16\n Package openldap-2.4.40-13.el7.x86_64 already installed and latest version\n Resolving Dependencies\n --&gt; Running transaction check\n ---&gt; Package openldap-clients.x86_64 0:2.4.40-13.el7 will be installed\n ---&gt; Package openldap-servers.x86_64 0:2.4.40-13.el7 will be installed\n --&gt; Finished Dependency Resolution\n base\/7\/x86_64\/group_gz\n | 155 kB  00:00:00\n \n Dependencies Resolved\n \n=============================================================================== \n=============================================================================== \nPackage                                Arch\nVersion                             Repository                        Size \n=============================================================================== \n=============================================================================== \nInstalling: \nopenldap-clients                    x86_64\n2.4.40-13.el7                    base                                 188 k \nopenldap-servers                    x86_64\n2.4.40-13.el7                    base                                 2.1 M  \n\nTransaction Summary \n=============================================================================== \n===============================================================================\nInstall  2 Packages\n\nTotal download size: 2.3 M \nInstalled size: 5.3 M \nDownloading packages:\n\nInstalled: \nopenldap-clients.x86_64 0:2.4.40-13.el7                                       \nopenldap-servers.x86_64 0:2.4.40-13.el7                                       \nComplete! \n[root@localhost]#\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0422\u0435\u043f\u0435\u0440\u044c \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u0438&nbsp;<em>\u0432\u043a\u043b\u044e\u0447\u0438\u043c<\/em>&nbsp;\u0441\u0435\u0440\u0432\u0438\u0441&nbsp;<em>slapd<\/em>&nbsp;\u2014<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[root@centos]# systemctl start slapd \n[root@centos]# systemctl enable  slapd\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><em>\u0422\u0435\u043f\u0435\u0440\u044c<\/em>&nbsp;\u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0443\u0431\u0435\u0434\u0438\u043c\u0441\u044f, \u0447\u0442\u043e \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430&nbsp;<em>openldap<\/em>&nbsp;\u0432&nbsp;<em>\/ etc \/ openldap<\/em>&nbsp;.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">root@localhost]# ls \/etc\/openldap\/ \ncerts  check_password.conf  ldap.conf  schema  slapd.d\n[root@localhost]#\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0417\u0430\u0442\u0435\u043c \u0443\u0431\u0435\u0434\u0438\u0442\u0435\u0441\u044c, \u0447\u0442\u043e \u043d\u0430\u0448 \u0441\u0435\u0440\u0432\u0438\u0441 slapd \u0437\u0430\u043f\u0443\u0449\u0435\u043d.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">root@centos]# netstat -antup | grep slapd\ntcp        0      0 0.0.0.0:389            0.0.0.0:*              LISTEN      1641\/slapd\ntcp6       0      0 :::389                 :::*                   LISTEN      1641\/slapd\n \n[root@centos]#\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0414\u0430\u043b\u0435\u0435, \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043c \u043d\u0430\u0448\u0443 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443&nbsp;<em>Open LDAP<\/em>&nbsp;.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0423\u0431\u0435\u0434\u0438\u0442\u0435\u0441\u044c, \u0447\u0442\u043e \u043d\u0430\u0448 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c&nbsp;<em>ldap<\/em>&nbsp;\u0441\u043e\u0437\u0434\u0430\u043d.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[root@localhost]# id ldap \nuid=55(ldap) gid=55(ldap) groups=55(ldap)\n[root@localhost]#\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0421\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u043d\u0430\u0448\u0438 \u0443\u0447\u0435\u0442\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 LDAP.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[root@localhost]# slappasswd  \nNew password:  \nRe-enter new password:  \n{SSHA}20RSyjVv6S6r43DFPeJgASDLlLoSU8g.a10\n\n[root@localhost]#\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><em>\u041d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0432\u044b\u0432\u043e\u0434 \u0438\u0437 slappasswd.<\/em><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u041d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c Open LDAP<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u0428\u0430\u0433 1<\/strong>&nbsp;\u2014 \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u0442\u0435 LDAP \u0434\u043b\u044f \u0434\u043e\u043c\u0435\u043d\u0430 \u0438 \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0412\u043e-\u043f\u0435\u0440\u0432\u044b\u0445, \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043d\u0430\u0448\u0443 \u0441\u0440\u0435\u0434\u0443 openLDAP.&nbsp;\u041d\u0438\u0436\u0435 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d \u0448\u0430\u0431\u043b\u043e\u043d \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0441 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439&nbsp;<em>ldapmodify<\/em>&nbsp;.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">dn: olcDatabase={2}hdb,cn=config \nchangetype: modify \nreplace: olcSuffix \nolcSuffix: dc=vmnet,dc=local \ndn: olcDatabase = {2}hdb,cn=config \nchangetype: modify \nreplace: olcRootDN \nolcRootDN: cn=ldapadm,dc=vmnet,dc=local \ndn: olcDatabase = {2}hdb,cn=config \nchangetype: modify \nreplace: olcRootPW \nolcRootPW: &lt;output from slap\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0412\u043d\u0435\u0441\u0438\u0442\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 \/etc\/openldap\/slapd.d\/cn=config\/olcDatabase = {1} monitor.ldif \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u044b ldapmodify.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[root@localhost]# ldapmodify -Y EXTERNAL -H ldapi:\/\/\/ -f \/home\/rdc\/Documents\/db.ldif  \nSASL\/EXTERNAL authentication started \nSASL username: gidNumber = 0+uidNumber = 0,cn=peercred,cn=external,cn=auth \nSASL SSF: 0 \nmodifying entry \"olcDatabase = {2}hdb,cn=config\" \nmodifying entry \"olcDatabase = {2}hdb,cn=config\" \nmodifying entry \"olcDatabase = {2}hdb,cn=config\" \n\n[root@localhost cn=config]#\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u043d\u0443\u044e \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e LDAP.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">root@linux1 ~]# vi \/etc\/openldap\/slapd.d\/cn=config\/olcDatabase={2}hdb.ldif\n\n[root@centos]# cat \/etc\/openldap\/slapd.d\/cn\\=config\/olcDatabase\\=\\{2\\}hdb.ldif\n # AUTO-GENERATED FILE - DO NOT EDIT!! Use ldapmodify. \n # CRC32 a163f14c\ndn: olcDatabase = {2}hdb\nobjectClass: olcDatabaseConfig\nobjectClass: olcHdbConfig\nolcDatabase: {2}hdb\nolcDbDirectory: \/var\/lib\/ldap\nolcDbIndex: objectClass eq,pres\nolcDbIndex: ou,cn,mail,surname,givenname eq,pres,sub\nstructuralObjectClass: olcHdbConfig\nentryUUID: 1bd9aa2a-8516-1036-934b-f7eac1189139\ncreatorsName: cn=config\ncreateTimestamp: 20170212022422Z\nolcSuffix: dc=vmnet,dc=local\nolcRootDN: cn=ldapadm,dc=vmnet,dc=local\nolcRootPW:: e1NTSEF1bUVyb1VzZTRjc2dkYVdGaDY0T0k = \nentryCSN: 20170215204423.726622Z#000000#000#000000 \nmodifiersName: gidNumber = 0+uidNumber = 0,cn=peercred,cn=external,cn=auth\nmodifyTimestamp: 20170215204423Z\n\n[root@centos]#\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u041a\u0430\u043a \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u0438\u0434\u0435\u0442\u044c, \u043d\u0430\u0448\u0438 \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 LDAP \u043f\u0440\u0435\u0434\u043f\u0440\u0438\u044f\u0442\u0438\u044f \u0431\u044b\u043b\u0438 \u0443\u0441\u043f\u0435\u0448\u043d\u044b\u043c\u0438.<a href=\"https:\/\/go.acstat.com\/338604f0f4238d20?wid=780&amp;pid=279&amp;dl=https%3A%2F%2Fskillbox.ru%2Fcourse%2Fprofession-java%2F&amp;sid=40113cf0-e4cc-d9b5-25d0-72c2c46410cf\" target=\"_blank\" rel=\"noopener\">\u00a0<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0414\u0430\u043b\u0435\u0435 \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0441\u0430\u043c\u043e\u0437\u0430\u0432\u0435\u0440\u044f\u044e\u0449\u0438\u0439 ssl-\u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442 \u0434\u043b\u044f OpenLDAP.&nbsp;\u042d\u0442\u043e \u0437\u0430\u0449\u0438\u0442\u0438\u0442 \u0441\u0432\u044f\u0437\u044c \u043c\u0435\u0436\u0434\u0443 \u043a\u043e\u0440\u043f\u043e\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c \u0438 \u043a\u043b\u0438\u0435\u043d\u0442\u0430\u043c\u0438.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u0428\u0430\u0433 2<\/strong>&nbsp;\u2014 \u0421\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u0441\u0430\u043c\u043e\u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0439 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442 \u0434\u043b\u044f OpenLDAP.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u041c\u044b \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c&nbsp;<em>openssl<\/em>&nbsp;\u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f ssl-\u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430 \u0441 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0439 \u043f\u043e\u0434\u043f\u0438\u0441\u044c\u044e.&nbsp;\u041f\u0435\u0440\u0435\u0439\u0434\u0438\u0442\u0435 \u043a \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0433\u043b\u0430\u0432\u0435 \u00ab&nbsp;<strong>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430 SSL LDAP \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e openssl\u00bb,<\/strong>&nbsp;\u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u043f\u043e \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u044e \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 \u0441\u0432\u044f\u0437\u0438 \u0441 OpenLDAP.&nbsp;\u0417\u0430\u0442\u0435\u043c, \u043a\u043e\u0433\u0434\u0430 SSL-\u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u044b \u0431\u0443\u0434\u0443\u0442 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u044b, \u043c\u044b \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u043c \u043d\u0430\u0448\u0443 \u043a\u043e\u0440\u043f\u043e\u0440\u0430\u0442\u0438\u0432\u043d\u0443\u044e \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e OpenLDAP.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u0428\u0430\u0433 3<\/strong>&nbsp;\u2014 \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u0442\u0435 OpenLDAP \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0439 \u0441\u0432\u044f\u0437\u0438 \u0441 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u043c.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0421\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u0444\u0430\u0439\u043b&nbsp;<em>certs.ldif<\/em>&nbsp;\u0432&nbsp;<em>vim<\/em>&nbsp;\u0441\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0435\u0439 \u2014<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">dn: cn=config\nchangetype: modify\nreplace: olcTLSCertificateFile\nolcTLSCertificateFile: \/etc\/openldap\/certs\/yourGeneratedCertFile.pem\n\ndn: cn=config\nchangetype: modify\nreplace: olcTLSCertificateKeyFile\nolcTLSCertificateKeyFile: \/etc\/openldap\/certs\/youGeneratedKeyFile.pem\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0417\u0430\u0442\u0435\u043c \u0441\u043d\u043e\u0432\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u0443&nbsp;<em>ldapmodify<\/em>&nbsp;\u0434\u043b\u044f \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e OpenLDAP.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[root@centos rdc]# ldapmodify -Y EXTERNAL  -H ldapi:\/\/\/ -f certs.ldif\nSASL\/EXTERNAL authentication started\nSASL username: gidNumber = 0+uidNumber = 0,cn=peercred,cn=external,cn=auth\nSASL SSF: 0\nmodifying entry \"cn=config\"\n\n[root@centos]#\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u041d\u0430\u043a\u043e\u043d\u0435\u0446, \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043c \u043d\u0430\u0448\u0443 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e OpenLADP.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[root@centos]# slaptest -u \nconfig file testing succeeded \n[root@centos]#\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u0428\u0430\u0433 4<\/strong>&nbsp;\u2014 \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u0442\u0435 \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 slapd.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">cp \/usr\/share\/openldap-servers\/DB_CONFIG.example \/var\/lib\/ldap\/DB_CONFIG &amp;&amp; \nchown ldap:ldap \/var\/lib\/ldap\/*\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u041e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u0442 \u0441\u0445\u0435\u043c\u0443 OpenLDAP.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0414\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u043a\u043e\u0441\u0438\u043d\u0443\u0441 \u0438 nis \u0441\u0445\u0435\u043c\u044b LDAP.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ldapadd -Y EXTERNAL -H ldapi:\/\/\/ -f \/etc\/openldap\/schema\/cosine.ldif\nldapadd -Y EXTERNAL -H ldapi:\/\/\/ -f \/etc\/openldap\/schema\/nis.ldif\nldapadd -Y EXTERNAL -H ldapi:\/\/\/ -f \/etc\/openldap\/schema\/inetorgperson.ldif\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u041d\u0430\u043a\u043e\u043d\u0435\u0446, \u0441\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u0441\u0445\u0435\u043c\u0443 \u043f\u0440\u0435\u0434\u043f\u0440\u0438\u044f\u0442\u0438\u044f \u0438 \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0435\u0435 \u0432 \u0442\u0435\u043a\u0443\u0449\u0443\u044e \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e OpenLDAP.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435 \u0434\u043b\u044f \u0434\u043e\u043c\u0435\u043d\u0430 \u043f\u043e\u0434 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c vmnet.&nbsp;<em>\u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439<\/em>&nbsp;\u0441 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u043e\u043c LDAP \u043f\u043e\u0434 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c&nbsp;<em>ldapadm<\/em>&nbsp;.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">dn: dc=vmnet,dc=local\ndc: vmnet\nobjectClass: top\nobjectClass: domain\n\ndn: cn=ldapadm ,dc=vmnet,dc=local\nobjectClass: organizationalRole\ncn: ldapadm\ndescription: LDAP Manager\n\ndn: ou = People,dc=vmnet,dc=local\nobjectClass: organizationalUnit\nou: People\n\ndn: ou = Group,dc=vmnet,dc=local \nobjectClass: organizationalUnit \nou: Group\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u041d\u0430\u043a\u043e\u043d\u0435\u0446, \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0439\u0442\u0435 \u044d\u0442\u043e \u0432 \u0442\u0435\u043a\u0443\u0449\u0443\u044e \u0441\u0445\u0435\u043c\u0443 OpenLDAP.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[root@centos]# ldapadd -x -W -D \"cn=ldapadm,dc=vmnet,dc=local\" -f .\/base.ldif\n Enter LDAP Password:\nadding new entry \"dc=vmnet,dc=local\"\n\nadding new entry \"cn=ldapadm ,dc=vmnet,dc=local\"\n\nadding new entry \"ou=People,dc=vmnet,dc=local\"\n\nadding new entry \"ou=Group,dc=vmnet,dc=local\"\n\n[root@centos]#\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u0428\u0430\u0433 5<\/strong>&nbsp;\u2014 \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 OpenLDAP Enterprise.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u041e\u0442\u043a\u0440\u043e\u0439\u0442\u0435&nbsp;<em>vim<\/em>&nbsp;\u0438\u043b\u0438 \u0432\u0430\u0448 \u043b\u044e\u0431\u0438\u043c\u044b\u0439 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440 \u0438 \u0441\u043a\u043e\u043f\u0438\u0440\u0443\u0439\u0442\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0444\u043e\u0440\u043c\u0430\u0442.&nbsp;\u042d\u0442\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0441 \u0438\u043c\u0435\u043d\u0435\u043c \u00abentacct\u00bb \u0432 \u0434\u043e\u043c\u0435\u043d\u0435 LDAP \u00abvmnet.local\u00bb.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">dn: uid=entacct,ou=People,dc=vmnet,dc=local \nobjectClass: top\nobjectClass: account \nobjectClass: posixAccount \nobjectClass: shadowAccount \ncn: entacct \nuid: entacct \nuidNumber: 9999 \ngidNumber: 100 \nhomeDirectory: \/home\/enyacct \nloginShell: \/bin\/bash \ngecos: Enterprise User Account 001 \nuserPassword: {crypt}x \nshadowLastChange: 17058 \nshadowMin: 0 \nshadowMax: 99999 \nshadowWarning: 7\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0422\u0435\u043f\u0435\u0440\u044c \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0439\u0442\u0435 \u0432\u044b\u0448\u0435\u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b, \u043a\u0430\u043a \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u043d\u044b\u0435, \u0432 \u0441\u0445\u0435\u043c\u0443 OpenLdap.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"> [root @ centos] # ldapadd -x -W -D \"cn = ldapadm, dc = vmnet, dc = local\" -f entuser.ldif \n  \u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043f\u0430\u0440\u043e\u043b\u044c LDAP:\n \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043d\u043e\u0432\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438 \"uid = entacct, ou = People, dc = vmnet, dc = local\" \n\n [\u041a\u043e\u0440\u0435\u043d\u044c @ CentOS] #\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u041f\u0440\u0435\u0436\u0434\u0435 \u0447\u0435\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u0441\u043c\u043e\u0433\u0443\u0442 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043a LDAP Enterprise, \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u043d\u0430\u0437\u043d\u0430\u0447\u0438\u0442\u044c \u043f\u0430\u0440\u043e\u043b\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ldappasswd -s password123 -W -D \"cn=ldapadm,dc=entacct,dc=local\" -x \"uid=entacct \n,ou=People,dc=vmnet,dc=local\"\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>-s<\/strong>&nbsp;\u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043f\u0430\u0440\u043e\u043b\u044c \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>-x<\/strong>&nbsp;\u2014 \u0438\u043c\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u043a \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0439 \u043f\u0430\u0440\u043e\u043b\u044c<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>-D<\/strong>&nbsp;\u2014 \u044d\u0442\u043e * \u043e\u0442\u043b\u0438\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0438\u043c\u044f \u0434\u043b\u044f \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u043f\u043e \u0441\u0445\u0435\u043c\u0435 LDAP.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u041d\u0430\u043a\u043e\u043d\u0435\u0446, \u043f\u0440\u0435\u0436\u0434\u0435 \u0447\u0435\u043c \u0432\u043e\u0439\u0442\u0438 \u0432 \u0443\u0447\u0435\u0442\u043d\u0443\u044e \u0437\u0430\u043f\u0438\u0441\u044c Enterprise, \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043c \u043d\u0430\u0448\u0443 \u0437\u0430\u043f\u0438\u0441\u044c&nbsp;<em>OpenLDAP<\/em>&nbsp;.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[root@centos rdc]# ldapsearch -x cn=entacct -b dc=vmnet,dc=local\n # extended LDIF\n #\n # LDAPv3\n # base &lt;dc=vmnet,dc=local&gt; with scope subtree\n # filter: cn=entacct\n # requesting: ALL \n # \n # entacct, People, vmnet.local \ndn: uid=entacct,ou=People,dc=vmnet,dc=local \nobjectClass: top \nobjectClass: account \nobjectClass: posixAccount \nobjectClass: shadowAccount \ncn: entacct \nuid: entacct \nuidNumber: 9999 \ngidNumber: 100 \nhomeDirectory: \/home\/enyacct \nloginShell: \/bin\/bash \ngecos: Enterprise User Account 001 \nuserPassword:: e2NyeXB0fXg= \nshadowLastChange: 17058 \nshadowMin: 0 \nshadowMax: 99999 \nshadowWarning: 7\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u041f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0442\u0430\u043a\u0438\u0445 \u0432\u0435\u0449\u0435\u0439, \u043a\u0430\u043a&nbsp;<em>\/ etc \/ passwd<\/em>&nbsp;\u0438&nbsp;<em>\/ etc \/ groups<\/em>&nbsp;\u0432 \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044e OpenLDAP, \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438.&nbsp;\u041e\u043d\u0438 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u044b \u0432 \u043f\u0430\u043a\u0435\u0442 migtools.&nbsp;\u0417\u0430\u0442\u0435\u043c \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0432&nbsp;<em>\/ usr \/ share \/igrationtools<\/em>&nbsp;.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[root@centos openldap-servers]# ls -l \/usr\/share\/migrationtools\/\ntotal 128\n-rwxr-xr-x. 1 root root  2652 Jun  9  2014 migrate_aliases.pl\n-rwxr-xr-x. 1 root root  2950 Jun  9  2014 migrate_all_netinfo_offline.sh\n-rwxr-xr-x. 1 root root  2946 Jun  9  2014 migrate_all_netinfo_online.sh\n-rwxr-xr-x. 1 root root  3011 Jun  9  2014 migrate_all_nis_offline.sh\n-rwxr-xr-x. 1 root root  3006 Jun  9  2014 migrate_all_nis_online.sh\n-rwxr-xr-x. 1 root root  3164 Jun  9  2014 migrate_all_nisplus_offline.sh\n-rwxr-xr-x. 1 root root  3146 Jun  9  2014 migrate_all_nisplus_online.sh\n-rwxr-xr-x. 1 root root  5267 Jun  9  2014 migrate_all_offline.sh\n-rwxr-xr-x. 1 root root  7468 Jun  9  2014 migrate_all_online.sh\n-rwxr-xr-x. 1 root root  3278 Jun  9  2014 migrate_automount.pl\n-rwxr-xr-x. 1 root root  2608 Jun  9  2014 migrate_base.pl\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u0428\u0430\u0433 6<\/strong>&nbsp;\u2014 \u041d\u0430\u043a\u043e\u043d\u0435\u0446, \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0440\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0441\u0435\u0440\u0432\u0438\u0441\u0443 slapd, \u0447\u0442\u043e\u0431\u044b \u043e\u043d \u043c\u043e\u0433 \u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0441\u044b.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">firewall-cmd --permanent --add-service=ldap \nfirewall-cmd --reload\n<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u0442\u0435 \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u0438\u0439 \u0434\u043e\u0441\u0442\u0443\u043f LDAP<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u043e\u0433\u043e \u0434\u043e\u0441\u0442\u0443\u043f\u0430 LDAP \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043d\u0430\u043b\u0438\u0447\u0438\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u043f\u0430\u043a\u0435\u0442\u043e\u0432 \u043d\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0435: \u043a\u043b\u0438\u0435\u043d\u0442\u044b openldap, open-ldap \u0438 nss_ldap.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 LDAP \u0434\u043b\u044f \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u0438\u0445 \u0441\u0438\u0441\u0442\u0435\u043c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0449\u0435.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u0428\u0430\u0433 1<\/strong>&nbsp;\u2014 \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u0435 \u043f\u0430\u043a\u0435\u0442\u044b \u2014<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># yum install -y openldap-clients nss-pam-ldapd\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u0428\u0430\u0433 2<\/strong>&nbsp;\u2014 \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u0442\u0435 \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044e LDAP \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e&nbsp;<em>authconfig<\/em>&nbsp;.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">authconfig --enableldap --enableldapauth --ldapserver=10.25.0.1 --\nldapbasedn=\"dc=vmnet,dc=local\" --enablemkhomedir --update\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u0428\u0430\u0433 3<\/strong>&nbsp;\u2014 \u041f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 \u0441\u043b\u0443\u0436\u0431\u0443 nslcd.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>LDAP, \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0439 \u043a\u0430\u043a&nbsp;\u043e\u0431\u043b\u0435\u0433\u0447\u0435\u043d\u043d\u044b\u0439 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430\u043c,&nbsp;\u2014 \u044d\u0442\u043e \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0439 \u0434\u043b\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430\u043c \u0443\u0441\u043b\u0443\u0433 X.500 \u0432\u043d\u0443\u0442\u0440\u0438 \u043f\u0440\u0435\u0434\u043f\u0440\u0438\u044f\u0442\u0438\u044f, \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u043c \u0438\u0437 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"categories":[106],"tags":[],"class_list":["post-3079","page","type-page","status-publish","hentry","category-linux"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.bearloga.space\/uk\/wp-json\/wp\/v2\/pages\/3079","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bearloga.space\/uk\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.bearloga.space\/uk\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.bearloga.space\/uk\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bearloga.space\/uk\/wp-json\/wp\/v2\/comments?post=3079"}],"version-history":[{"count":0,"href":"https:\/\/www.bearloga.space\/uk\/wp-json\/wp\/v2\/pages\/3079\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.bearloga.space\/uk\/wp-json\/wp\/v2\/media?parent=3079"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bearloga.space\/uk\/wp-json\/wp\/v2\/categories?post=3079"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bearloga.space\/uk\/wp-json\/wp\/v2\/tags?post=3079"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}