Click to See Complete Forum and Search --> : cant join samba domain: bad Username/pass


vandensype
07-28-2003, 03:57 PM
Hello all,
I am trying to setup a samba domain, mainly by following this (http://www.siliconvalleyccie.com/linux-hn/samba.htm) link, so far everything seems cool, except when I try to join the domain from my win2k box I get a message that says: The following error occured while trying to join the domain "homenet": Logon failure: Unknown username or bad password"

I have set up an administrator user and a sysadmin group on the samba box and used these creditionals to try to join. I have also tried using everyother user (including root) to join, but no luck, I also changed the "domain admin groups" and "admin users" params to reflect different users on the system, but again, no luck.

Similarly, when I try to use SWAT to logon with the "administrator" user, it will not let me make changes to the smb.conf file. This seems like it would stem from the same problem.

My smb.conf file is posted below, if anyone has any ideas it would be most appreciated, tyi.

P.S. If you need the full smb.conf, or the smbpasswd file, let me know.


# Samba config file created using SWAT
# from 192.168.1.4 (192.168.1.4)
# Date: 2003/07/28 15:19:30
# Global parameters
[global]
workgroup = HOMENET
netbios name = CAESAR
server string = Samba Server %v
encrypt passwords = Yes
obey pam restrictions = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*success fully*
unix password sync = Yes
log file = /var/log/samba/%m.log
max log size = 0
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
addprinter command = /usr/bin/addprinter
domain admin group = @sysadmin
add user script = /usr/sbin/useradd -d /dev/null -g 100 -s /bin/false -M %u
logon script = logon.cmd
logon drive = H:
domain logons = Yes
os level = 99
preferred master = Yes
domain master = Yes
dns proxy = No
admin users = @sysadmin
printer admin = @sysadmin
printing = lprng

[homes]
comment = Home Directories
valid users = %S
read only = No
create mask = 0664
directory mask = 0775
browseable = No

printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No

[netlogon]
path = /home/netlogon
write list = @sysadmin
guest ok = Yes

[profiles]
path = /home/ntprofiles
create mask = 0600
directory mask = 0700
guest ok = Yes
browseable = No

[Public]
comment = Public Directory
path = /usr/Public
read only = No

mdwatts
07-29-2003, 07:42 AM
See if you can find something to help in these JL forum search results for 'samba username password' (http://justlinux.com/forum/search.php?s=&action=showresults&searchid=691947&sortby=lastpost&sortorder=descending).

There have been a couple (quite some time ago) of how-to's posted in the 'How I did it' forum on Samba and Windows domains that may also help. A quick search in that forum will locate those threads.

'samba windows pdc'

FrogBear70
07-29-2003, 10:27 AM
Did create the user in smbpasswd?

If not you'll need to do the following:

smbpasswd -a username

Then fill in the password and make it the same *** the Windows password and you might be good.