possible patch for username map bug [was Re: [Samba] bug in parsing the 'username map' in 3.0.5pre1]

christoph.beyer at desy.de christoph.beyer at desy.de
Wed Jul 7 09:38:25 GMT 2004


Hi Jerry et al,

looks fine for me, I tried the patch on 3.0.5pre1 and everything is OK now :-)

thanks
	~christoph


On Tue, 6 Jul 2004, Gerald (Jerry) Carter wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Could you both (and anyone else having 'username map'
> problems in 3.0.4 or later)  try this patch which hopefully
> fixes the username map bug.
>
> Thanks.  Let me know how it goes.
>
>
>
>
> cheers, jerry
>
>
> | the parsing of the 'username map' file seems to be
> | broken in 3.0.5pre1 and a few earlier releases. The '!'
> | at the beginning of a line is ignored. Something like
> |
> | !lp = lp
> | !chbeyer = chbeyer
> | !guest = guest
> | nobody = *
> |
> | doesn't work anymore :-(
> |
> | from the man page:
> |
> | [ snip ]
> |           If any line begins with an '!' then the processing will
> |           stop after that line if a mapping was done by the line.
> |           Otherwise mapping continues with every line being  pro-
> |           cessed.  Using '!' is most useful when you have a wild-
> |           card mapping line later in the file.
> | [ snip ]
>
>
>
> - ----------------------------------------------------------------------
> Hewlett-Packard            ------------------------- http://www.hp.com
> SAMBA Team                 ---------------------- http://www.samba.org
> GnuPG Key                  ---- http://www.plainjoe.org/gpg_public.asc
> "...a hundred billion castaways looking for a home." ----------- Sting
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.4 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFA6xsZIR7qMdg1EfYRAnzFAKChF7QIKOcWfVMw0x/7SfU3O1nhZQCfU/Fc
> 5ueDSSX0axBqQOSdVH/n7F4=
> =Aka7
> -----END PGP SIGNATURE-----
>

best regards
	~christoph


-- 
/*   Christoph Beyer     |   Office: Building 2b / 23     *\
 *   DESY                |    Phone: 040-8998-2317        *
 *   - IT -              |      Fax: 040-8998-4060        *
\*   22603 Hamburg       |     http://www.desy.de         */



More information about the samba mailing list