<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Active-Directory on The Network Stack</title>
    <link>https://thenetworkstack.com/tags/active-directory/</link>
    <description>Recent content in Active-Directory on The Network Stack</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Wed, 30 Aug 2017 23:03:22 +0000</lastBuildDate>
    <atom:link href="https://thenetworkstack.com/tags/active-directory/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>SSH with Duo MFA and Active Directory</title>
      <link>https://thenetworkstack.com/ssh-with-duo-mfa-and-active-directory/</link>
      <pubDate>Wed, 30 Aug 2017 23:03:22 +0000</pubDate>
      <guid>https://thenetworkstack.com/ssh-with-duo-mfa-and-active-directory/</guid>
      <description>&lt;p&gt;Duo has thorough &lt;a href=&#34;https://duo.com/docs/duounix&#34;&gt;documentation&lt;/a&gt; for adding MFA to your SSH sessions, but there are a couple additional steps needed to also integrate with Active Directory. This post will go through the installation for both Duo and Active Directory for Ubuntu 16.04. For other Linux distros, the Duo documentation linked above has you covered.&lt;br&gt;
\&lt;/p&gt;
&lt;h4 id=&#34;system-components&#34;&gt;&lt;strong&gt;System components:&lt;/strong&gt;&lt;/h4&gt;
&lt;ul&gt;
&lt;li&gt;Ubuntu 16.04 server&lt;/li&gt;
&lt;li&gt;Duo MFA account&lt;/li&gt;
&lt;li&gt;Duo Unix package&lt;/li&gt;
&lt;li&gt;Centify Express for Active Directory integration&lt;br&gt;
\&lt;/li&gt;
&lt;/ul&gt;
&lt;h4 id=&#34;duo-installation&#34;&gt;&lt;strong&gt;Duo Installation:&lt;/strong&gt;&lt;/h4&gt;
&lt;p&gt;Install OpenSSL development headers and libraries:&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>Duo has thorough <a href="https://duo.com/docs/duounix">documentation</a> for adding MFA to your SSH sessions, but there are a couple additional steps needed to also integrate with Active Directory. This post will go through the installation for both Duo and Active Directory for Ubuntu 16.04. For other Linux distros, the Duo documentation linked above has you covered.<br>
\</p>
<h4 id="system-components"><strong>System components:</strong></h4>
<ul>
<li>Ubuntu 16.04 server</li>
<li>Duo MFA account</li>
<li>Duo Unix package</li>
<li>Centify Express for Active Directory integration<br>
\</li>
</ul>
<h4 id="duo-installation"><strong>Duo Installation:</strong></h4>
<p>Install OpenSSL development headers and libraries:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">apt-get install libssl-dev libpam-dev -y
</span></span></code></pre></div><p>Add Duo repository and install duo-unix package:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="nb">echo</span> <span class="s1">&#39;deb http://pkg.duosecurity.com/Ubuntu xenial main&#39;</span> <span class="p">|</span> tee /etc/apt/sources.list.d/duosecurity.list
</span></span><span class="line"><span class="cl">curl -s https://duo.com/APT-GPG-KEY-DUO <span class="p">|</span> apt-key add -
</span></span><span class="line"><span class="cl">apt-get update
</span></span><span class="line"><span class="cl">apt-get install duo-unix
</span></span></code></pre></div><p>Edit <strong>/etc/duo/pam_duo.conf</strong> with your integration key, secret key, and API host. You can find these values in the <a href="https://admin.duosecurity.com">Duo Administration page</a> for your &ldquo;UNIX Application&rdquo;.</p>
<pre tabindex="0"><code>[duo]
; Duo integration key
ikey = XXXXXXXXXXXXXXXXXXXXXXX
; Duo secret key
skey = XXXXXXXXXXXXXXXXXXXXXXX
; Duo API host
host = XXXXXXXXXXXXXXXXXXXXXXX
; Send command for Duo Push authentication
;pushinfo = yes
</code></pre><h4 id="centrify-installation"><strong>Centrify Installation:</strong></h4>
<p>First, edit <strong>/etc/ssh/sshd_config</strong> so that ChallengeResponseAuthentication is set to &ldquo;yes&rdquo;</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="c1"># Change to yes to enable challenge-response passwords (beware issues with</span>
</span></span><span class="line"><span class="cl"><span class="c1"># some PAM modules and threads)</span>
</span></span><span class="line"><span class="cl">ChallengeResponseAuthentication yes
</span></span></code></pre></div><p>Download, unzip, and install Centrify Express:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">wget https://downloads.centrify.com/products/centrify-suite/2017-update-1/centrify-suite-2017.1-deb7-x86_64.tgz
</span></span><span class="line"><span class="cl">tar -xvzf centrify-suite-2017.1-deb7-x86_64.tgz
</span></span><span class="line"><span class="cl">./install-express.sh
</span></span></code></pre></div><p>Go through the installation script to connect to your Active Directory environment:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">You can <span class="nb">type</span> Q at any prompt to quit the installation and <span class="nb">exit</span>
</span></span><span class="line"><span class="cl">the script without making any changes to your environment.
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">How <span class="k">do</span> you want to proceed? <span class="o">(</span>E<span class="p">|</span>S<span class="p">|</span>X<span class="p">|</span>C<span class="p">|</span>Q<span class="o">)</span> <span class="o">[</span>X<span class="o">]</span>: X
</span></span><span class="line"><span class="cl">Do you want to <span class="k">continue</span> to install in Express mode? <span class="o">(</span>C<span class="p">|</span>Y<span class="p">|</span>Q<span class="p">|</span>N<span class="o">)</span> <span class="o">[</span>Y<span class="o">]</span>:Y
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">Do you want to run adcheck to verify your AD environment? <span class="o">(</span>Q<span class="p">|</span>Y<span class="p">|</span>N<span class="o">)</span> <span class="o">[</span>Y<span class="o">]</span>:Y
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">Please enter the Active Directory domain to check <span class="o">[</span>company.com<span class="o">]</span>: your-domain.com
</span></span><span class="line"><span class="cl">Join an Active Directory domain? <span class="o">(</span>Q<span class="p">|</span>Y<span class="p">|</span>N<span class="o">)</span> <span class="o">[</span>Y<span class="o">]</span>:Y
</span></span><span class="line"><span class="cl">    Enter the Active Directory domain to join <span class="o">[</span>your-domain.com<span class="o">]</span>:
</span></span><span class="line"><span class="cl">    Enter the Active Directory authorized user <span class="o">[</span>administrator<span class="o">]</span>: your-admin
</span></span><span class="line"><span class="cl">    Enter the password <span class="k">for</span> the Active Directory user:
</span></span><span class="line"><span class="cl">    Enter the computer name <span class="o">[</span>server-name<span class="o">]</span>:
</span></span><span class="line"><span class="cl">    Enter the container DN <span class="o">[</span>Computers<span class="o">]</span>:
</span></span><span class="line"><span class="cl">    Enter the name of the domain controller <span class="o">[</span>auto detect<span class="o">]</span>:
</span></span><span class="line"><span class="cl">Reboot the computer after installation? <span class="o">(</span>Q<span class="p">|</span>Y<span class="p">|</span>N<span class="o">)</span> <span class="o">[</span>Y<span class="o">]</span>: Y
</span></span></code></pre></div><p>After the server restarts, you should be able to login with your Active Directory credentials via SSH, but you are not prompted for Duo MFA. To support this, we need to edit <strong>/etc/pam.d/common-auth</strong> as follows:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="c1"># lines inserted by Centrify Direct Control { CentrifyDC 5.4.1-455 }</span>
</span></span><span class="line"><span class="cl"><span class="c1">#auth   sufficient      pam_centrifydc.so</span>
</span></span><span class="line"><span class="cl"><span class="c1">#auth   requisite       pam_centrifydc.so deny</span>
</span></span><span class="line"><span class="cl">auth    requisite       pam_centrifydc.so
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="c1"># here are the per-package modules (the &#34;Primary&#34; block)</span>
</span></span><span class="line"><span class="cl"><span class="c1">#auth   [success=1 default=ignore]      pam_unix.so nullok_secure</span>
</span></span><span class="line"><span class="cl">auth    requisite       pam_unix.so nullok_secure
</span></span><span class="line"><span class="cl">auth  <span class="o">[</span><span class="nv">success</span><span class="o">=</span><span class="m">1</span> <span class="nv">default</span><span class="o">=</span>ignore<span class="o">]</span> /lib64/security/pam_duo.so
</span></span></code></pre></div><p>In both sections, I commented out the existing config and added the necessary lines so that pam_duo is used after a successful pam_centrifydc authentication.</p>
<p>Next, we need to edit <strong>/etc/pam.d/sshd</strong> and comment out &ldquo;@include common-auth&rdquo; so we can add the Centrify and Duo PAM modules (but we don&rsquo;t need pam_unix):</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="c1"># Standard Un*x authentication.</span>
</span></span><span class="line"><span class="cl"><span class="c1">#@include common-auth</span>
</span></span><span class="line"><span class="cl">auth    requisite       pam_centrifydc.so
</span></span><span class="line"><span class="cl">auth    <span class="o">[</span><span class="nv">success</span><span class="o">=</span><span class="m">1</span> <span class="nv">default</span><span class="o">=</span>ignore<span class="o">]</span>      /lib64/security/pam_duo.so
</span></span><span class="line"><span class="cl">auth    requisite       pam_deny.so
</span></span><span class="line"><span class="cl">auth    required        pam_permit.so
</span></span></code></pre></div><p>You should be able to SSH to the server with your Active Directory credentials, and then be prompted for Duo MFA (assuming you have a Duo account that matches your AD username)<br>
\</p>
<h4 id="active-directory-group-restriction"><strong>Active Directory Group Restriction:</strong></h4>
<p>You may also want to restrict SSH access to users in a certain Active Directory group. This can be done with two lines in <strong>/etc/ssh/sshd_config</strong> at the end of the config, after &ldquo;UsePAM yes&rdquo;:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">UsePAM yes
</span></span><span class="line"><span class="cl"><span class="c1">#########</span>
</span></span><span class="line"><span class="cl">UseDNS no
</span></span><span class="line"><span class="cl">AllowGroups root your-group-name
</span></span></code></pre></div><p>Be sure to add the &lsquo;root&rsquo; group so that you can still manage your server with the root account if needed. Restart SSH and your group restriction will be in effect:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">service ssh restart
</span></span></code></pre></div>]]></content:encoded>
    </item>
    <item>
      <title>Active Directory Powershell</title>
      <link>https://thenetworkstack.com/active-directory-powershell/</link>
      <pubDate>Fri, 04 Aug 2017 19:28:01 +0000</pubDate>
      <guid>https://thenetworkstack.com/active-directory-powershell/</guid>
      <description>&lt;p&gt;Using this page to keep track of all the useful powershell &amp;ldquo;mini-scripts&amp;rdquo; I&amp;rsquo;ve used:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Copy users from one security group to another security group&lt;/strong&gt;&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;Add-ADGroupMember -Identity destination-group-name -Members (Get-ADGroupMember -Identity source-group-name -Recursive)
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;strong&gt;Add &lt;em&gt;enabled&lt;/em&gt; users from an OU to a security group&lt;/strong&gt;&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;Get-ADUser -SearchBase &amp;#39;OU=Your-OU,DC=corp,DC=company,DC=com&amp;#39; -Filter {Enabled -eq $true} | ForEach-Object {Add-ADGroupMember -Identity &amp;#39;your-group-name&amp;#39; -Members $_ }
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;strong&gt;Add users from a CSV file to a security group (username column is called &amp;ldquo;name&amp;rdquo;)&lt;/strong&gt;&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>Using this page to keep track of all the useful powershell &ldquo;mini-scripts&rdquo; I&rsquo;ve used:</p>
<p><strong>Copy users from one security group to another security group</strong></p>
<pre tabindex="0"><code>Add-ADGroupMember -Identity destination-group-name -Members (Get-ADGroupMember -Identity source-group-name -Recursive)
</code></pre><p><strong>Add <em>enabled</em> users from an OU to a security group</strong></p>
<pre tabindex="0"><code>Get-ADUser -SearchBase &#39;OU=Your-OU,DC=corp,DC=company,DC=com&#39; -Filter {Enabled -eq $true} | ForEach-Object {Add-ADGroupMember -Identity &#39;your-group-name&#39; -Members $_ }
</code></pre><p><strong>Add users from a CSV file to a security group (username column is called &ldquo;name&rdquo;)</strong></p>
<pre tabindex="0"><code>import-csv c:\users.csv | Foreach-Object {add-adgroupmember -Identity your-group-name -Members $_.name}
</code></pre><p><strong>Update user objects with organization attributes from a CSV file</strong></p>
<pre tabindex="0"><code>import-csv c:\users.csv | Foreach-Object {Set-ADUser -Identity $_.name -Department $_.department -Title $_.title -Manager $_.manager}
</code></pre><p><strong>Create security-groups from a CSV file (group-name column is called &ldquo;name&rdquo;)</strong></p>
<pre tabindex="0"><code>import-csv c:\groups.csv | Foreach-Object {new-adgroup -name $_.name -GroupCategory security -GroupScope global -Path &#34;ou=Your-OU,dc=corp,dc=company,dc=com&#34;}
</code></pre><p><strong>Export list of all <em>enabled</em> users in an OU</strong></p>
<pre tabindex="0"><code>Get-ADUser -SearchBase &#39;OU=Your-OU,DC=corp,DC=company,DC=com&#39; -Filter {Enabled -eq $true} -Property * | Select -Property Name,SamAccountName,UserPrincipalName,mail,Title,Manager,Department | export-csv &#39;c:\users.csv&#39; -notype
</code></pre><p><strong>Export list of all <em>enabled</em> users in an security group</strong></p>
<pre tabindex="0"><code>Get-ADGroupMember -Identity your-group-name | ? ObjectClass -eq &#34;User&#34; | Get-ADUser | ? Enabled | Select Name | out-file C:\group_membership.txt
</code></pre>]]></content:encoded>
    </item>
    <item>
      <title>Active Directory Transfer Roles</title>
      <link>https://thenetworkstack.com/active-directory-transfer-roles/</link>
      <pubDate>Thu, 10 Dec 2015 20:25:31 +0000</pubDate>
      <guid>https://thenetworkstack.com/active-directory-transfer-roles/</guid>
      <description>&lt;p&gt;If you need to transfer the Active Directory FSMO roles to a new server, these simple steps were easy to follow.  Took about 5 minutes.&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;http://www.techieshelp.com/how-to-transfer-fsmo-roles-graphical-and-command-line/&#34;&gt;http://www.techieshelp.com/how-to-transfer-fsmo-roles-graphical-and-command-line/&lt;/a&gt;&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>If you need to transfer the Active Directory FSMO roles to a new server, these simple steps were easy to follow.  Took about 5 minutes.</p>
