Tips for finding Knowledge Articles

  • - Enter just a few key words related to your question or problem
  • - Add Key words to refine your search as necessary
  • - Do not use punctuation
  • - Search is not case sensitive
  • - Avoid non-descriptive filler words like "how", "the", "what", etc.
  • - If you do not find what you are looking for the first time,reduce the number of key words you enter and try searching again.
  • - Minimum supported Internet Explorer version is IE9
Home  >
article

KB-7506: Samba4 force user parameter - Error: User name could not be found

Centrify DirectControl ,   Centrify DirectControl Plugins ,  

28 September,16 at 11:10 PM

Applies to: Samba 4.2.10 and up with adbindproxy 5.3.0.

Question: Would like to use the force user parameter in smb.conf but receiving the error message, "User name could not be found". How can this be fixed? 

User-added image


Answer:
If the force user is a:

1)  Local user:
The local user must not be an AD user. The local user must also be a valid user for the share. 

2) AD user: 
The AD user must be Zone Enabled
The AD users primary group must be Zone enabled. 
These setting can be checked by using:

# adquery user <ADuser> -A

excerpt from smb.conf:
[result]
    comment = test
    valid users = centrifyimage.vms/testuser 
    path = /tmp/test
    public = no
    writeable = no
    browseable = yes
    guest ok = no    
    force user = centrifyimage.vms/testuser

Attachments:

Still have questions? Click here to log a technical support case, or collaborate with your peers in Centrify's Online Community.