weird samba error

Tim Judd tajudd at gmail.com
Mon Jan 12 20:44:13 PST 2009


Aggelidis Nikos wrote:
> 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
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"

I don't have a link, but a friend had similar problems.

He searched the list archives and the proposed solution (which worked 
for him) was username case sensitivity.

I think it's the windows side that needs ALL CAPS for the usernames for 
this mapping to work.

Please try that.  (and try the opposite if the first doesn't work).


More information about the freebsd-questions mailing list