After creating username mapping under samba, "valid users" option is NOT working as expected

Solution Verified - Updated -

Issue

  • After creating username mapping under samba using "username map", "valid users" option is NOT working as expected
  • If "valid users" consists of AD user which is mapped to an UNIX user, samba share is NOT accessible:
# cat /etc/samba/users.map 
testuser = GSSLAB\aduser
...
# cat /etc/samba/smb.conf | grep "valid users"
valid users = GSSLAB\aduser
...
# smbclient //`hostname`/testshare -U GSSLAB\\aduser%RedHat1!
Domain=[GSSLAB1] OS=[Unix] Server=[Samba 3.6.23-35.el6_8]
tree connect failed: NT_STATUS_ACCESS_DENIED       <--------- Not Expected 

Environment

  • Red Hat Enterprise Linux 6 (Configured as samba server and AD client using winbind)
  • samba (samba-3.6.23-35)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content