Bug 12692 - client utils: Cannot auth with usernames containing '%' (percent) character
Summary: client utils: Cannot auth with usernames containing '%' (percent) character
Status: NEW
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Tools (show other bugs)
Version: unspecified
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Andrew Bartlett
QA Contact: Samba QA Contact
URL:
Keywords:
: 11479 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-03-15 15:47 UTC by Björn Baumbach
Modified: 2022-09-14 00:53 UTC (History)
2 users (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
...
Comment 1 Douglas Bagnall 2022-09-14 00:53:22 UTC
*** Bug 11479 has been marked as a duplicate of this bug. ***