[Samba] Problems connecting win7 client to new Samba PDC

Andrew Mark andrewm at aimsystems.ca
Thu Aug 9 07:56:29 MDT 2012


Have you tried adding a machine account for your CLIENTPC
i.e.  #> pdbedit -a -m -u CLIENTPC

This will create the CLIENTPC$ account it was squawking about.
In my experience, the machine needs a Samba account too.

Cheers,
  

Andrew Mark | Development Analyst | www.aimsystems.ca
local: 519-837-1072 | fax: 519-837-4063 | int'l 800-465-2961
12-350 Speedvale Ave. W. | Guelph, ON | N1H 7M7 | Canada

On 12-08-09 09:28 AM, Brandon wrote:
> Here's some more information on my problem:
>
> smb.conf:
> --- begin smb.conf ---
> [global]
>         workgroup = MYWORKGROUP
>         server string = %h server (Samba, Ubuntu)
>         map to guest = Bad User
>         obey pam restrictions = Yes
>         pam password change = Yes
>         passwd program = /usr/bin/passwd %u
>         passwd chat = *Enter\snew\s*\spassword:* %n\n 
> *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
>         unix password sync = Yes
>         syslog = 0
>         log file = /var/log/samba/log.%m
>         max log size = 1000
>         add machine script = /usr/sbin/useradd -g machines -c "%u 
> machine account" -d /var/lib/samba -s /bin/false %u
>         logon script = logon.cmd
>         logon path =
>         logon home =
>         domain logons = Yes
>         dns proxy = No
>         usershare allow guests = Yes
>         panic action = /usr/share/samba/panic-action %d
>         idmap config * : backend = tdb
>
> [homes]
>         comment = Home Directories
>         valid users = %S
>         read only = No
>         create mask = 0700
>         directory mask = 0700
>         browseable = No
>
> [netlogon]
>         comment = Network Logon Service
>         path = /srv/samba/netlogon
>         guest ok = Yes
>
> [printers]
>         comment = All Printers
>         path = /var/spool/samba
>         create mask = 0700
>         printable = Yes
>         print ok = Yes
>         browseable = No
>
> [print$]
>         comment = Printer Drivers
>         path = /var/lib/samba/printers
> --- end smb.conf ---
>
> Here's the pdbedit -Lv spitout for my user:
>
> --- begin output---
> Unix username:        myadmin
> NT username:
> Account Flags:        [U          ]
> User SID: S-1-5-21-2762049607-2166809996-183419993-1000
> Primary Group SID:    S-1-5-21-2762049607-2166809996-183419993-513
> Full Name:
> Home Directory:
> HomeDir Drive:
> Logon Script:         logon.cmd
> Profile Path:
> Domain:               MYWORKGROUP
> Account desc:
> Workstations:
> Munged dial:
> Logon time:           0
> Logoff time:          Wed, 06 Feb 2036 10:06:39 EST
> Kickoff time:         Wed, 06 Feb 2036 10:06:39 EST
> Password last set:    Wed, 08 Aug 2012 17:54:50 EDT
> Password can change:  Wed, 08 Aug 2012 17:54:50 EDT
> Password must change: never
> Last bad password   : 0
> Bad password count  : 0
> Logon hours         : FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
> --- end output ---
>
>


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the samba mailing list