{"id":1271,"date":"2023-03-01T12:22:05","date_gmt":"2023-03-01T11:22:05","guid":{"rendered":"https:\/\/ndk.sytes.net\/wordpress\/?p=1271"},"modified":"2023-03-01T12:22:05","modified_gmt":"2023-03-01T11:22:05","slug":"join-macos-to-active-directory","status":"publish","type":"post","link":"https:\/\/ndk.sytes.net\/wordpress\/?p=1271","title":{"rendered":"Join macOS to Active Directory"},"content":{"rendered":"\n<p>Simply execute following commands:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ dsconfigad -domain &lt;domain_name> -a &lt;hostname> -u &lt;domain_admin_user><br>$ dsconfigad -groups \"domain admins\",\"enterprise admins\",\"my custom admin group\"<br>$ dsconfigad -mobile enable -mobileconfirm disable<\/code><\/pre>\n\n\n\n<p>The first command will join the computer to the domain. Please make sure you are using the hostname given by the hostname command, not the one defined in the sharing settings and the user which you are using for joining has the &#8220;domain admins&#8221; group by default.<\/p>\n\n\n\n<p>The second command sets all the groups which are allowed to manage the computer<\/p>\n\n\n\n<p>The third command is used to enable mobile logins (must be used in case the computer is not always connected to the domain, e.g. macbooks leaving the network).<\/p>\n\n\n\n<p>More infos on apple&#8217;s page:<\/p>\n\n\n\n<p><a href=\"https:\/\/support.apple.com\/en-gb\/guide\/directory-utility\/diru11f4f748\/6.3\/mac\/13.0\">https:\/\/support.apple.com\/en-gb\/guide\/directory-utility\/diru11f4f748\/6.3\/mac\/13.0<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Simply execute following commands: The first command will join the computer to the domain. Please make sure you are using the hostname given by the hostname command, not the one defined in the sharing settings and the user which you are using for joining has the &#8220;domain admins&#8221; group by default. The second command sets [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,7],"tags":[],"class_list":["post-1271","post","type-post","status-publish","format-standard","hentry","category-mac-osx","category-servers"],"_links":{"self":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1271","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1271"}],"version-history":[{"count":1,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1271\/revisions"}],"predecessor-version":[{"id":1272,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1271\/revisions\/1272"}],"wp:attachment":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1271"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1271"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1271"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}