<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Nixadmins.net &#187; Active Directory</title>
	<atom:link href="http://www.nixadmins.net/category/windows/active-directory-windows/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nixadmins.net</link>
	<description>Blogging for knowledge</description>
	<lastBuildDate>Mon, 24 May 2010 08:06:54 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Unable to use Active Sync / direct push on Exchange 2010</title>
		<link>http://www.nixadmins.net/2010/05/24/unable-to-use-active-sync-direct-push-on-exchange-2010/</link>
		<comments>http://www.nixadmins.net/2010/05/24/unable-to-use-active-sync-direct-push-on-exchange-2010/#comments</comments>
		<pubDate>Mon, 24 May 2010 08:06:54 +0000</pubDate>
		<dc:creator>Mats Hellman</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[Exchange Server]]></category>
		<category><![CDATA[Active Sync]]></category>

		<guid isPermaLink="false">http://www.nixadmins.net/2010/05/24/unable-to-use-active-sync-direct-push-on-exchange-2010/</guid>
		<description><![CDATA[We had some trouble with users not being able to sync their mail, contacts and calendar to their mobile phone. The configuration works but when the synchronization starts we get a entry in the local log “Error in Exchange Server”.
Checking the logs on the Client Access server pointed me to look at permissions and it [...]]]></description>
			<content:encoded><![CDATA[<p>We had some trouble with users not being able to sync their mail, contacts and calendar to their mobile phone. The configuration works but when the synchronization starts we get a entry in the local log “Error in Exchange Server”.</p>
<p>Checking the logs on the Client Access server pointed me to look at permissions and it seems like some accounts have disabled the inherited security rights. This is the problem since Exchange can’t access the account information.</p>
<p>To check this you use Active Directory Users and Computers and open the user in question. Open the Security tab and press Advanced. On the open window you should se the “Include inheritable permissions from this object’s parent”. If it’s not selected your Active sync will fail.</p>
<p><a href="http://www.nixadmins.net/wp-content/uploads/2010/05/image.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.nixadmins.net/wp-content/uploads/2010/05/image_thumb.png" width="382" height="104" /></a> </p>
<p>Hope this shortens someone’s troubleshooting session.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nixadmins.net/2010/05/24/unable-to-use-active-sync-direct-push-on-exchange-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting up SSL-VPN in an Windows Server 2008 environment</title>
		<link>http://www.nixadmins.net/2009/10/28/setting-up-ssl-vpn-in-an-windows-server-2008-environment/</link>
		<comments>http://www.nixadmins.net/2009/10/28/setting-up-ssl-vpn-in-an-windows-server-2008-environment/#comments</comments>
		<pubDate>Wed, 28 Oct 2009 17:45:14 +0000</pubDate>
		<dc:creator>Mats Hellman</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[Remote Access]]></category>
		<category><![CDATA[VPN]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Certificate Services]]></category>
		<category><![CDATA[SSL VPN]]></category>
		<category><![CDATA[SSTP VPN]]></category>

		<guid isPermaLink="false">http://www.nixadmins.net/2009/10/28/setting-up-ssl-vpn-in-an-windows-server-2008-environment/</guid>
		<description><![CDATA[In this 2 part series we will look at setting up SSL-VPN using Windows Server 2008. At the end on the next part you will be able to configure a Windows Vista or Windows 7 client to connect to the corporate network using SSL-VPN ( SSTP ). To test this scenario you need some previous [...]]]></description>
			<content:encoded><![CDATA[<p>In this 2 part series we will look at setting up SSL-VPN using <a href="http://www.microsoft.com/WindowsServer" target="_blank">Windows Server</a> 2008. At the end on the next part you will be able to configure a Windows Vista or Windows 7 client to connect to the corporate network using SSL-VPN ( SSTP ). To test this scenario you need some previous knowledge of Windows Server System and Active Directory in particular. We will be using Active Directory to logon to VPN and control user access using it. If you, like me, don’t feel like testing in an production environment you can set this lab up in an Virtual PC or Virtual Server environment. I will not be going trough setting up Windows Server 2008 AD DS in this article. I expect you to have your domain up and running. To run this lab you will need the following</p>
<ul>
<li>Windows Server 2008 Enterprise running HEL-DC1
<ul>
<li>AD DS </li>
<li>DHCP </li>
<li>DNS </li>
<li>AD CS ( Certificate Services Enterprise CA) </li>
</ul>
</li>
<li>Windows Server 2008 Enterprise running HEL-NAT
<ul>
<li>2 network interfaces – External and internal </li>
</ul>
</li>
<li>Windows Vista Business Edition
<ul>
<li>Service Pack 2 </li>
</ul>
</li>
</ul>
<p>  <span id="more-591"></span>
<p>If you don’t have access to <a href="http://www.microsoft.com" target="_blank">Microsoft</a> Volume Licensing, a Technet Subscription or a MSDN Subscription you can download the <a href="http://www.microsoft.com/windowsserver2008/en/us/trial-software.aspx" target="_blank">trial versions</a> of the systems above, they are free and you can use them for 180 days. So you&#8217;ll have more than enough time to complete this lab. Our setup will look as figure 1 shows. </p>
<p><b><i>Figure 1<a href="http://www.nixadmins.net/wp-content/uploads/2009/10/setup.jpg"><img style="border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px" title="setup" border="0" alt="setup" src="http://www.nixadmins.net/wp-content/uploads/2009/10/setup_thumb.jpg" width="237" height="244" /></a> </i></b></p>
<p>As you can see we are using private IP:s only and we have not deployed a DNS server on our private little internet because the easier way in a small lab like this is to use the Windows <strong><em>host </em></strong>file. </p>
<p>The ip addresses assigned are as follows,</p>
<ul>
<li>hel-dc1 192.168.0.1/24</li>
<li>hel-cli1 10.0.0.150/8</li>
<li>vpngw</li>
<ul>
<li>Internal Network 192.168.0.254/24</li>
<li>External Network 10.0.0.1/8</li>
</ul>
</ul>
<p>All machines are part of the domain. So before you move the <strong>hel-cli1</strong> “laptop” out of the 192.168.0.0 network remember it has to be joined to the domain.</p>
<h3>Setting up the VPN Gateway Server</h3>
<p>So I’m depending on you to have a working Active Directory from this point on and the Domain Controller should have the <em>Active Directory Certificate Services</em> installed and it should be a <em>Enterprise Certification Authority </em>not a Standalone. Well then, let’s move on.</p>
<p>First of all we need to install the correct roles on our VPN Gateway server. So start up your Server Manager and select <strong>Add Roles</strong>.</p>
<h3>Install Webb server role</h3>
<p>To get SSTP-VPN working we need the Web server role. And we will use the IIS management console to get a certificate from the Enterprise Certification Authority (HEL-DC1 in my case). In server manager click <em>Web Server (IIS)<strong> </strong></em>and add the required features.</p>
</p>
<p><a href="http://www.nixadmins.net/wp-content/uploads/2009/10/image3.png"><img style="border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px" title="image" border="0" alt="image" src="http://www.nixadmins.net/wp-content/uploads/2009/10/image_thumb3.png" width="244" height="185" /></a></p>
<p>When done select next next.</p>
<h4>Role Services</h4>
<p>For some reason we need to select every role service under <strong>security </strong>to be enable to get a certificate from the Enterprise CA. So select every role service under <strong><em>Security</em></strong>.</p>
<p><a href="http://www.nixadmins.net/wp-content/uploads/2009/10/image4.png"><img style="border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px" title="image" border="0" alt="image" src="http://www.nixadmins.net/wp-content/uploads/2009/10/image_thumb4.png" width="244" height="185" /></a></p>
<p>That’s it. Select next and at the <em>Confirm Installation Selections</em> click install and sit back and relax for a minute. Maybe even grab a cup of coffee if your system is slow enough <img src='http://www.nixadmins.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> .</p>
<h3>Getting the web server certificate from the Enterprise CA</h3>
<p>Next we need to get a certificate to encrypt our sessions and to identify the server. So we want the certificate name to be the same as the external DNS name of the server. In my case it’s the same as the internal DNS name. Open the <em>Server manager</em> again and go to <em>Roles, Web Server, Internet Information Services Manager</em>. Select the server name, VPNGW and select <em><strong>Server Certificates</strong>. </em>In the right side <em>Action Pane </em>select&#160; <em>Create Domain Certificate.</em> The <strong>most</strong> important field is the <strong><em>Common name</em></strong>, this is the field that identifies the server to the clients accessing it from the outside. So be sure to set the <em>Common name </em>to whatever your external server name is. In this case, <strong><em>vpngw.nixadmins.net</em></strong>. As I said in the beginning I’m running this in Virtual PC so I’ll use the host file to set it on the client but in a real world case this is important. Nagged enough? Ok, let’s move on.</p>
<p><a href="http://www.nixadmins.net/wp-content/uploads/2009/10/image5.png"><img style="border-bottom: 0px; border-left: 0px; margin: 15px auto; display: block; float: none; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.nixadmins.net/wp-content/uploads/2009/10/image_thumb5.png" width="244" height="187" /></a>After&#160; clicking next you are presented with a dialog to select your <em>Online certification Authority</em>. Since we have our AD CS ( Active Directory Certificate Services ) running on our domain controller we just hit select and pick our Enterprise CA, the HEL-DC1.</p>
<p><a href="http://www.nixadmins.net/wp-content/uploads/2009/10/image6.png"><img style="border-bottom: 0px; border-left: 0px; margin: 15px auto; display: block; float: none; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.nixadmins.net/wp-content/uploads/2009/10/image_thumb6.png" width="244" height="187" /></a>Set the friendly name to something descriptive like <em>SSTP Certificate</em> since that’s what we will be using it for. Click finish and you should se the certificate in the list of server certificates.</p>
<h3>Setting up Routing and Remote Access</h3>
<p>The server also needs to be able to route the requests from the external to the internal network so we need the <em>Routing and Remote Access</em> role. In my case it also works as a router for the internal clients so they can access the external networks. Once again in <em>Server Manager </em>select add role and select <strong><em>Network Policy and Access Services</em></strong>. </p>
<p><a href="http://www.nixadmins.net/wp-content/uploads/2009/10/image7.png"><img style="border-bottom: 0px; border-left: 0px; margin: 15px auto; display: block; float: none; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.nixadmins.net/wp-content/uploads/2009/10/image_thumb7.png" width="244" height="185" /></a> Click next until <em>Role Services. </em>We won’t be using NAP quite yet, maybe in a later post if there is an demand for it, so just select the <strong><em>Routing and Remote Access Services</em></strong>. </p>
<p><a href="http://www.nixadmins.net/wp-content/uploads/2009/10/image8.png"><img style="border-bottom: 0px; border-left: 0px; margin: 15px auto; display: block; float: none; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.nixadmins.net/wp-content/uploads/2009/10/image_thumb8.png" width="244" height="185" /></a> Confirm the installation and sit back and wait.</p>
<h3>Configuring Routing and Remote Access</h3>
<p>We now need to activate the <em>Routing and Remote access. </em>In <em>Server manger </em>roles you’ll find the <em>Network Policy and Access, Routing and Remote Access.</em> As you can se it hasn’t yet been activated.</p>
<p><a href="http://www.nixadmins.net/wp-content/uploads/2009/10/image9.png"><img style="border-bottom: 0px; border-left: 0px; margin: 15px auto; display: block; float: none; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.nixadmins.net/wp-content/uploads/2009/10/image_thumb9.png" width="244" height="187" /></a> Right click <em>Routing and Remote Access </em>and select <em>Configure and Enable Routing and Remote Access.</em> I’m using this server for NAT so the internal clients use it as a gateway so I need to select <strong><em>Virtual Private Network (VPN) access and NAT</em></strong>. Click next and select your external network interface.</p>
<p><a href="http://www.nixadmins.net/wp-content/uploads/2009/10/image10.png"><img style="border-bottom: 0px; border-left: 0px; margin: 15px auto; display: block; float: none; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.nixadmins.net/wp-content/uploads/2009/10/image_thumb10.png" width="244" height="202" /></a> Set the IP Address Assignment to <em>Automatically</em>. This way it will use the internal DHCP server to relay the addresses. </p>
<p><a href="http://www.nixadmins.net/wp-content/uploads/2009/10/image11.png"><img style="border-bottom: 0px; border-left: 0px; margin: 15px auto; display: block; float: none; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.nixadmins.net/wp-content/uploads/2009/10/image_thumb11.png" width="244" height="202" /></a> Select <em>No, use Routing and Remote Access to authenticate connection requests</em> on the next page.</p>
<p><a href="http://www.nixadmins.net/wp-content/uploads/2009/10/image12.png"><img style="border-bottom: 0px; border-left: 0px; margin: 15px auto; display: block; float: none; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.nixadmins.net/wp-content/uploads/2009/10/image_thumb12.png" width="244" height="202" /></a> </p>
<p>Finish the setup and wait for it to complete.</p>
<p><a href="http://www.nixadmins.net/wp-content/uploads/2009/10/image13.png"><img style="border-bottom: 0px; border-left: 0px; margin: 15px auto; display: block; float: none; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.nixadmins.net/wp-content/uploads/2009/10/image_thumb13.png" width="244" height="202" /></a> That’s it. Once the wizard is done you have Remote Access setup. Tomorrow we’ll go trough how to allow the client to access the network using our new SSTP VPNGW and we will set up our Windows Vista client to connect to our corporate network. Until then, I’ll answer your questions and if you have any requests on special subjects don’t be afraid to ask, I’ll do my best to create them. Se you tomorrow.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nixadmins.net/2009/10/28/setting-up-ssl-vpn-in-an-windows-server-2008-environment/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Using restricted groups in Active Directory</title>
		<link>http://www.nixadmins.net/2009/10/21/using-restricted-groups-in-active-directory/</link>
		<comments>http://www.nixadmins.net/2009/10/21/using-restricted-groups-in-active-directory/#comments</comments>
		<pubDate>Tue, 20 Oct 2009 22:28:58 +0000</pubDate>
		<dc:creator>Mats Hellman</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[Group Policy]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Group policy]]></category>
		<category><![CDATA[Help Desk]]></category>
		<category><![CDATA[Restricted groups]]></category>

		<guid isPermaLink="false">http://www.nixadmins.net/2009/10/21/using-restricted-groups-in-active-directory/</guid>
		<description><![CDATA[Using restricted groups is something very simple and still for many very confusing. Using restricted groups you can delegate administration or other roles to certain groups without giving these groups administrative rights to your Active Directory. 
As an example, let’s say you have a helpdesk working in your company. For them to work as efficiently [...]]]></description>
			<content:encoded><![CDATA[<p>Using restricted groups is something very simple and still for many very confusing. Using <strong>restricted groups</strong> you can <em>delegate</em> administration or other roles to certain groups without giving these groups administrative rights to your <em>Active Directory.</em> </p>
<p>As an example, let’s say you have a helpdesk working in your company. For them to work as efficiently as possible they might need to login as <em>Administrators</em> to a client computer to fix various problems. Sometimes (read most times) you don’t want your helpdesk having Domain level Administrative rights because they might, even unknowingly, mess something up in your production domain. To deal with this we use <strong>Restricted groups</strong>. Restricted groups are provided by Active Directory <strong><em>group policies</em></strong>, they provide us a way to centrally drop in certain Active directory groups to <strong>computers local groups, </strong>yes computer local groups. They don’t have to administrative groups, they might be anything from backup users to Power Users.</p>
<p><span id="more-537"></span><br />
<h3> Setting up restricted groups</h3>
<p>Let’s take a look at how to set up our Helpdesk scenario. First we need to create the group (unless you already have one). So start up <strong>Active Directory</strong> <strong>Users And Computers</strong> and place the group in an Organizational Unit (OU) fitting your needs. I will use the OU HelpDesk. In the OU I will create a <strong>Global Security </strong>group called HelpDeskAdmins. I also have a user Helmer Help in my OU and he will be, for now, the only member of HelpDeskAdmins. </p>
<p><a href="http://www.nixadmins.net/wp-content/uploads/2009/10/aduc1.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="aduc1" border="0" alt="aduc1" src="http://www.nixadmins.net/wp-content/uploads/2009/10/aduc1_thumb.jpg" width="597" height="239" /></a> </p>
<p>Now we have a group and a user to test with so let’s get on by creating our <em><strong>Group policy</strong> </em>to enforce this setting.</p>
<h3>Creating the restricted groups group policy object</h3>
<p>If you don’t have Group policy management console installed you can download it from <a title="http://www.microsoft.com/DownLoads/details.aspx?FamilyID=0a6d4c24-8cbd-4b35-9272-dd3cbfc81887&amp;displaylang=en" href="http://www.microsoft.com/DownLoads/details.aspx?FamilyID=0a6d4c24-8cbd-4b35-9272-dd3cbfc81887&amp;displaylang=en">http://www.microsoft.com/DownLoads/details.aspx?FamilyID=0a6d4c24-8cbd-4b35-9272-dd3cbfc81887&amp;displaylang=en</a></p>
<p>So let’s create a new group policy called <strong>HelpDesk Privleges</strong> and link it to any existing OU containing the computers you want the helpdesk users to be able to manage. In my lab this is the Sales OU. Now edit the created and linked GPO.&#160; Navigate to <strong><em>Computer Settings\Windows Settings\Security Settings\Restricted Groups.</em></strong></p>
<p>Right click in the viewer and select Add group. Type or browse for your group, in my case <em>CORP\HelpDeskAdmins </em></p>
<p><em><a href="http://www.nixadmins.net/wp-content/uploads/2009/10/add_grp1.jpg"><img style="border-bottom: 0px; border-left: 0px; margin: 10px; display: inline; border-top: 0px; border-right: 0px" title="add_grp1" border="0" alt="add_grp1" src="http://www.nixadmins.net/wp-content/uploads/2009/10/add_grp1_thumb.jpg" width="377" height="153" /></a></em></p>
<p>Hit OK and you’ll be presented with the CORP\HelpDeskAdmins Properties window. The tab says <strong>Configure Membership for CORP\HelpDeskAdmins</strong>. You have to boxes to fill in here. <strong>Members of this group </strong>and <strong>This group is a member of</strong>. If you set the <strong>Members of this</strong>&#160;<strong>group</strong> it will WIPE any other user or group from the defined local group. Simply, if the user/group is not set in the <strong>Members of this group</strong> it will be removed from the local group also. Wiped, gone, bye.</p>
<p>That’s not what we are out to do here, we simply want to add a group to the client computers Administrators group. So we use the <strong>This group is a member of</strong> box and enter the local Administrators group named, Administrators by selecting ad and typing the name.</p>
<p><a href="http://www.nixadmins.net/wp-content/uploads/2009/10/group_members.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="group_members" border="0" alt="group_members" src="http://www.nixadmins.net/wp-content/uploads/2009/10/group_members_thumb.jpg" width="368" height="452" /></a> </p>
<p>That’s it. Save and check the policy is linked to a OU.</p>
<p><a href="http://www.nixadmins.net/wp-content/uploads/2009/10/image.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.nixadmins.net/wp-content/uploads/2009/10/image_thumb.png" width="644" height="224" /></a>&#160;</p>
<p>To test the scenario I’m logging in to a Windows Vista client with the Help desk employee Helmer Help, and delete an old local user Mats. If the computer hasn’t updated it’s group policies you can speed it up by running <strong><em>gpupdate /force.</em></strong> If you’re logged in as the same user you want to use as an helpdesk user log out and in again to get the correct permissions.</p>
<h3>Check the privileges</h3>
<p>Now let’s se if our group has been added to the Local Administrators and I’ll delete the old local account to demonstrate Helmer has administrative privileges. So go to <strong>Controll Panel\Administative Tools\Computer Management\Local Users and Groups\Groups</strong>. Open&#160; Administrators and behold, CORP\HelpDeskAdmins has been added to Administrators.</p>
<p><a href="http://www.nixadmins.net/wp-content/uploads/2009/10/image1.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.nixadmins.net/wp-content/uploads/2009/10/image_thumb1.png" width="418" height="463" /></a> </p>
<p>And as you can se we also have a Local account called Mats so let’s delete it to try out our new godlike powers.</p>
<p><a href="http://www.nixadmins.net/wp-content/uploads/2009/10/image2.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.nixadmins.net/wp-content/uploads/2009/10/image_thumb2.png" width="418" height="463" /></a> </p>
<p>There you have it. Now Help desk workers are able to work on client computers with administrative privileges without messing up anything else. And since this is according to organizational units you can restrict different help desks to different OU:s.</p>
<h3>Conclusion</h3>
<p>Restricted groups in Group policies are a simple way of delegating permissions or group membership centrally to any domain computer or server. Using restricted groups it is easier to enforce the lowest possible permissions to any given account.</p>
<p>If you have any comments or questions about using restricted groups don’t hesitate to drop me a line by commenting.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nixadmins.net/2009/10/21/using-restricted-groups-in-active-directory/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
