-
Notifications
You must be signed in to change notification settings - Fork 3
Gsmbpasswd/gsmbpasswd
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Β | Β | |||
Β | Β | |||
Β | Β | |||
Β | Β | |||
Β | Β | |||
Repository files navigation
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
About
web server for a SMB user to change his/her password
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published