[Samba] username map before passwd?

Gerald (Jerry) Carter jerry at samba.org
Fri Jun 24 16:23:40 GMT 2005

Hash: SHA1

Häfliger Peter wrote:
> Im using Samba 3.0.14a.
> My problem is, that smb starts username mapping before 
> it looks in passwd. last line of username map looks like follow
> ###
> domainuu= mars\*
> ###
> if user not exists in local passwd, so it should be mappd 
> to domainuu (works fine) but if i connect as user mars\peter
> (peter exists as local unix account) it is also mapped to
> domainuu.  but should connect as user peter.
> is there any parameter which i can say, it should first check 
> /etc/passwd and afterwards username mapping. otherwise i need
> to map every local user in username map like follow
> ###
> !peter = mars\peter		<- ! match stopps further mapping
> domainuu= mars\*
> ***
> The thing is, i need to map every domainuser (mars) to domainuu, 
> to use domainuu (unix user) as public share like domain guests.

The way it should work is

standalone server: 	apply username map, authenticate, getpwnam()
domain member:		authenticate, apply username map, getpwnam()

Is this not how it is working for you?

cheers, jerry
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org


More information about the samba mailing list