{"id":967,"date":"2016-07-20T13:13:44","date_gmt":"2016-07-20T03:13:44","guid":{"rendered":"https:\/\/girl-germs.com\/?p=967"},"modified":"2016-07-22T07:34:47","modified_gmt":"2016-07-21T21:34:47","slug":"fgpps-psos-translated-yay-more-domain-password-control","status":"publish","type":"post","link":"https:\/\/girl-germs.com\/?p=967","title":{"rendered":"FGPP&#8217;s &#038; PSO&#8217;s &#8211; translated: &#8220;Yay! More domain password control!&#8221;"},"content":{"rendered":"<p>I&#8217;ve previously spoken about security and password management\u00a0(if you need a refresher, I&#8217;m referring to <a href=\"https:\/\/girl-germs.com\/?p=472\">this post<\/a> and <a href=\"https:\/\/girl-germs.com\/?p=459\">this post<\/a>) however I neglected to go into detail regarding one really cool and amazing thing &#8211; Fine-Grained Password Policies &amp; Password Setting Objects&#8230;and I&#8217;ve been promising to write this post for months!<\/p>\n<p>I know a lot of this can be found on the MS TechNet site, but I hope to inject a bit of real world &#8220;this is why we did things the way we did them&#8221; into this, so it gives you a better understand of how they can be applied and what the settings do.<\/p>\n<p>Now, FGPP&#8217;s aren&#8217;t new. They&#8217;re not something that&#8217;s just been released. They&#8217;ve been around for\u00a0quite a while &#8211; it&#8217;s just that many admins out there don&#8217;t seem to know they exist. So trust me, once you&#8217;ve played around with FGPP&#8217;s, you won&#8217;t want to go back&#8230;<\/p>\n<p><b><u>FGPP&#8217;s &amp; PSO&#8217;s<\/u><\/b><\/p>\n<p>FGPP&#8217;s are, quite simply, the best thing ever for domain passwords (notice I said\u00a0<strong>domain<\/strong> there, not local&#8230;LAPS is in a league of it&#8217;s own and I&#8217;m in the process of writing a piece on that too!) and it can make a huge difference to the security of your environment. Being able to have multiple password policies in your environment means flexibility without the need for compromising security.<\/p>\n<p>For those who aren&#8217;t aware of FGPP&#8217;s (and <a href=\"https:\/\/technet.microsoft.com\/en-us\/library\/cc770394(v=ws.10).aspx\">quoting\u00a0directly from Microsoft<\/a>):<br \/>\n&#8220;You can use fine-grained password policies to specify multiple password policies within a single domain. You can use fine-grained password policies to apply different restrictions for password and account lockout policies to different sets of users in a domain.&#8221;<\/p>\n<p>Yes, you read it right folks &#8211; it lets you have\u00a0<strong>multiple password policies<\/strong> within the one domain. This makes life so much easier, especially if you&#8217;re doing the right thing and having your desktop, server and domain admin accounts have decently long and complex passwords!<\/p>\n<p><span style=\"text-decoration: underline;\"><strong>Example uses<\/strong><\/span><\/p>\n<p>So, a few examples &#8211; and I&#8217;m actually going to pull these from my experience in setting up, as these are policies we currently have in place at the moment (or are trying to get put in place!):<\/p>\n<ul>\n<li><strong>Admin Accounts<\/strong> &#8211; if you&#8217;re a good admin, and have set up your admin accounts the way you&#8217;re\u00a0<span style=\"text-decoration: underline;\">supposed<\/span> to, you should have 4 distinct accounts. However, the standard admin policy may not work for your admin accounts (as mentioned above) so creating some specific password policies for this accounts would be good. Increase the character length, possibly increase the change time (or decrease depending on the paranoia of your organisation), increase the lockout duration (to prevent brute-force attacks).<\/li>\n<li><strong>Generic Accounts<\/strong> &#8211; Generic accounts are great, but they&#8217;re used for such random things that it&#8217;s sometimes hard to make sure they&#8217;re being used correctly and securely. Putting in a password policy that increases the length of the password dramatically (say, to 25 characters) would increase the security of the account dramatically.<\/li>\n<li><strong>Service Accounts<\/strong> &#8211; Service account password changes are\u00a0<span style=\"text-decoration: underline;\">always<\/span> notoriously ugly, because they&#8217;re used in so many places and (most of the time) it&#8217;s not actually documented where they&#8217;re used. However, they still need to have their passwords reset on a regular basis&#8230;but maybe not quite as regular as every 30-60 days. Implementing an FGPP that states that a Service Account needs to have a minimum 30 character password\u00a0<span style=\"text-decoration: underline;\">but<\/span> it only needs to be changed once a year does away with some of the security headaches that come with service accounts. Yes, it might be possible to use something like <a href=\"https:\/\/technet.microsoft.com\/en-us\/library\/dd560633(v=ws.10).aspx\">Managed Service Accounts<\/a>\u00a0or <a href=\"https:\/\/technet.microsoft.com\/en-us\/library\/hh831782(v=ws.11).aspx\">Group Managed Service Accounts <\/a>but if your environment is anything like ours, you&#8217;ll find a lot of applications really <strong>*<\/strong><strong>really*\u00a0<\/strong>don&#8217;t like them. They&#8217;ll hopefully improve, but until they do FGPP&#8217;s for service accounts is a start.<\/li>\n<li><strong>Accounts with specific password requirements<\/strong> &#8211; One of the biggest issues I see with Domain-wide password policies is that they&#8217;re usually catered to the lowest common denominator. You have an niche application in your organisation that says users can&#8217;t have a password that&#8217;s more than 6 characters. So the default minimum becomes\u00a06 characters&#8230;for <strong>*everyone*<\/strong>. Why should everyone&#8217;s account become insecure to cater to a few? Put in an FGPP for users of that application, so their password fits the idiotic criteria of their application; while everyone else can have a decent password policy applied to them.<\/li>\n<\/ul>\n<p>Use these to explain to your management why they&#8217;re a good idea and why you want to put them in place. Should hopefully help in getting traction in getting them implemented!<\/p>\n<p><span style=\"text-decoration: underline;\"><strong>How to setup fine grained password settings<\/strong><\/span><\/p>\n<p>Honestly, they&#8217;re incredibly simple to set up, you just need a few details before you start:<\/p>\n<ul>\n<li><strong>You&#8217;ll need to be an admin\u00a0<\/strong>&#8211; You&#8217;ll be editing your PSO&#8217;s via ADSI edit (at least that&#8217;s how I do it!) and the CN=System is locked down. Depending on how your domain has been configured, this admin might require DA rights (as in our case) or Enterprise Admin rights (as this is inherited from the top). You&#8217;ll need to check to see what rights you&#8217;ll need to create these objects.<\/li>\n<li><strong>You&#8217;ll need access to edit CN=Password Settings Container<\/strong> &#8211; this isn&#8217;t access, this is just usability. Either via ADSI or PowerShell (whichever floats your boat!) you&#8217;ll need some way to add objects under this CN.<\/li>\n<li><strong>What password policies you want to implement<\/strong> &#8211; honestly, this should be a no brainer, but so many people go into creating these *<strong>not<\/strong>* knowing what they actually want them to do. I&#8217;ll go into detail a bit later down the post as what you need to know when you&#8217;re creating them, but I suggest documenting these before hand &#8211; especially if you have change procedures!<\/li>\n<li><strong>What group of users you want to apply it to<\/strong> &#8211; when I say group, I mean group literally. You&#8217;ll want\u00a0an AD Group to apply the settings to. This group also needs to be a Global security group.\u00a0(thanks to <a href=\"https:\/\/twitter.com\/AJSchmiede\">Alicia <\/a>in the comments for this tip!)<\/li>\n<\/ul>\n<p>Now, onto setting them up &#8211; I&#8217;ll be giving instructions via ADSI edit because I like my point&#8217;n&#8217;click (don&#8217;t judge me&#8230;).\u00a0If you want to do it via PowerShell, Microsoft&#8217;s TechNet have some great knowledge base articles on <a href=\"https:\/\/technet.microsoft.com\/en-us\/library\/ee617238.aspx\">creating a PSO via PowerShell<\/a>\u00a0and <a href=\"https:\/\/technet.microsoft.com\/en-us\/library\/cc731589(v=ws.10).aspx\">setting a PSO via PowerShell<\/a>.<\/p>\n<p>You can also use ADAC or so I&#8217;m told&#8230;I never got into using ADAC because I&#8217;m stuck in my ways. <a href=\"https:\/\/twitter.com\/pierreroman\">Pierre Roman<\/a> (lovely guy!) wrote <a href=\"https:\/\/blogs.technet.microsoft.com\/canitpro\/2013\/05\/29\/step-by-step-enabling-and-using-fine-grained-password-policies-in-ad\/\">a great post on how to set FGPP&#8217;s up using ADAC<\/a> if you prefer that way.<\/p>\n<p>But&#8230;I use ADSI, so onwards we proceed with that!<\/p>\n<ul>\n<li>Open ADSI edit (these instructions assume you&#8217;ve used ADSI edit before&#8230;)<\/li>\n<li>Ensure you&#8217;ve opened &#8220;Default naming context&#8221;<\/li>\n<li>Expand out your domain e.g. DC=domain,DC=com<\/li>\n<li>Expand out &#8216;CN=System&#8217;<\/li>\n<li>Open the &#8216;CN=Passowrd Settings Container&#8217;<\/li>\n<li>Right-click (either on the container or in the container display) and select &#8216;New&#8217; -&gt; &#8216;Object&#8217;<\/li>\n<li>Click &#8216;Next&#8217;<\/li>\n<li>Give your PSO a name &#8211; make it something that is descriptive so you know what&#8217;s being used for!<\/li>\n<li>Click &#8216;Next&#8217;<\/li>\n<li>Now comes to the fun part I mentioned above &#8211; the settings you should know\u00a0<strong>*ahead of time*<\/strong>\n<ul>\n<li><span style=\"text-decoration: underline;\">Password Settings Precedence<\/span> &#8211; (Integer)\u00a0Ideally, set this to 1 because you want this to be the password setting that applies. If you have overlapping PSO&#8217;s, that&#8217;s where this gets a bit trickier.<\/li>\n<li><span style=\"text-decoration: underline;\">Password reversible encryption status for user accounts<\/span>\u00a0&#8211; (Boolean) True or False. For the love of all you hold holy, set it to False.<\/li>\n<li><span style=\"text-decoration: underline;\">Password History Length for user accounts<\/span> &#8211; (Integer) 0-1024, this is the number of passwords that are &#8220;remembered&#8221; by the system. We tend to go with at least a few (6-24, depending) so that the same password can&#8217;t be reused within a decent span of time.<\/li>\n<li><span style=\"text-decoration: underline;\">Password complexity status for user accounts<\/span> &#8211; (Boolean) True or False. In the opposite vein to the encryption boolean, set this one to True. Because you&#8217;re smart.<\/li>\n<li><span style=\"text-decoration: underline;\">Minimum Password Length for user accounts<\/span>\u00a0&#8211; (Integer) Should be obvious &#8211; minimum password length. This is probably the important one for different account types e.g. 14 for a standard user account, 20 for an admin account, 30 for a service account (because I&#8217;m mean like that&#8230;)<\/li>\n<li><span style=\"text-decoration: underline;\">Minimum Password Age for user accounts<\/span>\u00a0&#8211; (Duration) The minimum age of a password. This one can be fun, especially if you have a third-party IDM system (like we do). Ours is set to &#8216;(none)&#8217; so our IDM system can control passwords. However, this has given us a few difficulties with some users changing their passwords n+1 (to beat the password history length) many times in order to roll back to their old password. So be careful with this one.<\/li>\n<li><span style=\"text-decoration: underline;\">Maximum Password Age for user accounts<\/span> &#8211; (Duration) Pretty obvious, this is when your password expires! We&#8217;ve got this tied to minimum password length &#8211; the longer the length of the password, the longer the maximum password age is. This cannot be set to 0 (for obvious reason) but you can set it to never expire &#8211; the value for that is:\u00a0-9223372036854775808.<\/li>\n<li><span style=\"text-decoration: underline;\">Lockout threshold for lockout of user accounts<\/span>\u00a0&#8211; (Integer) How many times a user needs to mistype their password for it to lock. Depending on the account this could be pretty high, say 10 times for a standard user; or it could be pretty low, say 3 times for a service account.<\/li>\n<li><span style=\"text-decoration: underline;\">Observation Window for lockout of user accounts<\/span>\u00a0&#8211; (Duration)\u00a0Hopefully I can explain this correctly &#8211; this is the time bracket in which the above number of incorrect passwords need to be entered e.g. You set this to 5 minutes, this means a service account needs to have the passwords enter incorrectly 3 times in 5 minutes for the lockout to occur. Make sense?<\/li>\n<li><span style=\"text-decoration: underline;\">Lockout duration for locked out user accounts<\/span>\u00a0&#8211; (Duration) How long an account is locked out for.<\/li>\n<li><strong>Disclaimer about &#8216;Duration&#8217; fields<\/strong> &#8211; these have to be in a specific format:<br \/>\n#:##:##:##<br \/>\nDays:Hours:Minutes:Seconds<\/li>\n<\/ul>\n<\/li>\n<li>Click &#8216;Next&#8217; after you&#8217;ve set each one to what you want it to be<\/li>\n<li>Once you&#8217;ve set the above attributes\u00a0(these are what Microsoft refer to as the &#8220;mustHave&#8221; attributes), click &#8216;Finish&#8217;<\/li>\n<\/ul>\n<p>&#8220;But,&#8221; I hear you cry &#8220;I&#8217;ve created it but I didn&#8217;t apply it to anything!&#8221; &#8211; well, yes. That&#8217;s what we&#8217;re going to do now. Calm down, it&#8217;ll be fine!<\/p>\n<ul>\n<li>If you&#8217;ve done the right thing, you should have a group created with users in it ready to have this setting applied to it; if you haven&#8217;t, <span style=\"text-decoration: underline;\">go create that now<\/span><\/li>\n<li>Double-click on the PSO you just created<\/li>\n<li>In the &#8216;Attribute Editor&#8217; tab, scroll under you find &#8216;msDS-PSOAppliesTo&#8217;\n<ul>\n<li>If you can&#8217;t see this, you might need to change your filter so that you can view attributes that don&#8217;t have values<\/li>\n<\/ul>\n<\/li>\n<li>Double click on this attribute<\/li>\n<li>In the window that appears, click &#8216;Add Windows Account&#8230;&#8217;\n<ul>\n<li>Now, yes, that does mean you can apply a PSO to an individual account. I would <strong>*STRONGLY* <\/strong>recommend against doing this (no matter how much your CEO wants his password to never expire &gt;.&lt;) and instead target group rather than individual accounts.<\/li>\n<\/ul>\n<\/li>\n<li>Type in the name of the group you want to apply the PSO to, or search for it in your domain and then click &#8216;OK&#8217;<\/li>\n<li>Click &#8216;OK&#8217; again<\/li>\n<li>Click &#8216;Apply&#8217; then &#8216;OK&#8217; and you&#8217;re done!<\/li>\n<\/ul>\n<p>Well&#8230;you&#8217;re *almost* done.<\/p>\n<p><span style=\"text-decoration: underline;\"><strong>Documenting your FGPP&#8217;s<\/strong><\/span><\/p>\n<p>For me, the biggest part of having these password settings is making sure you have them documented. I recommend documenting at least the &#8216;mustHave&#8217; attributes for each PSO and who the policy applies to.<\/p>\n<p>This documentation should be shared amongst everyone who has anything to do with resetting passwords so that they are aware of which password policy is in affect and can provide the correct advice.<\/p>\n<p>I tend to stick with this kind of format:<\/p>\n<ul>\n<li>Name of the PSO<\/li>\n<li>Who it&#8217;s applied to<\/li>\n<li>Why it&#8217;s applied, especially if there&#8217;s a change or incident related to it &#8211; this seems to be the part a lot of people miss!<\/li>\n<li>The settings contained in the PSO<\/li>\n<li>Review date &#8211; because these settings need to be reviewed regularly. Sometimes they may require amending, sometimes they may no longer be required!<\/li>\n<\/ul>\n<hr \/>\n<p>So that&#8217;s it &#8211; my rundown on FGPP&#8217;s\/PSO&#8217;s. Shout out to Microsoft, as some of the information from this post came from <a href=\"https:\/\/technet.microsoft.com\/en-us\/library\/cc770842(v=ws.10).aspx\">their indepth guide<\/a>\u00a0which goes into a lot more detail surrounding FGPP&#8217;s &amp; PSO&#8217;s if you&#8217;re still wanting to know more!<\/p>\n<p>Did I miss something? Get something wrong? Want to say I&#8217;m awesome? Feel free to leave me a\u00a0comment!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve previously spoken about security and password management\u00a0(if you need a refresher, I&#8217;m referring to this post and this post) however I neglected to go into detail regarding one really cool and amazing thing &#8211; Fine-Grained Password Policies &amp; Password Setting Objects&#8230;and I&#8217;ve been promising to write this post for months! I know a lot of this can be found&#8230; <a href=\"https:\/\/girl-germs.com\/?p=967\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"New Blog Post - FGPP's & PSO's - translated: \"Yay! More domain password control!\"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[8,5,328,2,7],"tags":[297,176,377,373,375,160,376,178,374],"class_list":["post-967","post","type-post","status-publish","format-standard","hentry","category-documentation","category-sys-admin","category-techstuff","category-technology","category-work","tag-active-directory","tag-ad","tag-domain","tag-fgpp","tag-fine-grained-password-policy","tag-password","tag-password-settings-object","tag-passwords","tag-pso"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p2Tmk1-fB","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/girl-germs.com\/index.php?rest_route=\/wp\/v2\/posts\/967","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/girl-germs.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/girl-germs.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/girl-germs.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/girl-germs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=967"}],"version-history":[{"count":15,"href":"https:\/\/girl-germs.com\/index.php?rest_route=\/wp\/v2\/posts\/967\/revisions"}],"predecessor-version":[{"id":1532,"href":"https:\/\/girl-germs.com\/index.php?rest_route=\/wp\/v2\/posts\/967\/revisions\/1532"}],"wp:attachment":[{"href":"https:\/\/girl-germs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=967"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/girl-germs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=967"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/girl-germs.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=967"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}