{"id":802,"date":"2007-05-30T18:02:18","date_gmt":"2007-05-30T17:02:18","guid":{"rendered":"http:\/\/www.markwilson.co.uk\/blog\/2007\/05\/using-active-directory-to-authenticate-users-on-a-linux-computer.htm"},"modified":"2008-03-12T20:28:27","modified_gmt":"2008-03-12T20:28:27","slug":"using-active-directory-to-authenticate-users-on-a-linux-computer","status":"publish","type":"post","link":"https:\/\/www.markwilson.co.uk\/blog\/2007\/05\/using-active-directory-to-authenticate-users-on-a-linux-computer.htm","title":{"rendered":"Using Active Directory to authenticate users on a Linux computer"},"content":{"rendered":"<p>I&#8217;m not sure if it&#8217;s the gradual improvement in my Linux knowledge, better information on the &#8216;net, or just that integrating Windows and Unix systems is getting easier but I finally got one of my non-Windows systems to authenticate against Active Directory (AD) today.  It may not sound like much of an achievement but I&#8217;m pretty pleased with myself.<\/p>\n<p><a href=\"http:\/\/www.microsoft.com\/windowsserver2003\/technologies\/directory\/activedirectory\/\">Active Directory<\/a> is Microsoft&#8217;s LDAP-compliant directory service, included with Windows server products since Windows 2000.  The AD domain controller that I used for this experiment was running Windows Server 2003 with service pack 2 (although the domain is still in Windows 2000 mixed mode and the forest is at Windows 2000 functional level) and the client PC was running Red Hat Enterprise Linux (RHEL) 5.<\/p>\n<p>The first step is to configure the Linux box to use Active Directory.  I ran this as part of the RHEL installation but it can also be configured manually, or using <code>system-config-authentication<\/code>.  The best way to do this is <a href=\"http:\/\/blog.scottlowe.org\/2007\/01\/15\/linux-ad-integration-version-4\/\">using LDAP and Kerberos (as described by Scott Lowe)<\/a> but Scott&#8217;s advice indicates that would require some AD schema changes to incorporate Unix user information; the method I used is based on Winbind and doesn&#8217;t seem to require any changes on the server as <a href=\"http:\/\/www.samba.org\/samba\/docs\/man\/Samba-HOWTO-Collection\/winbind.html\">Winbind allows a Unix\/Linux box to become a full member of a Windows NT\/AD domain<\/a>.<\/p>\n<p><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.markwilson.co.uk\/blog\/images\/winbind-settings.png?w=700&#038;ssl=1\" alt=\"Winbind settings\" \/>The settings I used can be seen in the screen grab, specifying the Winbind domain (NetBIOS domain name), security model (ADS), Winbind ADS realm (DNS domain name), Winbind domain controller(s) and the template shell (for users with shell access), following which <img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.markwilson.co.uk\/blog\/images\/winbind-join.png?w=700&#038;ssl=1\" alt=\"Winbind join\" \/> I selected the Join Domain button and supplied appropriate credentials and the machine was successfully joined the domain (an error was displayed in the terminal window indicating that Kerberos authentication failed  &#8211; not surprising as it hadn&#8217;t been configured &#8211; but the message continued by reporting that it had fallen back to RPC communications and resulted in a successful join).<\/p>\n<p>For reference, the equivalent manual process would have been something like:<\/p>\n<ol>\n<li>Edit the name service switch file (\/etc\/nsswitch.conf) to include the following:<\/li>\n<p><code>passwd: files winbind<br \/>\nshadow: files winbind<br \/>\ngroup: files winbind<br \/>\nnetgroup: files<br \/>\nautomount: files<\/code><\/p>\n<li>Edit the Samba configuration file (\/etc\/samba\/smb.conf) to include the following  configuration lines in the  <code>[global]<\/code> section:<\/li>\n<p><code>workgroup = <em>DOMAINNAME<\/em><br \/>\nsecurity = ads<br \/>\npassword server = <em>domaincontroller<\/em>.<em>domainname<\/em>.<em>tld<\/em><br \/>\nrealm = <em>DOMAINNAME<\/em>.<em>TLD<\/em><br \/>\nidmap uid = 16777216-33554431<br \/>\nidmap uid = 16777216-33554431<br \/>\ntemplate shell = \/bin\/bash<br \/>\nwinbind use default domain = false<\/code><\/p>\n<li>Edit the PAM authentication configuration (\/etc\/pam.d\/system-auth) to append <code>broken_shadow<\/code> to <code>account required pam_unix.so<\/code> and to insert:<\/li>\n<p><code>auth sufficient pam_winbind.so use_first_pass<br \/>\naccount [default=bad success=ok user_unknown=ignore] pam_winbind.so<br \/>\npassword sufficient pam_winbind.so use_authtok<\/code><\/p>\n<li>Join the domain:<\/li>\n<p><code>\/usr\/bin\/net join -w <em>DOMAINNAME<\/em> -S <em>domaincontroller<\/em>.<em>domainname<\/em>.<em>tld<\/em> -U <em>username<\/em><\/code><\/p>\n<li>Restart the winbind and nscd services:<\/li>\n<p><code>service winbind restart<br \/>\nservice nscd restart<\/code><\/ol>\n<p>It&#8217;s also possible to <a href=\"http:\/\/redmondmag.com\/columns\/article.asp?EditorialsID=858\">achieve the same results using <code>authconfig<\/code> (as described by Bill Boswell)<\/a>.<\/p>\n<p>Once these configuration changes have been made, AD users should be able to authenticate, but they will not have home directories on the Linux box, resulting in a warning:<\/p>\n<p><em>Your home directory is listed as:<\/em><\/p>\n<p><em>&#8216;\/home\/<\/em>DOMAINNAME<em>\/<\/em>username<em>&#8216; <\/em><\/p>\n<p><em>but it does not appear to exist. Do you want to log in with the \/ (root) directory as your home directory?  It is unlikely anything will work unless you use a failsafe session.<\/em><\/p>\n<p>or just a simple:<\/p>\n<p><em>No directory \/home\/<\/em>DOMAINNAME<em>\/<\/em>username<em>!<br \/>\n<\/em><\/p>\n<p><em>Logging in with home = &#8220;\/&#8221;.<\/em><\/p>\n<p>This is easy to fix, as described in <a href=\"http:\/\/kbase.redhat.com\/faq\/FAQ_85_5367.shtm\">Red Hat knowledgebase article 5367<\/a>, adding <code>session required pam_mkhomedir.so skel=\/etc\/skel umask=0077<\/code> to \/etc\/pam.d\/system-auth.  After restarting the winbind service, the first subsequent login should be met with:<\/p>\n<p><em>Creating directory &#8216;\/home\/<\/em>DOMAINNAME<em>\/<\/em>username<em>&#8216;<\/em><\/p>\n<p>The parent directory must already exist; however some control can be exercised over the naming of the directory &#8211; I added <code>template homedir = \/home\/%D\/%U<\/code> to the <code>[global]<\/code> section in \/etc\/samba\/smb.conf (more details can be found in <a href=\"http:\/\/kbase.redhat.com\/faq\/FAQ_79_4760.shtm\">Red Hat knowledgebase article 4760<\/a>).<\/p>\n<p>At this point, AD users can log on (using <em>DOMAINNAME<\/em>\\<em>username<\/em> at the login prompt) and have home directories dynamically created but (despite selecting the cache user information and local authorization is sufficient for local users options in <code>system-config-authentication<\/code>) if the computer is offline (e.g. a notebook computer away from the network), then login attempts will fail and the user is presented with the following warning:<\/p>\n<p><em>Incorrect username or password. Letters must be typed in the correct case.<\/em><\/p>\n<p>or:<\/p>\n<p><em>Login incorrect<\/em><\/p>\n<p>In order to allow offline working, I followed some advice relating to another Linux distribution (<a href=\"http:\/\/wiki.mandriva.com\/en\/Docs\/SysAdmin\/Server\/Disconnected_Auth\">Mandriva disconnected authentication and authorisation<\/a>) but it still worked for me on RHEL. All that was required was the addition of <code>winbind offline logon = yes<\/code> to the  <code>[global]<\/code> section of \/etc\/samba\/smb.conf along with some edits to the \/etc\/pam.d\/system-auth file:<\/p>\n<ul>\n<li>Append <code>cached_login<\/code> to <code>auth sufficient pam_winbind.so use_first_pass<\/code>.<\/li>\n<li>Add <code>account sufficient pam_winbind.so use_first_pass cached_login<\/code>.<\/li>\n<\/ul>\n<p>These changes (along with another winbind service restart) allowed users to log in using cached credentials (once a successful online login had taken place), displaying the following message:<\/p>\n<p><em> Logging on using cached account. Network ressources <\/em>[sic]<em> can be unavailable <\/em><\/p>\n<p>Unfortunately, the change also prevented local users from authenticating (except root), with the following strange errors in \/var\/log\/messages:<\/p>\n<p><code>May 30 11:30:42 <em>computername<\/em> pam_winbind[3620]: request failed, but PAM error 0!<br \/>\nMay 30 11:30:42 <em>computername<\/em> pam_winbind[3620]: internal module error (retval = 3, user = `<em>username<\/em>')<br \/>\nMay 30 11:30:42 <em>computername<\/em> login[3620]: Error in service module<\/code><\/p>\n<p>After a lot of googling, I found <a href=\"http:\/\/www.linuxquestions.org\/questions\/showthread.php?t=486373\">a forum thread at LinuxQuestions.org<\/a> that pointed to <code>account [default=bad success=ok user_unknown=ignore] pam_winbind.so<\/code> as the culprit.  After I removed this line from \/etc\/pam.d\/system-auth  (it had already been replaced with <code>account sufficient pam_winbind.so use_first_pass cached_login<\/code>), both AD and local users could successfully authenticate:<\/p>\n<p><code>May 30 11:37:25 <em>computername<\/em>  -- <em>username<\/em>[3651]: LOGIN ON tty1 BY <em>username<\/em><\/code><\/p>\n<p>I should add that this configuration is not perfect &#8211; Winbind seems to take a minute or so to work out that cached credentials should be used (sometimes resulting in failed login attempts before allowing a user to log in) and it also seems to take a long time to login when working offline, but nevertheless I can use my AD accounts on the Linux workstation and I can log in when I&#8217;m not connected to the network.<\/p>\n<p>If anyone can offer any advice to improve this configuration (or knows how moving to a higher domain\/forest functional level may affect it), please leave a comment below.  If you wish to follow the full LDAP\/Kerberos authentication route described in Scott Lowe&#8217;s article (linked earlier), it may be worth checking out <a href=\"http:\/\/www.microsoft.com\/windows\/sfu\/\">Microsoft Services for Unix<\/a> (now replaced by the <a href=\"http:\/\/www.microsoft.com\/windowsserver2003\/R2\/unixcomponents\/idmu.mspx\">Identity Management for Unix<\/a> component in Windows Server 2003 R2) or the open source alternative, <a href=\"http:\/\/sourceforge.net\/projects\/ad4unix\/\">AD4Unix<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m not sure if it&#8217;s the gradual improvement in my Linux knowledge, better information on the &#8216;net, or just that integrating Windows and Unix systems is getting easier but I finally got one of my non-Windows systems to authenticate against Active Directory (AD) today. It may not sound like much of an achievement but I&#8217;m &hellip; <a href=\"https:\/\/www.markwilson.co.uk\/blog\/2007\/05\/using-active-directory-to-authenticate-users-on-a-linux-computer.htm\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Using Active Directory to authenticate users on a Linux computer<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[],"tags":[3,102],"class_list":["post-802","post","type-post","status-publish","format-standard","hentry","tag-linux","tag-active-directory"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Using Active Directory to authenticate users on a Linux computer - markwilson.it<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.markwilson.co.uk\/blog\/2007\/05\/using-active-directory-to-authenticate-users-on-a-linux-computer.htm\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Using Active Directory to authenticate users on a Linux computer - markwilson.it\" \/>\n<meta property=\"og:description\" content=\"I&#8217;m not sure if it&#8217;s the gradual improvement in my Linux knowledge, better information on the &#8216;net, or just that integrating Windows and Unix systems is getting easier but I finally got one of my non-Windows systems to authenticate against Active Directory (AD) today. It may not sound like much of an achievement but I&#8217;m &hellip; Continue reading Using Active Directory to authenticate users on a Linux computer\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.markwilson.co.uk\/blog\/2007\/05\/using-active-directory-to-authenticate-users-on-a-linux-computer.htm\" \/>\n<meta property=\"og:site_name\" content=\"markwilson.it\" \/>\n<meta property=\"article:published_time\" content=\"2007-05-30T17:02:18+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2008-03-12T20:28:27+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.markwilson.co.uk\/blog\/images\/winbind-settings.png\" \/>\n<meta name=\"author\" content=\"Mark Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@markwilsonit\" \/>\n<meta name=\"twitter:site\" content=\"@markwilsonit\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Mark Wilson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/2007\\\/05\\\/using-active-directory-to-authenticate-users-on-a-linux-computer.htm#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/2007\\\/05\\\/using-active-directory-to-authenticate-users-on-a-linux-computer.htm\"},\"author\":{\"name\":\"Mark Wilson\",\"@id\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/#\\\/schema\\\/person\\\/98f61365e7c39d6be942174b8c4de468\"},\"headline\":\"Using Active Directory to authenticate users on a Linux computer\",\"datePublished\":\"2007-05-30T17:02:18+00:00\",\"dateModified\":\"2008-03-12T20:28:27+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/2007\\\/05\\\/using-active-directory-to-authenticate-users-on-a-linux-computer.htm\"},\"wordCount\":974,\"commentCount\":14,\"publisher\":{\"@id\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/#\\\/schema\\\/person\\\/98f61365e7c39d6be942174b8c4de468\"},\"image\":{\"@id\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/2007\\\/05\\\/using-active-directory-to-authenticate-users-on-a-linux-computer.htm#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/images\\\/winbind-settings.png\",\"keywords\":[\"Linux\",\"Microsoft Active Directory\"],\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/2007\\\/05\\\/using-active-directory-to-authenticate-users-on-a-linux-computer.htm#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/2007\\\/05\\\/using-active-directory-to-authenticate-users-on-a-linux-computer.htm\",\"url\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/2007\\\/05\\\/using-active-directory-to-authenticate-users-on-a-linux-computer.htm\",\"name\":\"Using Active Directory to authenticate users on a Linux computer - markwilson.it\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/2007\\\/05\\\/using-active-directory-to-authenticate-users-on-a-linux-computer.htm#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/2007\\\/05\\\/using-active-directory-to-authenticate-users-on-a-linux-computer.htm#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/images\\\/winbind-settings.png\",\"datePublished\":\"2007-05-30T17:02:18+00:00\",\"dateModified\":\"2008-03-12T20:28:27+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/2007\\\/05\\\/using-active-directory-to-authenticate-users-on-a-linux-computer.htm#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/2007\\\/05\\\/using-active-directory-to-authenticate-users-on-a-linux-computer.htm\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/2007\\\/05\\\/using-active-directory-to-authenticate-users-on-a-linux-computer.htm#primaryimage\",\"url\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/images\\\/winbind-settings.png\",\"contentUrl\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/images\\\/winbind-settings.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/2007\\\/05\\\/using-active-directory-to-authenticate-users-on-a-linux-computer.htm#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Using Active Directory to authenticate users on a Linux computer\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/\",\"name\":\"markwilson.it\",\"description\":\"get-info -class technology | write-output &gt; \\\/dev\\\/web\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/#\\\/schema\\\/person\\\/98f61365e7c39d6be942174b8c4de468\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/#\\\/schema\\\/person\\\/98f61365e7c39d6be942174b8c4de468\",\"name\":\"Mark Wilson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/i0.wp.com\\\/www.markwilson.co.uk\\\/blog\\\/uploads\\\/image-4.png?fit=800%2C800&ssl=1\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/www.markwilson.co.uk\\\/blog\\\/uploads\\\/image-4.png?fit=800%2C800&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/www.markwilson.co.uk\\\/blog\\\/uploads\\\/image-4.png?fit=800%2C800&ssl=1\",\"width\":800,\"height\":800,\"caption\":\"Mark Wilson\"},\"logo\":{\"@id\":\"https:\\\/\\\/i0.wp.com\\\/www.markwilson.co.uk\\\/blog\\\/uploads\\\/image-4.png?fit=800%2C800&ssl=1\"},\"description\":\"A Chartered IT Professional, with recent experience in technology leadership, IT strategy and practice management roles, Mark Wilson is an Enterprise Architect in the Advisory and Management Group at risual. During a career spanning more than two decades, Mark has gained widespread recognition as an expert in his field including both industry and national press exposure. In addition to certifications from Microsoft, VMware, Red Hat, The Open Group and Axelos, Mark held a Microsoft Most Valuable Professional (MVP) award for three years and is now part of the MVP Reconnect programme. Mark is also well-known on social media and maintains an award-winning blog.\",\"sameAs\":[\"http:\\\/\\\/www.markwilson.co.uk\\\/\",\"https:\\\/\\\/www.instagram.com\\\/markwilsonuk\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/markawilson\\\/\",\"https:\\\/\\\/x.com\\\/markwilsonit\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCWHlZCoHRTocdvtrOJ2IL4A\"],\"url\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/author\\\/mark-wilson\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Using Active Directory to authenticate users on a Linux computer - markwilson.it","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.markwilson.co.uk\/blog\/2007\/05\/using-active-directory-to-authenticate-users-on-a-linux-computer.htm","og_locale":"en_GB","og_type":"article","og_title":"Using Active Directory to authenticate users on a Linux computer - markwilson.it","og_description":"I&#8217;m not sure if it&#8217;s the gradual improvement in my Linux knowledge, better information on the &#8216;net, or just that integrating Windows and Unix systems is getting easier but I finally got one of my non-Windows systems to authenticate against Active Directory (AD) today. It may not sound like much of an achievement but I&#8217;m &hellip; Continue reading Using Active Directory to authenticate users on a Linux computer","og_url":"https:\/\/www.markwilson.co.uk\/blog\/2007\/05\/using-active-directory-to-authenticate-users-on-a-linux-computer.htm","og_site_name":"markwilson.it","article_published_time":"2007-05-30T17:02:18+00:00","article_modified_time":"2008-03-12T20:28:27+00:00","og_image":[{"url":"https:\/\/www.markwilson.co.uk\/blog\/images\/winbind-settings.png","type":"","width":"","height":""}],"author":"Mark Wilson","twitter_card":"summary_large_image","twitter_creator":"@markwilsonit","twitter_site":"@markwilsonit","twitter_misc":{"Written by":"Mark Wilson","Estimated reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.markwilson.co.uk\/blog\/2007\/05\/using-active-directory-to-authenticate-users-on-a-linux-computer.htm#article","isPartOf":{"@id":"https:\/\/www.markwilson.co.uk\/blog\/2007\/05\/using-active-directory-to-authenticate-users-on-a-linux-computer.htm"},"author":{"name":"Mark Wilson","@id":"https:\/\/www.markwilson.co.uk\/blog\/#\/schema\/person\/98f61365e7c39d6be942174b8c4de468"},"headline":"Using Active Directory to authenticate users on a Linux computer","datePublished":"2007-05-30T17:02:18+00:00","dateModified":"2008-03-12T20:28:27+00:00","mainEntityOfPage":{"@id":"https:\/\/www.markwilson.co.uk\/blog\/2007\/05\/using-active-directory-to-authenticate-users-on-a-linux-computer.htm"},"wordCount":974,"commentCount":14,"publisher":{"@id":"https:\/\/www.markwilson.co.uk\/blog\/#\/schema\/person\/98f61365e7c39d6be942174b8c4de468"},"image":{"@id":"https:\/\/www.markwilson.co.uk\/blog\/2007\/05\/using-active-directory-to-authenticate-users-on-a-linux-computer.htm#primaryimage"},"thumbnailUrl":"https:\/\/www.markwilson.co.uk\/blog\/images\/winbind-settings.png","keywords":["Linux","Microsoft Active Directory"],"inLanguage":"en-GB","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.markwilson.co.uk\/blog\/2007\/05\/using-active-directory-to-authenticate-users-on-a-linux-computer.htm#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.markwilson.co.uk\/blog\/2007\/05\/using-active-directory-to-authenticate-users-on-a-linux-computer.htm","url":"https:\/\/www.markwilson.co.uk\/blog\/2007\/05\/using-active-directory-to-authenticate-users-on-a-linux-computer.htm","name":"Using Active Directory to authenticate users on a Linux computer - markwilson.it","isPartOf":{"@id":"https:\/\/www.markwilson.co.uk\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.markwilson.co.uk\/blog\/2007\/05\/using-active-directory-to-authenticate-users-on-a-linux-computer.htm#primaryimage"},"image":{"@id":"https:\/\/www.markwilson.co.uk\/blog\/2007\/05\/using-active-directory-to-authenticate-users-on-a-linux-computer.htm#primaryimage"},"thumbnailUrl":"https:\/\/www.markwilson.co.uk\/blog\/images\/winbind-settings.png","datePublished":"2007-05-30T17:02:18+00:00","dateModified":"2008-03-12T20:28:27+00:00","breadcrumb":{"@id":"https:\/\/www.markwilson.co.uk\/blog\/2007\/05\/using-active-directory-to-authenticate-users-on-a-linux-computer.htm#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.markwilson.co.uk\/blog\/2007\/05\/using-active-directory-to-authenticate-users-on-a-linux-computer.htm"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.markwilson.co.uk\/blog\/2007\/05\/using-active-directory-to-authenticate-users-on-a-linux-computer.htm#primaryimage","url":"https:\/\/www.markwilson.co.uk\/blog\/images\/winbind-settings.png","contentUrl":"https:\/\/www.markwilson.co.uk\/blog\/images\/winbind-settings.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.markwilson.co.uk\/blog\/2007\/05\/using-active-directory-to-authenticate-users-on-a-linux-computer.htm#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.markwilson.co.uk\/blog"},{"@type":"ListItem","position":2,"name":"Using Active Directory to authenticate users on a Linux computer"}]},{"@type":"WebSite","@id":"https:\/\/www.markwilson.co.uk\/blog\/#website","url":"https:\/\/www.markwilson.co.uk\/blog\/","name":"markwilson.it","description":"get-info -class technology | write-output &gt; \/dev\/web","publisher":{"@id":"https:\/\/www.markwilson.co.uk\/blog\/#\/schema\/person\/98f61365e7c39d6be942174b8c4de468"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.markwilson.co.uk\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":["Person","Organization"],"@id":"https:\/\/www.markwilson.co.uk\/blog\/#\/schema\/person\/98f61365e7c39d6be942174b8c4de468","name":"Mark Wilson","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/i0.wp.com\/www.markwilson.co.uk\/blog\/uploads\/image-4.png?fit=800%2C800&ssl=1","url":"https:\/\/i0.wp.com\/www.markwilson.co.uk\/blog\/uploads\/image-4.png?fit=800%2C800&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.markwilson.co.uk\/blog\/uploads\/image-4.png?fit=800%2C800&ssl=1","width":800,"height":800,"caption":"Mark Wilson"},"logo":{"@id":"https:\/\/i0.wp.com\/www.markwilson.co.uk\/blog\/uploads\/image-4.png?fit=800%2C800&ssl=1"},"description":"A Chartered IT Professional, with recent experience in technology leadership, IT strategy and practice management roles, Mark Wilson is an Enterprise Architect in the Advisory and Management Group at risual. During a career spanning more than two decades, Mark has gained widespread recognition as an expert in his field including both industry and national press exposure. In addition to certifications from Microsoft, VMware, Red Hat, The Open Group and Axelos, Mark held a Microsoft Most Valuable Professional (MVP) award for three years and is now part of the MVP Reconnect programme. Mark is also well-known on social media and maintains an award-winning blog.","sameAs":["http:\/\/www.markwilson.co.uk\/","https:\/\/www.instagram.com\/markwilsonuk\/","https:\/\/www.linkedin.com\/in\/markawilson\/","https:\/\/x.com\/markwilsonit","https:\/\/www.youtube.com\/channel\/UCWHlZCoHRTocdvtrOJ2IL4A"],"url":"https:\/\/www.markwilson.co.uk\/blog\/author\/mark-wilson"}]}},"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":1015,"url":"https:\/\/www.markwilson.co.uk\/blog\/2008\/03\/some-more-on-using-active-directory-for-linuxmac-os-x-user-authentication.htm","url_meta":{"origin":802,"position":0},"title":"Some more on using Active Directory for Linux\/Mac OS X user authentication","author":"Mark Wilson","date":"Thursday 13 March 2008","format":false,"excerpt":"Last year I wrote a post about using Microsoft Active Directory (AD) to authenticate users on a Red Hat Enterprise Linux (RHEL) computer (and a few weeks back I followed it up for Mac OS X). This week, I've been re-visiting that subject, as I built a new FTP server\u2026","rel":"","context":"In \"Apple Mac OS X\"","block_context":{"text":"Apple Mac OS X","link":"https:\/\/www.markwilson.co.uk\/blog\/tag\/mac-os-x"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":998,"url":"https:\/\/www.markwilson.co.uk\/blog\/2008\/02\/using-active-directory-to-authenticate-users-on-a-mac-os-x-computer.htm","url_meta":{"origin":802,"position":1},"title":"Using Active Directory to authenticate users on a Mac OS X computer","author":"Mark Wilson","date":"Tuesday 19 February 2008","format":false,"excerpt":"One of the projects that I've been meaning to complete for a while now has been getting my Mac OS X computers to participate in my Active Directory (AD) domain. I got Active Directory working with Linux - so surely it should be possible to repeat the process on a\u2026","rel":"","context":"In \"Apple Mac OS X\"","block_context":{"text":"Apple Mac OS X","link":"https:\/\/www.markwilson.co.uk\/blog\/tag\/mac-os-x"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":237,"url":"https:\/\/www.markwilson.co.uk\/blog\/2005\/09\/10000-feet-view-of-microsoft-active.htm","url_meta":{"origin":802,"position":2},"title":"10,000 feet view of Microsoft Active Directory","author":"Mark Wilson","date":"Wednesday 14 September 2005","format":false,"excerpt":"Non-technical colleagues, and friends who work with Microsoft products but outside of a corporate environment often ask me \"what is Active Directory\" (AD). As I've blogged a few 10,000 feet views of Microsoft technologies, I thought I'd produce one for AD. At the Microsoft Technical Roadshow event last May, Paul\u2026","rel":"","context":"In \"Microsoft Active Directory\"","block_context":{"text":"Microsoft Active Directory","link":"https:\/\/www.markwilson.co.uk\/blog\/tag\/active-directory"},"img":{"alt_text":"","src":"http:\/\/www.assoc-amazon.co.uk\/e\/ir?t=marsweblo-21&l=as2&o=2&a=0954421809","width":350,"height":200},"classes":[]},{"id":566,"url":"https:\/\/www.markwilson.co.uk\/blog\/2004\/04\/migrating-from-exchange-server-55-to.htm","url_meta":{"origin":802,"position":3},"title":"Migrating from Exchange Server 5.5 to Exchange Server 2003","author":"Mark Wilson","date":"Wednesday 7 April 2004","format":false,"excerpt":"With Microsoft Exchange Server 2003, Microsoft have made Exchange installation simpler - the Exchange Server deployment tools and documentation (ExDeploy) lead an administrator through the entire Exchange Server installation or upgrade process and it is recommended that Exchange Server 2003 Setup is run using ExDeploy. Specific tools and utilities can\u2026","rel":"","context":"In \"Microsoft Exchange\"","block_context":{"text":"Microsoft Exchange","link":"https:\/\/www.markwilson.co.uk\/blog\/tag\/exchange"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":87,"url":"https:\/\/www.markwilson.co.uk\/blog\/2004\/06\/problems-with-microsoft-clusters.htm","url_meta":{"origin":802,"position":4},"title":"Problems with Microsoft clusters","author":"Mark Wilson","date":"Thursday 10 June 2004","format":false,"excerpt":"A few weeks back I was trying to configure a Windows 2000 cluster for a client. Nothing too unusual about that, but we still came across a couple of issues: Firstly, the shared disk was on a SAN, with Veritas Volume Manager providing dynamic multi-path support. Veritas' document describing how\u2026","rel":"","context":"In \"Microsoft Windows\"","block_context":{"text":"Microsoft Windows","link":"https:\/\/www.markwilson.co.uk\/blog\/tag\/windows"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":468,"url":"https:\/\/www.markwilson.co.uk\/blog\/2006\/03\/quick-introduction-to-linux-for.htm","url_meta":{"origin":802,"position":5},"title":"A quick introduction to Linux for Windows administrators","author":"Mark Wilson","date":"Tuesday 7 March 2006","format":false,"excerpt":"I've written previously about my various attempts to cross-train in Windows and Unix. Recently, I began running Sun Solaris 10 x86 on one of my machines, more recently I've installed SUSE Linux 10.0 and this week, I'm attending a training course to learn about Red Hat Enterprise Linux. What follows\u2026","rel":"","context":"In \"Linux\"","block_context":{"text":"Linux","link":"https:\/\/www.markwilson.co.uk\/blog\/tag\/linux"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.markwilson.co.uk\/blog\/wp-json\/wp\/v2\/posts\/802","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.markwilson.co.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.markwilson.co.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.markwilson.co.uk\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.markwilson.co.uk\/blog\/wp-json\/wp\/v2\/comments?post=802"}],"version-history":[{"count":0,"href":"https:\/\/www.markwilson.co.uk\/blog\/wp-json\/wp\/v2\/posts\/802\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.markwilson.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=802"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.markwilson.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=802"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.markwilson.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=802"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}