<p><a href="http://www.techieshelp.com/how-to-transfer-fsmo-roles-graphical-and-command-line/">http://www.techieshelp.com/how-to-transfer-fsmo-roles-graphical-and-command-line/</a></p>
]]></content:encoded>
    </item>
    <item>
      <title>Windows SSL Certificate Installation</title>
      <link>https://thenetworkstack.com/windows-ssl-certificate-installation/</link>
      <pubDate>Tue, 01 Dec 2015 23:08:41 +0000</pubDate>
      <guid>https://thenetworkstack.com/windows-ssl-certificate-installation/</guid>
      <description>&lt;p&gt;The Digicert cert utility for Windows make the process so much easier:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;To generate the CSR:&lt;/strong&gt;&lt;br&gt;
&lt;a href=&#34;https://www.digicert.com/util/csr-creation-microsoft-active-directory-ldap-2012-digicert-utility.htm&#34;&gt;https://www.digicert.com/util/csr-creation-microsoft-active-directory-ldap-2012-digicert-utility.htm&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;To install the Cert:&lt;/strong&gt;&lt;br&gt;
&lt;a href=&#34;https://www.digicert.com/ssl-certificate-installation-microsoft-active-directory-ldap-2012.htm&#34;&gt;https://www.digicert.com/ssl-certificate-installation-microsoft-active-directory-ldap-2012.htm&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;For LDAPS on a domain controller, I did not have to import the cert file into the AD DS personal store.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>The Digicert cert utility for Windows make the process so much easier:</p>
<p><strong>To generate the CSR:</strong><br>
<a href="https://www.digicert.com/util/csr-creation-microsoft-active-directory-ldap-2012-digicert-utility.htm">https://www.digicert.com/util/csr-creation-microsoft-active-directory-ldap-2012-digicert-utility.htm</a></p>
<p><strong>To install the Cert:</strong><br>
<a href="https://www.digicert.com/ssl-certificate-installation-microsoft-active-directory-ldap-2012.htm">https://www.digicert.com/ssl-certificate-installation-microsoft-active-directory-ldap-2012.htm</a></p>
<p>For LDAPS on a domain controller, I did not have to import the cert file into the AD DS personal store.</p>
]]></content:encoded>
    </item>
    <item>
      <title>Active Directory Health Check</title>
      <link>https://thenetworkstack.com/active-directory-health-check/</link>
      <pubDate>Thu, 23 Jul 2015 00:01:52 +0000</pubDate>
      <guid>https://thenetworkstack.com/active-directory-health-check/</guid>
      <description>&lt;p&gt;Migrated a DC and wanted to do some basic AD health checks.&lt;/p&gt;
