User Tools

Site Tools


samba:test_samba_s_ability_to_authenticate_users

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
samba:test_samba_s_ability_to_authenticate_users [2016/07/10 10:09] petersamba:test_samba_s_ability_to_authenticate_users [2019/12/04 19:53] (current) – removed peter
Line 1: Line 1:
-====== Samba - Test Samba’s ability to authenticate users ====== 
- 
-===== Test using an invalid username and password ===== 
- 
-<code bash> 
-smbclient //sharewiz/share -U user1%secret 
-</code> 
- 
-Result: 
- 
-<code> 
-Domain=[SHAREWIZ] OS=[Windows 6.1] Server=[Samba 4.3.9-Ubuntu] 
-tree connect failed: NT_STATUS_ACCESS_DENIED 
-</code> 
- 
- 
-===== Test using a valid username but with an incorrect password ===== 
- 
-<code bash> 
-root@server1:~# smbclient //sharewiz/share -U validuser%incorrect_password 
-</code> 
- 
-Result: 
- 
-<code> 
-session setup failed: NT_STATUS_LOGON_FAILURE 
-</code> 
- 
- 
-===== Test using a valid username with a valid password ===== 
- 
-<code bash> 
-smbclient //sharewiz/share -U validuser%correct_password 
-</code> 
- 
-Result: 
- 
-<code> 
-Domain=[SHAREWIZ] OS=[Windows 6.1] Server=[Samba 4.3.9-Ubuntu] 
-smb: \>  
-</code> 
- 
-If smbd is able to successfully authenticate the login name/password pair and that user is authorized to access the requested share, we are greeted with an **smb: \>** prompt. 
- 
-Exit smb, by typing: 
- 
-<code bash> 
-smb: \> exit 
-</code> 
- 
  
samba/test_samba_s_ability_to_authenticate_users.1468145349.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki