\u4e0b\u8f7d\u5e76\u5b89\u88c5PBIS<\/strong><\/div>\n\u6211\u4eec\u9700\u8981\u4eceGithub\u4e2d\u4e0b\u8f7dPBIS\u5de5\u5177\uff0c\u53ef\u4ee5\u4f7f\u7528\u4e0b\u9762\u7684\u547d\u4ee4\u4e0b\u8f7d\u5f53\u524d\u7248\u672c\u9002\u7528Ubuntu\u7684PBIS\u5de5\u5177\u3002
\ngithub\u4e0b\u8f7d\u8fde\u63a5\u4e3a\uff1ahttps:\/\/github.com\/BeyondTrust\/pbis-open\/releases\/
\n<\/p>\n
\r\n# \u8be5\u94fe\u63a5\u662f64\u4f4d\u7248\u672c\u7684\r\nbob@bob-ubu:~$ wget https:\/\/github.com\/BeyondTrust\/pbis-open\/releases\/download\/9.1.0\/pbis-open-9.1.0.551.linux.x86_64.deb.sh\r\n# \u8be5\u8fde\u63a5\u662f32\u4f4d\u7248\u672c\u7684\r\nbob@bob-ubu:~$ wget https:\/\/github.com\/BeyondTrust\/pbis-open\/releases\/download\/9.1.0\/pbis-open-9.1.0.551.linux.x86.deb.sh\r\n<\/pre>\n\u4e0b\u9762\u6b65\u9aa4\u5f00\u59cb\u5b89\u88c5PBIS\uff0c\u5b89\u88c5\u5f88\u7b80\u5355\uff0c\u53ea\u9700\u8981\u5c06\u4e0b\u8f7d\u7684\u6587\u4ef6\u6dfb\u52a0\u6267\u884c\u6743\u9650\uff0c\u5e76\u6267\u884c\u5373\u53ef\uff1a<\/p>\n
\r\nbob@bob-ubu:~$ chmod +x pbis-open-9.1.0.551.linux.x86_64.deb.sh\r\nbob@bob-ubu:~$ sudo .\/pbis-open-9.1.0.551.linux.x86_64.deb.sh\r\n<\/pre>\n<\/p>\n
PBIS \u76f8\u5173\u914d\u7f6e<\/strong><\/div>\n\u52a0\u5165\u57df<\/strong><\/span><\/div>\nPBIS\u5df2\u7ecf\u5b89\u88c5\u6210\u529f\uff0c\u4e0b\u9762\u8fdb\u5165\/opt\/pbis\/bin<\/code>\u76ee\u5f55\uff0c\u6765\u6267\u884cdomainjoin-cli<\/code>\u547d\u4ee4\u8ba9\u7cfb\u7edf\u52a0\u5165\u57df\u5427\u3002<\/p>\ndomainjoin-cli join<\/code>\u7684\u7528\u6cd5\u5982\u4e0b\uff1a<\/p>\n\r\n$ sudo domainjoin-cli join DomainName AdminUser\r\n<\/pre>\n\u4e0b\u9762\u5c06\u7cfb\u7edf\u52a0\u5165\u5230pangzb.com\u57df\u4e2d\uff1a<\/p>\n
\r\nbob@bob-ubu:\/opt\/pbis\/bin$ cd \/opt\/pbis\/bin\/\r\nbob@bob-ubu:\/opt\/pbis\/bin$ sudo domainjoin-cli join pangzb.com administrator\r\n<\/pre>\n<\/p>\n
\n- DomainName: \u662f\u4f60\u7684\u57df\u73af\u5883\u7684\u57df\u540d<\/li>\n
- AdminUser: \u662f\u57df\u7ba1\u7406\u5458\u7528\u6237<\/li>\n<\/ul>\n
\u51fa\u73b0\u63d0\u793a\u65f6\uff0c\u8bf7\u63d0\u4f9b Active Directory \u7ba1\u7406\u5458\u7684\u5bc6\u7801\u3002\u6210\u529f\u9a8c\u8bc1\u540e\uff0cPBIS\u5de5\u5177\u4f1a\u5c06Ubuntu\u8ba1\u7b97\u673a\u6dfb\u52a0\u4e3a\u57df\u7684\u6210\u5458\u3002\u8be5\u547d\u4ee4\u8fd8\u4f1a\u5728 \/etc\/hosts \u6587\u4ef6\u4e2d\u6dfb\u52a0\u6761\u76ee\u3002
\n
\n\u4e0b\u9762\u56fe\u7247\u4e2d\uff0c\u5b9e\u5728AD\u57df\u63a7\u5236\u5668\u4e2d\u770b\u5230Ubuntu\u7cfb\u7edf\u5df2\u6210\u4e3a\u57df\u7684\u6210\u5458\u4e86\u3002
\n
\n\u901a\u8fc7domainjoin-cli query<\/code>\u6765\u67e5\u770b\u662f\u5426\u4ee5\u52a0\u5165\u57df\u6210\u529f\uff1a<\/p>\n\r\nbob@bob-ubu:\/opt\/pbis\/bin$ sudo domainjoin-cli query\r\nName = bob-ubu\r\nDomain = PANGZB.COM\r\nDistinguished Name = CN=BOB-UBU,CN=Computers,DC=pangzb,DC=com\r\nbob@bob-ubu:\/opt\/pbis\/bin$\r\n<\/pre>\n\u53ef\u4ee5\u770b\u5230\u4e3b\u673a\u540d\u3001\u57df\u540d\u3001\u548cDN\u540d\u79f0\u3002
\n<\/p>\n
\u9000\u51fa\u57df<\/strong><\/span><\/div>\n\u5982\u679c\u8be5\u8ba1\u7b97\u673a\u60f3\u8981\u9000\u51fa\u57df\uff0c\u5219\u9700\u8981\u4f7f\u7528leave<\/code>\u9009\u9879\u4e86\uff1a<\/p>\n\r\nbob@bob-ubu:\/opt\/pbis\/bin$ sudo domainjoin-cli leave\r\n<\/pre>\n\u57df\u7528\u6237\u4f7f\u7528sudo<\/strong><\/span><\/div>\n\u52a0\u5165\u57df\u4e4b\u540e\u91cd\u8981\u7684\u4e8b\u60c5\u662f\u9650\u5236\u57df\u7528\u6237\u4f7f\u7528sudo\u547d\u4ee4\u63d0\u6743\u3002 \u8fd9\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528visudo<\/code>\u547d\u4ee4\u6dfb\u52a0%domain^admins ALL=(ALL) ALL<\/code>\u6765\u5b8c\u6210\uff0c\u8fd9\u6837\u53ea\u5141\u8bb8\u57df\u7ba1\u7406\u5458\u7528\u6237\u624d\u80fd\u4f7f\u7528sudo\u547d\u4ee4\uff1a<\/p>\n\r\n bob@bob-ubu:~$ sudo visudo\r\n# \u6253\u5f00\u4e4b\u540e\uff0c\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\u6dfb\u52a0\u5982\u4e0b\u884c\r\n%domain^admins ALL=(ALL) NOPASSWD: ALL\r\n<\/pre>\n<\/p>\n
\u5176\u4ed6\u529f\u80fd<\/strong><\/div>\n\u4f7f\u7528PBIS\u7684\u6709\u70b9\u662f\uff0c\u5b83\u5141\u8bb8\u4ee5\u591a\u79cd\u65b9\u5f0f\u81ea\u5b9a\u4e49\u767b\u5f55\u3001\u57df\u540d\u524d\u7f00\u3001\u767b\u5f55shell\u3001\u6587\u4ef6\u5939\u540d\u79f0\u7b49\u3002 \u901a\u8fc7\u4e0b\u9762\u529f\u80fd\u8c03\u8bd5\uff0c\u53ef\u4ee5\u4f7f\u57df\u7528\u6237\u66f4\u597d\u7684\u8bbf\u95eeubuntu\u7cfb\u7edf\u3002<\/p>\n
\u8bbe\u7f6e\u9ed8\u8ba4shell<\/strong><\/span><\/div>\n\u9ed8\u8ba4\u7684shell\u4e3ash\uff0c\u770b\u8d77\u6765\u592a\u5355\u8c03\uff0c\u5728\u8fd9\u91cc\u53ef\u4ee5\u8bbe\u7f6e\u6210bash shell\uff0c\u4f7f\u7528LoginShellTemplate<\/code>\u53c2\u6570\u3002<\/p>\n\r\nbob@bob-ubu:~$ sudo \/opt\/pbis\/bin\/config LoginShellTemplate \/bin\/bash\r\n<\/pre>\n
\n\u66f4\u6539\u4e3abash shell\u4e4b\u540e\uff0c\u7528\u4e0e\u7528\u6237\u767b\u5f55\u7684\u6548\u679c\uff1a
\n<\/p>\n
\u8bbe\u7f6e\u57df\u7528\u6237\u5bb6\u76ee\u5f55\u6587\u4ef6\u5939\u7684\u547d\u540d\u89c4\u5219<\/strong><\/span><\/div>\n\u9ed8\u8ba4\u57df\u7528\u6237\u767b\u5f55\u4e4b\u540e\u76ee\u5f55\u7ed3\u6784\u4e3a\/home\/local\/Domain\/User<\/code>\uff0c\u5982\u679c\u5acc\u76ee\u5f55\u592a\u957f\uff0c\u53ef\u4ee5\u4fee\u6539 \uff0c\u4f7f\u7528HomeDirTemplate<\/code>\u53c2\u6570\uff1a<\/p>\n\r\nbob@bob-ubu:~$ sudo \/opt\/pbis\/bin\/config HomeDirTemplate %H\/%U@%D\r\n<\/pre>\n
\n\u5176\u4e2d%H<\/code>\u53c2\u6570\u8868\u793ahome\u76ee\u5f55\uff0c%D<\/code>\u8868\u793a\u57df\u540d\uff0c%U<\/code>\u8868\u793a\u57df\u7528\u6237\u540d\uff0c@<\/code>\u8868\u793a\u7528\u6765\u5206\u9694\u7684\u7b26\u53f7\u3002<\/p>\n\u4f7f\u7528ssh\u767b\u5f55\u57df\u7528\u6237<\/strong><\/div>\n\u53ef\u4ee5\u5c06\u57df\u7528\u6237\u548c\u57df\u540d\u4e4b\u95f4\u7684@<\/code>\u7b26\u53f7\u8f6c\u4e49\uff0c\u5c31\u53ef\u4ee5\u767b\u5f55\u4e86\u3002<\/p>\n\r\nPANGZB\\user01@bob-ubu:~$ ssh user01\\@pangzb.com@localhost\r\n<\/pre>\n<\/p>\n
\u56fe\u5f62\u5316\u754c\u9762\u767b\u5f55\u57df\u7528\u6237<\/strong><\/div>\n\u4e0d\u9700\u8981\u8bbe\u7f6e\u5176\u4ed6\uff0c\u76f4\u63a5\u8f93\u5165\u57df\u7528\u6237\uff1a
\n
\n\u7136\u540e\u8f93\u5165\u5bc6\u7801\uff1a
\n
\n\u5373\u53ef\u8fdb\u5165\u7cfb\u7edf\u5566\uff1a
\n<\/p>\n
\u5982\u4f55\u91cd\u542fPBIS\u670d\u52a1<\/strong><\/div>\nPBIS\u7684\u5b88\u62a4\u8fdb\u7a0b\u662flwsmd<\/code>\uff0c\u8be5\u5b88\u62a4\u8fdb\u7a0b\u4f4d\u4e8e\/opt\/pbis\/sbin\/lwsmd<\/code>\u3002 \u8fd9\u4e2a\u5b88\u62a4\u8fdb\u7a0b\u5305\u62eclsass<\/code>\u670d\u52a1\uff0c\u5b83\u5904\u7406\u8eab\u4efd\u9a8c\u8bc1\u3001\u6388\u6743\u3001\u7f13\u5b58\u548cldmap\u67e5\u627e\u3002 \u56e0\u4e3a\u8eab\u4efd\u9a8c\u8bc1\u670d\u52a1\u53ea\u5728\u542f\u52a8\u65f6\u6ce8\u518c\u4fe1\u4efb\uff0c\u6240\u4ee5\u5728\u4fee\u6539\u4fe1\u4efb\u5173\u7cfb\u540e\uff0c\u5e94\u8be5\u4f7f\u7528lsass<\/code>\u3002 \u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u91cd\u542f\u670d\u52a1\uff1a<\/p>\n\r\nbob@bob-ubu:~$ sudo \/opt\/pbis\/bin\/lwsm restart lsass\r\n<\/pre>\n<\/p>\n
\u5982\u4f55\u9000\u51fa\u57df\u5e76\u5378\u8f7dPBIS<\/strong><\/div>\n\u4f7f\u7528\u4e0b\u9762\u7684\u547d\u4ee4\u9000\u51fa\u57df\uff1a <\/p>\n
\r\nbob@bob-ubu:~$ sudo \/opt\/pbis\/bin\/domainjoin-cli leave\r\nLeaving AD Domain: PANGZB.COM\r\nSUCCESS\r\n<\/pre>\n
\n\u7136\u540e\u4f7f\u7528\u81ea\u5e26\u7684\u811a\u672cuninstall.sh<\/code>\u6765\u5378\u8f7d\u5e72\u51c0pbis\uff1a<\/p>\n\r\nbob@bob-ubu:~$ sudo \/opt\/pbis\/bin\/uninstall.sh purge\r\n<\/pre>\n<\/p>\n
\u57df\u63a7\u5236\u5668\u4e2d\u5982\u4f55\u5220\u9664\u65e0\u6548\u7684\u4e3b\u673a<\/strong><\/div>\n\u5728\u57df\u63a7\u5236\u5668\u4e2d\uff0c\u6253\u5f00powershell\uff0c\u8f93\u5165\u5982\u4e0b\u547d\u4ee4\uff1a<\/p>\n
\r\n# \u5217\u51fa\u81f3\u5c111\u661f\u671f\u6ca1\u6709\u542f\u52a8\u7684\u673a\u5668\uff0c\u5e76\u7981\u7528\r\ndsquery computer -inactive | dsmod computer -disabled yes\r\n# \u5217\u51fa\u5df2\u7981\u7528\u7684\u4e3b\u673a\uff0c\u5e76\u5220\u9664\r\ndsquery computer -disabled | dsrm -noprompt\r\n<\/pre>\n\u603b\u7ed3<\/strong><\/div>\n\u672c\u6587\u4ecb\u7ecd\u4e86\u5728Ubuntu\u4e2d\u5b89\u88c5\u5e76\u914d\u7f6e PowerBroker Identity Services(PBIS)\uff0c\u4ee5\u4fbf\u4e0eWindows\u7684\u57df\u63a7\u5236\u5668\u8fde\u63a5\u5728\u4e00\u8d77\u3002 <\/p>\n","protected":false},"excerpt":{"rendered":"
\u6211\u4eec\u9700\u8981\u4eceGithub\u4e2d\u4e0b\u8f7dPBIS\u5de5\u5177\uff0c\u53ef\u4ee5\u4f7f\u7528\u4e0b\u9762\u7684\u547d\u4ee4\u4e0b\u8f7d\u5f53\u524d\u7248\u672c\u9002\u7528Ubuntu\u7684PBIS\u5de5\u5177\u3002 gi […]<\/p>\n","protected":false},"author":309,"featured_media":239494,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-239493","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/239493","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/users\/309"}],"replies":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/comments?post=239493"}],"version-history":[{"count":2,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/239493\/revisions"}],"predecessor-version":[{"id":239513,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/239493\/revisions\/239513"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media\/239494"}],"wp:attachment":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media?parent=239493"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/categories?post=239493"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/tags?post=239493"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}