&lt;p&gt;From the cmd prompt (domain joined pc with sufficient privileges or on the DC):&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Replication Info:&lt;/strong&gt;&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;repadmin /replsummary
repadmin /showrepl
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;strong&gt;Query FSMO role holders, which should confirm that they are online:&lt;/strong&gt;&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;netdom query fsmo
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;strong&gt;General Server Diagnosis:&lt;/strong&gt;&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;dcdiag /a /s:&amp;lt;DC server name&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;strong&gt;If you want the DC&amp;rsquo;s to force sync and see if there are any issues:&lt;/strong&gt;&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;repadmin /syncall
&lt;/code&gt;&lt;/pre&gt;</description>
      <content:encoded><![CDATA[<p>Migrated a DC and wanted to do some basic AD health checks.</p>
<p>From the cmd prompt (domain joined pc with sufficient privileges or on the DC):</p>
<p><strong>Replication Info:</strong></p>
<pre tabindex="0"><code>repadmin /replsummary
repadmin /showrepl
</code></pre><p><strong>Query FSMO role holders, which should confirm that they are online:</strong></p>
<pre tabindex="0"><code>netdom query fsmo
</code></pre><p><strong>General Server Diagnosis:</strong></p>
<pre tabindex="0"><code>dcdiag /a /s:&lt;DC server name&gt;
</code></pre><p><strong>If you want the DC&rsquo;s to force sync and see if there are any issues:</strong></p>
<pre tabindex="0"><code>repadmin /syncall
</code></pre>]]></content:encoded>
    </item>
    <item>
      <title>Export User List of AD Security Group</title>
      <link>https://thenetworkstack.com/export-user-list-of-ad-security-group/</link>
      <pubDate>Fri, 06 Mar 2015 06:23:01 +0000</pubDate>
      <guid>https://thenetworkstack.com/export-user-list-of-ad-security-group/</guid>
      <description>&lt;p&gt;If you need to get a list of all members in an AD Security Group, open up powershell and try the following commands from a DC:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;This command will list all the members and the OU structure they below to:&lt;/li&gt;
