{"id":112,"date":"2008-04-23T12:22:18","date_gmt":"2008-04-23T12:22:18","guid":{"rendered":"https:\/\/www.wapshere.com\/missmiis\/?p=112"},"modified":"2009-11-18T08:43:45","modified_gmt":"2009-11-18T08:43:45","slug":"installing-adam-with-nlb","status":"publish","type":"post","link":"https:\/\/www.wapshere.com\/missmiis\/installing-adam-with-nlb","title":{"rendered":"Installing ADAM with NLB"},"content":{"rendered":"<p>Another non-ILM post today &#8211; but this is just something I&#8217;ve done recently, and I found I had to trawl around a fair bit for the information I needed, and I may as well jot it down. This post shows the steps I took to get the configuration working, after encountering various errors along the way. There may well be other ways.<\/p>\n<p>The project was to install two replica instances of ADAM SP1 using NLB for failover, and to add some custom fields to the user Class.<\/p>\n<p><!--more--><\/p>\n<h4>Pre-installation<\/h4>\n<p>Created a domain service account and:<\/p>\n<ul>\n<li>made it local Administrator on both servers,<\/li>\n<li>gave it the <a href=\"http:\/\/technet2.microsoft.com\/windowsserver\/en\/library\/8faf4ad0-f9ab-4a54-a294-9b82781c89301033.mspx?mfr=true\">Generate security audits<\/a> permission,<\/li>\n<li>gave it the &#8220;Create All Child Objects&#8221; AD permission to the server objects to allow <a href=\"http:\/\/technet2.microsoft.com\/windowsserver\/en\/library\/8127f5ed-4e05-4822-bfa9-402ceede47441033.mspx?mfr=true\">SPN creation<\/a>.<\/li>\n<\/ul>\n<p>I also made the <a href=\"http:\/\/www.microsoft.com\/windowsserver2003\/adam\/ADAMfaq.mspx\">forceguest registry setting<\/a> on the servers.<\/p>\n<h4>Installation<\/h4>\n<p>The installation of ADAM SP1 was straight-forward, as was creating the unique instance on the first server. Creating the replica on the second server was also straight-forward. All of this is well covered in the <a href=\"http:\/\/technet2.microsoft.com\/windowsserver\/en\/library\/2080b841-2211-400f-b393-04675a1653651033.mspx?mfr=true\">ADAM step-by-step guide<\/a>.<\/p>\n<h4>NLB<\/h4>\n<p>I hadn&#8217;t actually used NLB before and initially got distracted by <a href=\"http:\/\/support.microsoft.com\/kb\/323437\">this document<\/a> and thought I had to set all the network settings myself. Dumb &#8211; all you need to do is run <strong>Network Load Balancing Manager<\/strong> from the Administrative Tools menu and it will do all the network settings for you.<\/p>\n<p>It is a lot easier if you have two NICs though, like in a normal cluster &#8211; one for Public and one for Private.<\/p>\n<p>The surprise was really how basic NLB is. NLB does no port monitoring and will forward traffic to the server as long as it is up. Taking the ADAM service down has no effect on it. So in the case of 2 servers with 50% loading, if you stop the ADAM instance on one server, half the requests will fail.<\/p>\n<p>Obviously this is something others have had problems with so, on MSDN, there&#8217;s <a href=\"http:\/\/msdn2.microsoft.com\/en-us\/library\/cc307934(VS.85).aspx\">this nice script<\/a> that will check particular services on the cluster servers, and stop NLB on a server if the service is stopped.<\/p>\n<p>Another couple of gotchas:<\/p>\n<ul>\n<li>You have to register the shared network name and ip address of the NLB Cluster in DNS yourself.<\/li>\n<li>When using ADSI Edit <em>on one of the servers<\/em> you can&#8217;t connect to the NLB <em>network name<\/em>, though you can connect to the ip address, and you can, of course, connect directly to the individual servers, either by name or ip. I have reproduced this in two completely seperate environments, but I don&#8217;t know what causes it.<\/li>\n<\/ul>\n<h4>Schema Modification<\/h4>\n<p>OK, call me dim, but I didn&#8217;t realise I was going to have to provide a unique X.500 OID for the purely local atributes I wanted to add to the user class. I ended up using this <a href=\"http:\/\/media.trendmicro.com\/Level3\/msoidgen.vbs\">OID generator script<\/a> which produces a hideously long number that you can append your own attribute IDs to.<\/p>\n<p>I also caused myself problems by connecting to &#8220;localhost&#8221; from the ADAM Schema plugin. You get all sorts of weird errors like &#8220;Could not connect to the current schema master server&#8221; and &#8220;The FSMO role ownership could not be verified&#8221; &#8211; though not straight away of course, only after you&#8217;ve gone through the whole process of entering the details of the new attribute. Things worked much better once I figured out I had to use <em>the full dns name<\/em> of the primary ADAM server.<\/p>\n<p>Once I successfully added an attribute the to user class I managed to get myself into further trouble by jumping onto the replica server and trying to use the attribute straight away. My reward was the dissappearance of the replica from ADSI Edit! It came back after a service restart, but it was a little disconcerting. After that I found the &#8220;Update Schema Now&#8221; action in ADSI Edit so I routinely updated all servers after any modification, and I didn&#8217;t see the problem again.<\/p>\n<h4>Enabling Users<\/h4>\n<p>Again pretty simple, but it wasn&#8217;t immediately obvious to me, so: when you create an user object you have to set a password and then set msDS-UserAccountDisabled to FALSE before you can use it.<\/p>\n<h4>Checking Replication between Instances<\/h4>\n<p>Use repadmin.<\/p>\n<h4>DSDIAG<\/h4>\n<p>You&#8217;re supposed to use dsdiag for troubleshooting, however it gives misleading errors. According to <a href=\"http:\/\/technet2.microsoft.com\/windowsserver\/en\/library\/dcb45984-1576-4b88-8f2d-ca66ffc985b61033.mspx?mfr=true\">this MS doc<\/a> it should run error free but, in trying to track down the errors I found <a href=\"http:\/\/groups.google.ch\/group\/microsoft.public.windows.server.active_directory\/browse_thread\/thread\/5b22826c7f33b496\/e5ed19fd9e78d56d?hl=en&amp;lnk=st&amp;q=dsdiag+adam+lee+flight#e5ed19fd9e78d56d\">this post from Lee Flight<\/a> (who seems to be the man with all the ADAM answers on the news groups) saying that not all tests work with ADAM. So why include them then!<\/p>\n<p>The errors I see, even in a completely clean VM environment, are:<br \/>\n<code><br \/>\n[<em>servername<\/em>] Directory Binding Error 1753:<br \/>\nWin32 Error 1753<br \/>\nThis may limit some of the tests that can be performed.<br \/>\n<\/code><code><br \/>\n[<em>servername<\/em>$<em>instancename<\/em>] DsBindWithSpnEx() failed with error 5,<br \/>\nWin32 Error 5.<br \/>\n<\/code><code><br \/>\nSkipping all tests, because server <em>servername<\/em>$<em>instancename<\/em> is<br \/>\nnot responding to directory service requests<br \/>\n<\/code><br \/>\nIt then, despite what it says about skipping all tests, proceeds to run three CrossRefValidation tests, all of which pass.<\/p>\n<p>I can&#8217;t say for sure this is what should happen &#8211; all I can is that, apart from these dsdiag errors, everything is working as expected.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Another non-ILM post today &#8211; but this is just something I&#8217;ve done recently, and I found I had to trawl around a fair bit for the information I needed, and I may as well jot it down. This post shows the steps I took to get the configuration working, after encountering various errors along the&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"footnotes":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":[]},"categories":[40,36],"tags":[],"class_list":["post-112","post","type-post","status-publish","format-standard","hentry","category-adam","category-windows2003"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pkp1o-1O","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/posts\/112","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/comments?post=112"}],"version-history":[{"count":3,"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/posts\/112\/revisions"}],"predecessor-version":[{"id":610,"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/posts\/112\/revisions\/610"}],"wp:attachment":[{"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/media?parent=112"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/categories?post=112"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/tags?post=112"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}