Username mapping

Jean-Francois Micouleau Jean-Francois.Micouleau at
Fri Jun 5 18:59:47 GMT 1998

On Sat, 6 Jun 1998, Luke Kenneth Casson Leighton wrote:

> i need to create a "domain map username" parameter.
> then you will be able to do things like log in with a 20 character name
> and actually be logged in with an 8 character name.

before you start writing code to support a new option:

In the original mail, Kevin said the trouble is with a username longer
than 8 chars in /etc/passwd.

So I suspect somewhere samba truncate the username to 8 chars before doing
the compare against /etc/passwd.

BTW, this re-open the thread about OS supporting username longer than 8
chars for trust accounts, as it looks like linux (redhat 4.2) support it

> On Fri, 5 Jun 1998, Kevin P. Fleming wrote:
> > For some reason my smb.conf man page doesn't include any information on
> > "map user" and I think it will do what I want... Here's the scenario:
> > 
> > I've got a Linux machine (RH 4.2) running the 1.9.19-prealpha code from
> > a week or so ago. It works fine, and is running as a domain member
> > server with a (real:-) NT machine as the PDC. There are a couple of
> > shares on this machine, and I've tested accessing those shares from
> > three different user accounts.
> > 
> > The three user accounts are set up identically in /etc/passwd and
> > /etc/group, but only two of them work. The third does not, and I suspect
> > it does not because the user name is longer than 8 characters. The full
> > username is listed in /etc/passwd, and works just fine when used for the
> > POP/IMAP servers on the same Linux machine, but does not work through
> > Samba.
> > 
> > Any thoughts as to what might be wrong here?
> > 

Pinky: "What are we going to do tonight, Brain?"
Brain: "The same thing we do every night, Pinky :
	try to install Windows NT !"

More information about the samba-technical mailing list