Hi All, I am trying to set up samba simply as a standalone Primary Domain Controller, but unfortunatley - for the last three days at least, it just does not want to play! i cannot find a problem in my smb.conf file and to proove that it works, i can log into the samba server via the linux command line with smbclient. The problem is the windows machines, when to go to log into the domain, i get a message saying the password was rejected and to retry. I'm starting to pull all of my hair out, and i'm getting very frustrated. The reason i am doing it this way is for a proof of concept, to make sure i can get roaming profiles working the way i want to. All help would be appreciated. Gareth Below is a copy of my smb.conf [global] ; Basic Server Settings workgroup = sack netbios name = potato server string = Samba PDC Running %v socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=8192 SO_RCVBUF=8192 socket address = 192.168.0.1 ; PDC & Master Browser Settings os level = 64 preferred master = yes local master = yes domain master = yes ; Security & Logging Settings security = user encrypt passwords = yes domain logons = yes log file = /var/log/samba/log.%m log level = 2 max log size = 50 hosts allow = 127.0.0.1 192.168.0.1/255.255.255.0 ; User Profiles & Home Directory logon home = \\%L\%U\.profile logon drive = H: logon script = netlogon.bat logon path = \\%L\profiles\%U ; The add user script add user script = /usr/sbin/useradd -d /dev/null -g machines -s /bin/false -M %u ; Password Sync'in unix password sync = yes passwd program = /usr/bin/passwd %u passwd chat = *New*UNIX*password* %n\n *Retype*new*UNIX*password* %n\n *Enter*new*UNIX*password* %n\n *retype*new*UNIX*password* %n\n *passwd: *all*authenic ation*tokens*updated*successfully* ; Interface Settings interfaces = eth0 bind interfaces only = yes # Shares [homes] comment = Home Directorys browseable = no writeable = yes [profiles] path = /home/samba/profiles writeable = yes browseable = no create mask = 0600 directory mask = 0700 [netlogon] path = /home/netlogon read only = yes ;write list = @admin
As an update to my post earlier, i think i have found the problem. The nmbd server isnt working correctly on my machine. given that my netbios name is POTATO and the workgroup name is SACK # > nmblookup -S potato querying potato on 192.168.0.255 querying potato on 81.96.130.255 name_query failed to find name potato with smbd and nmbd both started, it cannot find the server. Another look at the workgroup shows # > nmblookup sack querying sack on 192.168.0.255 192.168.0.223 sack<00> 192.168.0.224 sack<00> I would have expected this to show my server as part of the workgroup?? And one last look to search for all samba servers # > nmblookup -B potato _ _SAMBA_ _ querying _ on 0.0.0.0 name_query failed to find name _ querying _SAMBA_ on 0.0.0.0 name_query failed to find name _SAMBA_ querying _ on 0.0.0.0 name_query failed to find name _ anybody have any ideas?? Thanks Gareth
Gareth Lapworth
2002-Nov-25 10:17 UTC
[Samba] Problem with SuSE 8.1 & Samba 2.2.5 PDC Fixed
All, In case anyone has this problem either now or in the future, my problem was solved by switching off SuSEfirewall2. Now i have to re-jig the firewall rules to allow it to work again, but hey - its working. Thanks for your help Gareth