Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Jan 2009 21:44:26 -0700
From:      Tim Judd <tajudd@gmail.com>
To:        Aggelidis Nikos <aggelidis.news@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: weird samba error
Message-ID:  <496C1C2A.9030505@gmail.com>
In-Reply-To: <30fc78250901091029j7a665b16ta260861a92b50002@mail.gmail.com>
References:  <30fc78250901091029j7a665b16ta260861a92b50002@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@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).



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?496C1C2A.9030505>