forked from Gsmbpasswd/gsmbpasswd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
71 lines (66 loc) · 3.07 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
gsmbpasswd is a web server daemon that provides SMB users the possibility to
change their passwords, and consists of two python programs: gsmbpasswd-http
and gsmbpasswd-https.
gsmbpasswd-http forces a client to use SSL/TLS connections by redirection.
gsmbpasswd-https employs two external components: pysmb, a Python
implementation of the client-side SMB/CIFS protocol, and smbpasswd.
The former is to authenticate a SMB user by checking username and password,
while the latter is to change a user's password. The configuration file and
the default configuration file are reloaded only by restarting the daemon.
Both of the programs along with smbpasswd are run as the unprivileged user,
gsmbpasswd. At first, gsmbpasswd authenticates the user with help of the pysmb
library. To provide defence in depth, a second layer of authentication is also
used when communicating with the SMB server with the option -U for smbpasswd.
Installation note regarding fail2ban:
If the log-file /var/log/gsmbpasswd/gsmbpasswd.log is not present when starting
fail2ban then no parsing of the log-file will be done and hence no blocking.
Therefore first start the gsmbpasswd service and afterwards the fail2ban service
to ensure proper functionality of fail2ban.
.
├── etc
│ ├── default
│ │ └── gsmbpasswd
│ ├── gsmbpasswd
│ │ ├── gsmbpasswd.conf
│ │ ├── gsmbpasswd-html.conf
│ │ ├── gsmbpasswd-messages.conf
│ │ └── public
│ │ ├── static
│ │ │ ├── favicon.ico
│ │ │ ├── index.css
│ │ │ ├── logo_en.png
│ │ │ └── logo_sv.png
│ │ └── templates
│ │ └── index.html
│ └── init.d
│ └── gsmbpasswd
├── gsmbpasswd_install
├── README
└── usr
├── sbin
│ ├── gsmbpasswd-http.py
│ └── gsmbpasswd-https.py
└── share
├── doc
│ └── gsmbpasswd
│ ├── examples
│ │ ├── apparmor.d
│ │ │ ├── usr.sbin.gsmbpasswd-http.py
│ │ │ └── usr.sbin.gsmbpasswd-https.py
│ │ └── fail2ban
│ │ ├── filter.d
│ │ │ ├── gsmbpasswd-auth.conf
│ │ │ └── gsmbpasswd-mal.conf
│ │ └── jail.local
│ └── permissions
├── man
│ ├── man5
│ │ └── gsmbpasswd.conf.5
│ ├── man7
│ │ └── gsmbpasswd.7
│ └── man8
│ ├── gsmbpasswd-http.py.8
│ └── gsmbpasswd-https.py.8
└── pyshared
└── web
└── httpserver.py