&lt;/ol&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;dsquery group -name &amp;#34;GroupName&amp;#34; | dsget group -members
&lt;/code&gt;&lt;/pre&gt;&lt;ol start=&#34;2&#34;&gt;
&lt;li&gt;Add this to the command to only get the display name of the users:&lt;/li&gt;
&lt;/ol&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;dsquery group -name &amp;#34;GroupName&amp;#34; | dsget group -members | dsget user -display
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;strong&gt;Update:&lt;/strong&gt; I have posted more recently with updated/additional commands: &lt;a href=&#34;https://thenetworkstack.com/active-directory-powershell/&#34;&gt;https://thenetworkstack.com/active-directory-powershell/&lt;/a&gt;&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>If you need to get a list of all members in an AD Security Group, open up powershell and try the following commands from a DC:</p>
<ol>
<li>This command will list all the members and the OU structure they below to:</li>
</ol>
<pre tabindex="0"><code>dsquery group -name &#34;GroupName&#34; | dsget group -members
</code></pre><ol start="2">
<li>Add this to the command to only get the display name of the users:</li>
</ol>
<pre tabindex="0"><code>dsquery group -name &#34;GroupName&#34; | dsget group -members | dsget user -display
</code></pre><p><strong>Update:</strong> I have posted more recently with updated/additional commands: <a href="/active-directory-powershell/">https://thenetworkstack.com/active-directory-powershell/</a></p>
]]></content:encoded>
    </item>
    <item>
      <title>Active Directory Delegating Permissions</title>
      <link>https://thenetworkstack.com/active-directory-delegating-permissions/</link>
      <pubDate>Wed, 01 Oct 2014 05:44:24 +0000</pubDate>
      <guid>https://thenetworkstack.com/active-directory-delegating-permissions/</guid>
      <description>&lt;p&gt;I needed to delegate permissions to helpdesk (instead of making them domain admins) to create and modify users, and modify group membership.  This is slightly different from some of the built in permission groups, since we didn&amp;rsquo;t want helpdesk to delete users.  Permissions are delegated at the OU level, and remember that permissions are pushed down and inherited.&lt;/p&gt;
