{"id":1435,"date":"2016-01-22T11:09:58","date_gmt":"2016-01-22T03:09:58","guid":{"rendered":"https:\/\/2blog.ilc.edu.tw\/technology\/2016\/01\/22\/synology-nas-%e9%80%a3%e7%b7%9a%e4%b8%ad%e5%bf%83ldap%e6%96%b9%e6%b3%95\/"},"modified":"2020-03-05T13:49:31","modified_gmt":"2020-03-05T05:49:31","slug":"synology-nas-%e9%80%a3%e7%b7%9a%e4%b8%ad%e5%bf%83ldap%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/2blog.ilc.edu.tw\/technology\/2016\/01\/22\/synology-nas-%e9%80%a3%e7%b7%9a%e4%b8%ad%e5%bf%83ldap%e6%96%b9%e6%b3%95\/","title":{"rendered":"synology NAS \u9023\u7dda\u4e2d\u5fc3LDAP\u65b9\u6cd5"},"content":{"rendered":"<p>synology NAS \u9023\u7dda\u4e2d\u5fc3LDAP\u65b9\u6cd5<\/p>\n<p>\u53ef\u4ee5\u5728NAS\u8a2d\u5b9a\u9023\u7dda\u4e2d\u5fc3\u7684LDAP\u505a\u5e33\u865f\u6574\u5408\uff0c\u8a2d\u5b9a\u597d\u5f8c\u7684\u597d\u8655\u662f\u53ef\u4ee5\u4f7f\u7528EIP\u7684\u5e33\u865f\u767b\u5165NAS\u4f7f\u7528\u3002<\/p>\n<p><span style=\"color: #0000ff;\">1.\u767b\u5165NAS\u7cfb\u7d71 -&gt; \u63a7\u5236\u53f0 -&gt; \u9032\u968e\u6a21\u5f0f -&gt; \u7db2\u57df\/LDAP<\/span><\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" src=\"http:\/\/2blog.ilc.edu.tw\/wp-content\/uploads\/sites\/1493\/4950\/4950-3426529.png\" alt=\"\" width=\"709\" height=\"401\" \/><\/p>\n<p><span style=\"color: #0000ff;\">2.\u555f\u52d5LDAP -&gt; \u8a2d\u5b9aLDAP -&gt; \u5957\u7528\u5f8c\u8f38\u5165Bind DN\u5bc6\u78bc<\/span><\/p>\n<p>LDAP \u4f3a\u670d\u5668\u4f4d\u7f6e\uff1a140.111.66.45<\/p>\n<p>Base DN \u8a2d\u5b9a\u7bc4\u672c<\/p>\n<p>cn=teacher,ou=lmes,dc=ilc,dc=edu,dc=tw<\/p>\n<p>\u8aaa\u660e<\/p>\n<p>dc=ilc,dc=edu,dc=tw \u9019\u662f\u4e0d\u8b8a\u7684<\/p>\n<p>cn=teacher \u9019\u4e5f\u662f\u4e0d\u8b8a\u7684<\/p>\n<p>ou=lmes \u5247\u662f\u5b78\u6821\u7684\u7c21\u7a31\uff0c\u6bcf\u9593\u5b78\u6821\u4e0d\u540c<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/2blog.ilc.edu.tw\/wp-content\/uploads\/sites\/1493\/4950\/4950-3426535.png\" alt=\"\" width=\"710\" height=\"410\" \/><\/p>\n<p><span style=\"color: #0000ff;\">3.\u8f38\u5165Bind DN \u5e33\u865f\u548c\u5bc6\u78bc<\/span><\/p>\n<p>Bind DN \u8a2d\u5b9a\u7bc4\u672c<\/p>\n<p>uid=lmess,ou=lmes,dc=ilc,dc=edu,dc=tw<\/p>\n<p>\u8aaa\u660e<\/p>\n<p>dc=ilc,dc=edu,dc=tw \u9019\u662f\u4e0d\u8b8a\u7684<\/p>\n<p>ou=lmes \u5247\u662f\u5b78\u6821\u7684\u7c21\u7a31\uff0c\u6bcf\u9593\u5b78\u6821\u4e0d\u540c<\/p>\n<p>uid=lmess \u9019\u662f\u5b78\u6821 \u201d\u55ae\u4f4d\u4fe1\u7bb1\u201d \u7684\u5e33\u865f\uff0c\u901a\u5e38\u90fd\u662f\u5b78\u6821\u540d\u7a31\u7684\u7c21\u7a31 \u6216 \u7c21\u7a31\u5f8c\u518d \u201c+s\u201d<\/p>\n<p>\u800c\u5982\u4f55\u67e5\u8a62\u5b78\u6821\u55ae\u4f4d\u4fe1\u7bb1\uff0c\u6709\u6c92\u6709+s\u5462??<\/p>\n<p>\u53ef\u767b\u5165EIP -&gt; \u201c\u4eba\u4e8b\u8cc7\u6599\u53caEIP\u6b0a\u9650\u7dad\u8b77\u201d -&gt; \u4f9d\u59d3\u540d\u67e5\u8a62\u7684\u5730\u65b9\u8f38\u5165 \u201c\u55ae\u4f4d\u4fe1\u7bb1\u201d \u5c31\u53ef\u67e5\u5230<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n<p>Bind DN \u5bc6\u78bc<\/p>\n<p>\u5247\u662f\u55ae\u4f4d\u4fe1\u7bb1\u7684\u767b\u5165\u5bc6\u78bc<\/p>\n<p><span style=\"color: #ff0000;\">\u8981\u6ce8\u610f\u7684\u662f\u76ee\u524dLDAP\u90fd\u662f\u5728\u9694\u5929\u624d\u540c\u6b65\u751f\u6548\uff0c\u5982\u679c\u55ae\u4f4d\u4fe1\u7bb1\u7684\u5bc6\u78bc\u6709\u505a\u8b8a\u66f4\uff0c\u5fc5\u9700\u5f97\u7b49\u5230\u9694\u5929\u624d\u80fd\u8f38\u5165\u8b8a\u66f4\u5f8c\u7684\u5bc6\u78bc<\/span><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/2blog.ilc.edu.tw\/wp-content\/uploads\/sites\/1493\/4950\/4950-3426533.png\" alt=\"\" width=\"711\" height=\"494\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/2blog.ilc.edu.tw\/wp-content\/uploads\/sites\/1493\/4950\/4950-3426534.png\" alt=\"\" width=\"712\" height=\"495\" \/><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/2blog.ilc.edu.tw\/wp-content\/uploads\/sites\/1493\/4950\/4950-3426536.png\" alt=\"\" \/><\/p>\n<p><span style=\"color: #0000ff;\">4.\u6aa2\u67e5\u8a2d\u5b9a\u662f\u5426\u6210\u529f<\/span><\/p>\n<p>\u5982\u679c\u8a2d\u5b9a\u6210\u529f\uff0c\u53ef\u4ee5\u5728LDAP\u4f7f\u7528\u8005\u548c LDAP\u4f7f\u7528\u8005\u7fa4\u7d44 \u770b\u5230\u81ea\u5df1\u5b78\u6821\u7684\u76f8\u95dc\u5e33\u865f\u8cc7\u8a0a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/2blog.ilc.edu.tw\/wp-content\/uploads\/sites\/1493\/4950\/4950-3426537.png\" alt=\"\" width=\"716\" height=\"413\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/2blog.ilc.edu.tw\/wp-content\/uploads\/sites\/1493\/4950\/4950-3426538.png\" alt=\"\" width=\"714\" height=\"409\" \/><\/p>\n<p><span style=\"color: #0000ff;\">5.\u6b0a\u9650\u76f8\u95dc\u8a2d\u5b9a\uff0c\u958b\u653eLDAP\u4f7f\u7528\u8005-\u5bb6\u76ee\u9304\u6b0a\u9650<span style=\"color: #ff0000;\">(\u8acb\u5148\u4e0d\u8981\u4f7f\u7528\u6703\u6709\u554f\u984c 20160831)<\/span><\/span><\/p>\n<p>\u5982\u679c\u8981\u958b\u653eLDAP\u4f7f\u7528\u8005\uff0c\u64c1\u6709\u53ef\u4f7f\u7528\u81ea\u5df1\u76ee\u9304\u7a7a\u9593\u7684\u6b0a\u9650\uff0c\u53ef\u5728 \u201c\u5bb6\u76ee\u9304\u201d -&gt; \u555f\u52d5LDAP\u4f7f\u7528\u8005\u5bb6\u76ee\u9304\u670d\u52d9 (\u6ce8\u610f\u555f\u7528\u5f8cNAS\u4e0a\u672c\u6a5f\u7684user\u4e5f\u6703\u540c\u6642\u8ddf\u8457\u555f\u7528)<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/2blog.ilc.edu.tw\/wp-content\/uploads\/sites\/1493\/4950\/4950-3426539.png\" alt=\"\" width=\"716\" height=\"411\" \/><\/p>\n<p>LDAP user \u767b\u5165\u5f8c\u5c31\u53ef\u5728 File Station -&gt; home \u4e2d\u81ea\u7531\u4f7f\u7528\u7a7a\u9593<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/2blog.ilc.edu.tw\/wp-content\/uploads\/sites\/1493\/4950\/4950-3426540.png\" alt=\"\" width=\"709\" height=\"401\" \/><\/p>\n<p>\u800c\u8a72user\u5728NAS\u88cf\u5be6\u969b\u5b58\u653e\u8cc7\u6599\u4f4d\u7f6e\u5247\u662f\u5728<\/p>\n<p>\/home\/@<span style=\"text-decoration: underline;\">LH-ILC.EDU.TW\/64\/<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/2blog.ilc.edu.tw\/wp-content\/uploads\/sites\/1493\/4950\/4950-3426541.png\" alt=\"\" width=\"702\" height=\"426\" \/><\/p>\n<p><span style=\"color: #0000ff;\">6.\u958b\u653e\u5171\u7528\u8cc7\u6599\u593e\uff0c\u7d66LDAP\u4f7f\u7528\u8005\u4f7f\u7528<\/span><\/p>\n<p>\u7bc4\u4f8b1\uff1a<\/p>\n<p>\u5728NAS\u88cf\u6709\u4e00\u500b\u5171\u7528\u8cc7\u6599\u593e\u53eb \u201ctest\u201d \u60f3\u653e\u958b\u6b64\u8cc7\u6599\u593e\u7d66LDAP\u4f7f\u7528\u8005\u7fa4\u7d44\u6709\u201d\u8b80\u5beb\u201d\u7684\u6b0a\u9650<\/p>\n<p>\u63a7\u5236\u53f0 -&gt; \u5171\u7528\u8cc7\u6599\u593e -&gt; test -&gt; \u6b0a\u9650 -&gt; LDAP\u4f7f\u7528\u8005\u7fa4\u7d44 -&gt; \u53ef\u8b80\u5beb<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/2blog.ilc.edu.tw\/wp-content\/uploads\/sites\/1493\/4950\/4950-3426542.png\" alt=\"\" width=\"695\" height=\"393\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/2blog.ilc.edu.tw\/wp-content\/uploads\/sites\/1493\/4950\/4950-3426543.png\" alt=\"\" width=\"697\" height=\"400\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/2blog.ilc.edu.tw\/wp-content\/uploads\/sites\/1493\/4950\/4950-3426544.png\" alt=\"\" width=\"703\" height=\"452\" \/><\/p>\n<p>\u7bc4\u4f8b2\uff1a<\/p>\n<p>\u5728NAS\u88cf\u6709\u4e00\u500b\u5171\u7528\u8cc7\u6599\u593e\u53eb \u201cweb\u201d \u60f3\u653e\u958b\u6b64\u8cc7\u6599\u593e\u7d66LDAP\u4f7f\u7528\u8005 nicklin \u6709\u201d\u8b80\u201d\u7684\u6b0a\u9650<\/p>\n<p>\u63a7\u5236\u53f0 -&gt; \u5171\u7528\u8cc7\u6599\u593e -&gt; web -&gt; \u6b0a\u9650 -&gt; LDAP\u4f7f\u7528\u8005 -&gt; \u552f\u8b80<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/2blog.ilc.edu.tw\/wp-content\/uploads\/sites\/1493\/4950\/4950-3426545.png\" alt=\"\" width=\"701\" height=\"403\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/2blog.ilc.edu.tw\/wp-content\/uploads\/sites\/1493\/4950\/4950-3426546.png\" alt=\"\" width=\"696\" height=\"448\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>synology NAS \u9023\u7dda\u4e2d\u5fc3LDAP\u65b9\u6cd5 \u53ef\u4ee5\u5728NAS\u8a2d\u5b9a\u9023\u7dda\u4e2d\u5fc3\u7684LDAP\u505a\u5e33\u865f\u6574\u5408\uff0c\u8a2d\u5b9a\u597d\u5f8c\u7684\u597d\u8655\u662f [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":2401,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ocean_post_layout":"","ocean_both_sidebars_style":"","ocean_both_sidebars_content_width":0,"ocean_both_sidebars_sidebars_width":0,"ocean_sidebar":"","ocean_second_sidebar":"","ocean_disable_margins":"enable","ocean_add_body_class":"","ocean_shortcode_before_top_bar":"","ocean_shortcode_after_top_bar":"","ocean_shortcode_before_header":"","ocean_shortcode_after_header":"","ocean_has_shortcode":"","ocean_shortcode_after_title":"","ocean_shortcode_before_footer_widgets":"","ocean_shortcode_after_footer_widgets":"","ocean_shortcode_before_footer_bottom":"","ocean_shortcode_after_footer_bottom":"","ocean_display_top_bar":"default","ocean_display_header":"default","ocean_header_style":"","ocean_center_header_left_menu":"","ocean_custom_header_template":"","ocean_custom_logo":0,"ocean_custom_retina_logo":0,"ocean_custom_logo_max_width":0,"ocean_custom_logo_tablet_max_width":0,"ocean_custom_logo_mobile_max_width":0,"ocean_custom_logo_max_height":0,"ocean_custom_logo_tablet_max_height":0,"ocean_custom_logo_mobile_max_height":0,"ocean_header_custom_menu":"","ocean_menu_typo_font_family":"","ocean_menu_typo_font_subset":"","ocean_menu_typo_font_size":0,"ocean_menu_typo_font_size_tablet":0,"ocean_menu_typo_font_size_mobile":0,"ocean_menu_typo_font_size_unit":"px","ocean_menu_typo_font_weight":"","ocean_menu_typo_font_weight_tablet":"","ocean_menu_typo_font_weight_mobile":"","ocean_menu_typo_transform":"","ocean_menu_typo_transform_tablet":"","ocean_menu_typo_transform_mobile":"","ocean_menu_typo_line_height":0,"ocean_menu_typo_line_height_tablet":0,"ocean_menu_typo_line_height_mobile":0,"ocean_menu_typo_line_height_unit":"","ocean_menu_typo_spacing":0,"ocean_menu_typo_spacing_tablet":0,"ocean_menu_typo_spacing_mobile":0,"ocean_menu_typo_spacing_unit":"","ocean_menu_link_color":"","ocean_menu_link_color_hover":"","ocean_menu_link_color_active":"","ocean_menu_link_background":"","ocean_menu_link_hover_background":"","ocean_menu_link_active_background":"","ocean_menu_social_links_bg":"","ocean_menu_social_hover_links_bg":"","ocean_menu_social_links_color":"","ocean_menu_social_hover_links_color":"","ocean_disable_title":"default","ocean_disable_heading":"default","ocean_post_title":"","ocean_post_subheading":"","ocean_post_title_style":"","ocean_post_title_background_color":"","ocean_post_title_background":0,"ocean_post_title_bg_image_position":"","ocean_post_title_bg_image_attachment":"","ocean_post_title_bg_image_repeat":"","ocean_post_title_bg_image_size":"","ocean_post_title_height":0,"ocean_post_title_bg_overlay":0.5,"ocean_post_title_bg_overlay_color":"","ocean_disable_breadcrumbs":"default","ocean_breadcrumbs_color":"","ocean_breadcrumbs_separator_color":"","ocean_breadcrumbs_links_color":"","ocean_breadcrumbs_links_hover_color":"","ocean_display_footer_widgets":"default","ocean_display_footer_bottom":"default","ocean_custom_footer_template":"","ocean_post_oembed":"","ocean_post_self_hosted_media":"","ocean_post_video_embed":"","ocean_link_format":"","ocean_link_format_target":"self","ocean_quote_format":"","ocean_quote_format_link":"post","ocean_gallery_link_images":"on","ocean_gallery_id":[],"footnotes":""},"categories":[82,81],"tags":[],"class_list":["post-1435","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-systemservices","category-networkandinfomation","entry","has-media"],"meta_key":{"_elementor_controls_usage":["a:0:{}"],"_edit_lock":["1714619463:2908"],"classic-editor-remember":["classic-editor"],"_edit_last":["84"],"_thumbnail_id":["2401"],"_wp_page_template":["default"],"_wpv_contains_gutenberg_views":[""],"_views_template":["0"]},"_links":{"self":[{"href":"https:\/\/2blog.ilc.edu.tw\/technology\/wp-json\/wp\/v2\/posts\/1435"}],"collection":[{"href":"https:\/\/2blog.ilc.edu.tw\/technology\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/2blog.ilc.edu.tw\/technology\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/technology\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/technology\/wp-json\/wp\/v2\/comments?post=1435"}],"version-history":[{"count":1,"href":"https:\/\/2blog.ilc.edu.tw\/technology\/wp-json\/wp\/v2\/posts\/1435\/revisions"}],"predecessor-version":[{"id":2402,"href":"https:\/\/2blog.ilc.edu.tw\/technology\/wp-json\/wp\/v2\/posts\/1435\/revisions\/2402"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/technology\/wp-json\/wp\/v2\/media\/2401"}],"wp:attachment":[{"href":"https:\/\/2blog.ilc.edu.tw\/technology\/wp-json\/wp\/v2\/media?parent=1435"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/technology\/wp-json\/wp\/v2\/categories?post=1435"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/technology\/wp-json\/wp\/v2\/tags?post=1435"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}