[cifs-discuss] Username case sensitivity in cifs authentication

Afshin Salek Afshin.Ardakani at Sun.COM
Thu Jul 10 10:16:56 PDT 2008


Usernames in workgroup mode are c-s since they have to correspond to
a Solaris user. One thing we can perhaps do to make this work better
is to always lower case the username we receive from Windows before
looking up smbpasswd (since Solaris usernames are usually all lower
case). We should perhaps preserve the username case in smbd message.

I'll file a CR for this.

Afshin

Martin Gisch wrote:
> I'm running Opensolaris 2008.05, zfs file systems shared via built in smbd in workgroup mode and seeing following behavior.
> 
> Username on my Windows PC (Goliath): Martin
> Username on the Solaris unit (reaver ): martin
> 
> Trying to access one of the smb shares from the windows box fails authentication, and I see this log message:
> 
> Jul 10 11:43:55 reaver smbd[368]: [ID 653746 daemon.notice] SmbLogon[Goliath\Martin]: NO_SUCH_USER
> 
> If I manually edit /var/smb/smbpasswd and change my entry there to "Martin" with uppercase M, then retry the share access it works, and I see this log message:
> 
> Jul 10 11:44:24 reaver smbsrv: [ID 138215 kern.notice] NOTICE: smbd[Goliath\MARTIN]: tv rw access granted
> 
> So it looks like the username matching is just case sensitive correct?
> Should the success message be showing the actual case it matched rather than capitalizing the name?
> 
> -M.
> --
> This messages posted from opensolaris.org
> _______________________________________________
> cifs-discuss mailing list
> cifs-discuss at opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/cifs-discuss



More information about the cifs-discuss mailing list