&lt;p&gt;This is what I used to delegate these permissions:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Right click the OU, and select &amp;ldquo;Delegate Control&amp;rdquo; and click &amp;ldquo;Next&amp;rdquo;&lt;/li&gt;
&lt;li&gt;Add your Security Group (I called mine &lt;em&gt;Delegated Helpdesk&lt;/em&gt;)&lt;/li&gt;
&lt;li&gt;Click &amp;ldquo;Modify the membership of a group&amp;rdquo;, then &amp;ldquo;Next&amp;rdquo; and &amp;ldquo;Finish&amp;rdquo;&lt;/li&gt;
&lt;li&gt;First section done!&lt;/li&gt;
&lt;li&gt;Go through steps 1 and 2 again&lt;/li&gt;
&lt;li&gt;Select the button &amp;ldquo;Create a custom task to delegate&amp;rdquo; and click &amp;ldquo;Next&amp;rdquo;&lt;/li&gt;
&lt;li&gt;Select the button &amp;ldquo;Only the following objects in the folder:&amp;rdquo; and select &amp;ldquo;User objects&amp;rdquo;&lt;/li&gt;
&lt;li&gt;Click &amp;ldquo;Create selected objects in this folder&amp;rdquo; and click &amp;ldquo;Next&amp;rdquo;&lt;/li&gt;
&lt;li&gt;Click the following permissions:
&lt;ul&gt;
&lt;li&gt;Read All Properties&lt;/li&gt;
&lt;li&gt;Write All Properties&lt;/li&gt;
&lt;li&gt;Read and write general information&lt;/li&gt;
&lt;li&gt;Read and write logon information&lt;/li&gt;
&lt;li&gt;Read and write phone and mail options&lt;/li&gt;
&lt;li&gt;Read and write web information&lt;/li&gt;
&lt;li&gt;Change password&lt;/li&gt;
&lt;li&gt;Reset password&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Click &amp;ldquo;Next&amp;rdquo; and then &amp;ldquo;Finish&amp;rdquo;&lt;/li&gt;
&lt;li&gt;You are now finished.  Users in the &lt;em&gt;Delegated Helpdesk&lt;/em&gt; group should be able to create and modify users, and group membership.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;If you ever need to revert your changes, click on Properties -&amp;gt; Security (requires advanced view) for the OU, and remove the permissions.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>I needed to delegate permissions to helpdesk (instead of making them domain admins) to create and modify users, and modify group membership.  This is slightly different from some of the built in permission groups, since we didn&rsquo;t want helpdesk to delete users.  Permissions are delegated at the OU level, and remember that permissions are pushed down and inherited.</p>
<p>This is what I used to delegate these permissions:</p>
<ol>
<li>Right click the OU, and select &ldquo;Delegate Control&rdquo; and click &ldquo;Next&rdquo;</li>
<li>Add your Security Group (I called mine <em>Delegated Helpdesk</em>)</li>
<li>Click &ldquo;Modify the membership of a group&rdquo;, then &ldquo;Next&rdquo; and &ldquo;Finish&rdquo;</li>
<li>First section done!</li>
<li>Go through steps 1 and 2 again</li>
<li>Select the button &ldquo;Create a custom task to delegate&rdquo; and click &ldquo;Next&rdquo;</li>
<li>Select the button &ldquo;Only the following objects in the folder:&rdquo; and select &ldquo;User objects&rdquo;</li>
<li>Click &ldquo;Create selected objects in this folder&rdquo; and click &ldquo;Next&rdquo;</li>
<li>Click the following permissions:
<ul>
<li>Read All Properties</li>
<li>Write All Properties</li>
<li>Read and write general information</li>
<li>Read and write logon information</li>
<li>Read and write phone and mail options</li>
<li>Read and write web information</li>
<li>Change password</li>
<li>Reset password</li>
</ul>
</li>
<li>Click &ldquo;Next&rdquo; and then &ldquo;Finish&rdquo;</li>
<li>You are now finished.  Users in the <em>Delegated Helpdesk</em> group should be able to create and modify users, and group membership.</li>
</ol>
<p>If you ever need to revert your changes, click on Properties -&gt; Security (requires advanced view) for the OU, and remove the permissions.</p>
]]></content:encoded>
    </item>
    <item>
      <title>Palo Alto Firewall AD Group Mapping</title>
      <link>https://thenetworkstack.com/palo-alto-firewall-ad-group-mapping/</link>
      <pubDate>Mon, 29 Sep 2014 19:53:06 +0000</pubDate>
      <guid>https://thenetworkstack.com/palo-alto-firewall-ad-group-mapping/</guid>
      <description>&lt;p&gt;These commands will help troubleshoot and resolve issues with Active Directory groups on your PAN firewall.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;1. Shows every AD group added to the PAN firewall:&lt;/strong&gt;&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;show user group list
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;strong&gt;2. Shows the user and IP address mapping (or specific user):&lt;/strong&gt;&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;show user ip-user-mapping all
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;strong&gt;3. Gives more detailed statistics of the command above:&lt;/strong&gt;&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;show user group-mapping state all
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;strong&gt;4. Shows the user members of the group specified:&lt;/strong&gt;&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;show user group name &amp;#34;group_name&amp;#34;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;strong&gt;5. Re-pulls the user-to-group mapping from AD:&lt;/strong&gt;&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>These commands will help troubleshoot and resolve issues with Active Directory groups on your PAN firewall.</p>
<p><strong>1. Shows every AD group added to the PAN firewall:</strong></p>
<pre tabindex="0"><code>show user group list
</code></pre><p><strong>2. Shows the user and IP address mapping (or specific user):</strong></p>
<pre tabindex="0"><code>show user ip-user-mapping all
</code></pre><p><strong>3. Gives more detailed statistics of the command above:</strong></p>
<pre tabindex="0"><code>show user group-mapping state all
</code></pre><p><strong>4. Shows the user members of the group specified:</strong></p>
<pre tabindex="0"><code>show user group name &#34;group_name&#34;
</code></pre><p><strong>5. Re-pulls the user-to-group mapping from AD:</strong></p>
<pre tabindex="0"><code>debug user-id reset group-mapping all
</code></pre><p><strong>6. Refreshes all user-to-IP mappings:</strong></p>
<pre tabindex="0"><code>debug user-id refresh user-id agent all
</code></pre><p><strong>7. Restarts the user-id service (this command is usually not needed):</strong></p>
<pre tabindex="0"><code>debug software restart user-id
</code></pre>]]></content:encoded>
    </item>
  </channel>
</rss>
