Bug 12692 - client utils: Cannot auth with usernames containing '%' (percent) character
client utils: Cannot auth with usernames containing '%' (percent) character
Status: NEW
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Tools
unspecified
All All
: P5 normal
: ---
Assigned To: Andrew Bartlett
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-03-15 15:47 UTC by Björn Baumbach
Modified: 2017-03-15 16:15 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Björn Baumbach 2017-03-15 15:47:34 UTC
It's not possible to authenticate a user, who contains a '%' in his username, using smbclient, net or other client tools.

# samba-tool user setpassword testmit%prozent --newpassword=Passw0rd
# smbclient -L localhost -U testmit%prozent%Passw0rd
session setup failed: NT_STATUS_LOGON_FAILURE


Workaround: Use Kerberos ticket for authentication

# kinit testmit%prozent@MY.DOM
Password for testmit%prozent@MY.DOM:
# smbclient -L host.my.dom -k
        Sharename       Type      Comment
        ---------       ----      -------
        netlogon        Disk      
        sysvol          Disk
...