weird samba error

Aggelidis Nikos aggelidis.news at gmail.com
Fri Jan 9 10:29:19 PST 2009


hi to all the list,

i have a question concerning samba and freebsd:

whenever i use the option username map = /usr/local/etc/samba/smbusers
in my smb.conf
, and i try to connect to samba server like this

#smbclient //apollo/username
Password:
session setup failed: NT_STATUS_LOGON_FAILURE

i get this error even though i type the password correctly...

here is the smb.conf i use:

$cat /usr/local/etc/smb.conf
[global]
 netbios name = apollo
 workgroup = PHOME
 server string = Freebsd File Server
 dns proxy = No

 security = user
 encrypt passwords = yes
 passdb backend = smbpasswd
 smb passwd file = /usr/local/etc/samba/smbpasswd

 #*this options creates all the problems*
 #username map = /usr/local/etc/samba/smbusers

 debug timestamp = no
 log level = 1
 log file = /var/log/samba/log.%m
 max log size = 50

 hosts allow = 192.168.1., 192.168.2., 127.

[homes]
	comment = Home Directories
	read only = No
	browseable = No

#cat /usr/local/etc/samba/smbusers

# Unix_name = SMB_Name1 SMB_Name2 ...
# map_to = map_from
root = administrator
nobody = guest smbguest pcguest
username = username anotherusername

any idea why this happens?or how i should investigate it more?

thanks in advance
-nicolas


More information about the freebsd-questions mailing list