<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Adding a Samba server to a 2000 Domain in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/adding-a-samba-server-to-a-2000-domain/m-p/3047083#M87333</link>
    <description>I have set up a Debian Samba server on our network and can see the server when we browse the network however when we try to access the server form windows clients it asks for a user name and password. Whatever we log in as does not work. It appears as if it is not authenticating. We are running in AD Mixed mode. Any ideas please.</description>
    <pubDate>Tue, 12 Aug 2003 08:51:44 GMT</pubDate>
    <dc:creator>Martin Simnett</dc:creator>
    <dc:date>2003-08-12T08:51:44Z</dc:date>
    <item>
      <title>Adding a Samba server to a 2000 Domain</title>
      <link>https://community.hpe.com/t5/operating-system-linux/adding-a-samba-server-to-a-2000-domain/m-p/3047083#M87333</link>
      <description>I have set up a Debian Samba server on our network and can see the server when we browse the network however when we try to access the server form windows clients it asks for a user name and password. Whatever we log in as does not work. It appears as if it is not authenticating. We are running in AD Mixed mode. Any ideas please.</description>
      <pubDate>Tue, 12 Aug 2003 08:51:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/adding-a-samba-server-to-a-2000-domain/m-p/3047083#M87333</guid>
      <dc:creator>Martin Simnett</dc:creator>
      <dc:date>2003-08-12T08:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a Samba server to a 2000 Domain</title>
      <link>https://community.hpe.com/t5/operating-system-linux/adding-a-samba-server-to-a-2000-domain/m-p/3047084#M87334</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Do you want your AD to control user name and password ?&lt;BR /&gt;Select 'Domain' type of authentication. The Samba server will rely on a Windows NT Primary or Backup Domain Controller to verify the user, which wil be possible as you are in mixed mode. The server passes the username and password to the Controller and waits for it to return. Specify the NetBIOS name of the Primary or Backup Domain Controller in the Authentication Server field.&lt;BR /&gt;The Encrypted Passwords option must be set to Yes if this is selected.&lt;BR /&gt;&lt;BR /&gt;It doesn't work 100% time, as it depends closely to your win 2k security strategies configuration (is PDC emulator started, do you apply compatws or basicws startegy template, and so on).&lt;BR /&gt;&lt;BR /&gt;You can also set up manually your list of users on samba server, look at this page, section 17.2.3. Encrypted Passwords to set up a list of users with encrypted password (for 2k compatibility) : /etc/shadow is not enough, samba needs its own file :&lt;BR /&gt;&lt;A href="http://www.europe.redhat.com/documentation/rhl9/rhl-cg-en-9/s1-samba-configuring.php3#S3-SAMBA-GUI-USERS" target="_blank"&gt;http://www.europe.redhat.com/documentation/rhl9/rhl-cg-en-9/s1-samba-configuring.php3#S3-SAMBA-GUI-USERS&lt;/A&gt;&lt;BR /&gt;(notice: it's a redhat doc, but samba is the same on all distro, as long as you run a recent version).&lt;BR /&gt;&lt;BR /&gt;hth&lt;BR /&gt;&lt;BR /&gt;J</description>
      <pubDate>Tue, 12 Aug 2003 09:44:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/adding-a-samba-server-to-a-2000-domain/m-p/3047084#M87334</guid>
      <dc:creator>Jerome Henry</dc:creator>
      <dc:date>2003-08-12T09:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a Samba server to a 2000 Domain</title>
      <link>https://community.hpe.com/t5/operating-system-linux/adding-a-samba-server-to-a-2000-domain/m-p/3047085#M87335</link>
      <description>Thanks for the info but I have already done most of what you have said. here is my problem in more detail as my last post was slightly vague :/&lt;BR /&gt;&lt;BR /&gt;I have Samba 2.2.7a running on a Debian 3.0 (woody) box, winbindd running, wbinfo authenticates, shows users etc, wbinfo -t works and is fine with the shared secret.&lt;BR /&gt;&lt;BR /&gt;However, as soon as you try and log in, either from smbclient or from a Windows box, it refuses the authentication and the log shows:&lt;BR /&gt;&lt;BR /&gt;[2003/08/11 16:19:05, 0] smbd/password.c:connect_to_domain_password_server(1336) &lt;BR /&gt;   connect_to_domain_password_server: machine PDCSERVER rejected the tconX on the IPC$ share. Error was : NT_STATUS_ACCESS_DENIED&lt;BR /&gt;[2003/08/11 16:19:05, 0] smbd/password.c:domain_client_validate(1599) &lt;BR /&gt;   domain_client_validate: Domain password server not available.&lt;BR /&gt;&lt;BR /&gt;(Server name changed to protect the innocent ;)! )&lt;BR /&gt;&lt;BR /&gt;getent also works for both users and groups&lt;BR /&gt;&lt;BR /&gt;Alteration has been made to nsswitch.conf group users and groups to be: compat winbind&lt;BR /&gt;&lt;BR /&gt;Relevant parts of smb.conf are:&lt;BR /&gt;&lt;BR /&gt;workgroup = SMBDOMAIN&lt;BR /&gt;security = domain&lt;BR /&gt;password server = *&lt;BR /&gt;wins server = 10.1.2.1&lt;BR /&gt;winbind separator = +&lt;BR /&gt;winbind uid = 10000-20000&lt;BR /&gt;winbind gid = 10000-20000&lt;BR /&gt;winbind enum users = yes&lt;BR /&gt;winbind enum groups = yes&lt;BR /&gt;template homedir = /home/winnt/%D/%U&lt;BR /&gt;template shell = /bin/bash&lt;BR /&gt;</description>
      <pubDate>Tue, 12 Aug 2003 13:57:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/adding-a-samba-server-to-a-2000-domain/m-p/3047085#M87335</guid>
      <dc:creator>Martin Simnett</dc:creator>
      <dc:date>2003-08-12T13:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a Samba server to a 2000 Domain</title>
      <link>https://community.hpe.com/t5/operating-system-linux/adding-a-samba-server-to-a-2000-domain/m-p/3047086#M87336</link>
      <description>Mmmm... &lt;BR /&gt;&lt;BR /&gt;For Windows 2000 Server with Active Directory, you must add Samba computer as Pre-Windows 2000 computer before trying to join the domain :&lt;BR /&gt;&lt;BR /&gt;Add a machine account "example" inside windows active directory (Users and Computers : right-click folder Computers -&amp;gt; New -&amp;gt; Computer      fill-in : 'example' and check the box "Allow pre-Windows 2000 computers to use this account". Right-click on the samba-cable computer icon inside the Computers folder, and select "Reset Account".&lt;BR /&gt;&lt;BR /&gt;In fact, when your AD authenticates, it's samba server that asks for authentication... &lt;BR /&gt;&lt;BR /&gt;Then, on your Debian :&lt;BR /&gt;&lt;BR /&gt;example# /usr/sfw/bin/smbpasswd -j YOURDOMAIN -r PDCSERVER&lt;BR /&gt;&lt;BR /&gt;You should get :&lt;BR /&gt;change_trust_account_password: Changed password for domain YOURDOMAIN.&lt;BR /&gt;Joined domain YOURDOMAIN.&lt;BR /&gt;&lt;BR /&gt;Restart samba, it should work...&lt;BR /&gt;&lt;BR /&gt;hth&lt;BR /&gt;&lt;BR /&gt;J&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 12 Aug 2003 16:16:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/adding-a-samba-server-to-a-2000-domain/m-p/3047086#M87336</guid>
      <dc:creator>Jerome Henry</dc:creator>
      <dc:date>2003-08-12T16:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a Samba server to a 2000 Domain</title>
      <link>https://community.hpe.com/t5/operating-system-linux/adding-a-samba-server-to-a-2000-domain/m-p/3047087#M87337</link>
      <description>Thanks again J for the response but when I try the smbpasswd command I get &lt;BR /&gt;&lt;BR /&gt;fetch_domain_sid: machine PDC rejected the tconx on the IPC$ share. Error was : NT_STATUS_ACCESS_DENIED.&lt;BR /&gt;Failed to get domain SID. Unable to join domain xxxxx.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Aug 2003 06:56:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/adding-a-samba-server-to-a-2000-domain/m-p/3047087#M87337</guid>
      <dc:creator>Martin Simnett</dc:creator>
      <dc:date>2003-08-13T06:56:09Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a Samba server to a 2000 Domain</title>
      <link>https://community.hpe.com/t5/operating-system-linux/adding-a-samba-server-to-a-2000-domain/m-p/3047088#M87338</link>
      <description>Hi Martin,&lt;BR /&gt;&lt;BR /&gt;If you followed this adding smb machine to your domain and if you still get the error message, then there are good chances that you apply a restictive policy on you DC.&lt;BR /&gt;&lt;BR /&gt;A good idea first would be to try your samba server with local (samba) passwords. If you get blocked there, then post you smb.conf file, for there are good chances that something is missing...&lt;BR /&gt;&lt;BR /&gt;It'll be fixed sooner or later !  :]]&lt;BR /&gt;&lt;BR /&gt;J</description>
      <pubDate>Wed, 13 Aug 2003 09:05:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/adding-a-samba-server-to-a-2000-domain/m-p/3047088#M87338</guid>
      <dc:creator>Jerome Henry</dc:creator>
      <dc:date>2003-08-13T09:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a Samba server to a 2000 Domain</title>
      <link>https://community.hpe.com/t5/operating-system-linux/adding-a-samba-server-to-a-2000-domain/m-p/3047089#M87339</link>
      <description>hey&lt;BR /&gt;you need to change the following lines in your /etc/nsswitch.conf to be something like :&lt;BR /&gt;passwd:  files  winbind&lt;BR /&gt;shadow:  files&lt;BR /&gt;group:  files  winbind&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;1. change your /etc/pam.d/login file , change the auth lines to the following :&lt;BR /&gt;auth  required  /lib/security/pam_securetty.so&lt;BR /&gt;auth  required  /lib/security/pam_nologin.so&lt;BR /&gt;auth  sufficient  /lib/security/pam_winbind.so&lt;BR /&gt;auth  required  /lib/security/pam_pwdb.so use_first_pass shadow nullok&lt;BR /&gt; &lt;BR /&gt;and chane the account line to :&lt;BR /&gt;account  required  /lib/security/pam_winbind.so&lt;BR /&gt;&lt;BR /&gt;2. run the command :&lt;BR /&gt;    smbpasswd -j DOMAIN -r PDC -U Administrator&lt;BR /&gt;&lt;BR /&gt;i hope it will help..&lt;BR /&gt;&lt;BR /&gt;Avinoam</description>
      <pubDate>Wed, 13 Aug 2003 16:56:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/adding-a-samba-server-to-a-2000-domain/m-p/3047089#M87339</guid>
      <dc:creator>Avinoam</dc:creator>
      <dc:date>2003-08-13T16:56:50Z</dc:date>
    </item>
  </channel>
</rss>

