GithubHelp home page GithubHelp logo

agoeckner / smbpasswdweb Goto Github PK

View Code? Open in Web Editor NEW

This project forked from moetiker/smbpasswdweb

0.0 0.0 0.0 94 KB

an online samba password changer

License: GNU General Public License v3.0

Shell 38.14% Perl 9.20% Makefile 46.58% M4 5.34% Dockerfile 0.74%

smbpasswdweb's Introduction

SMBPasswdWeb

Version: #VERSION# Date: #DATE#

SMBPasswdWeb is a little web application letting users change their password in a Samba environment. The app relies solely on perl modules todo its work. No external utilities are required, and all missing, non-core perl modules will be built and installed alongside the app as required.

screenshot

Setup

Download the latest release from https://github.com/moetiker/SMBPasswdWeb/releases/latest

./configure --prefix=/opt/smb_passwd_web
 make

Configure will check if the necessary items are in place and give hints on how to fix the situation if something is missing.

Configuration

SmbPasswdWeb expects its configuration to be present in Environment variables:

  • SMBPASSWD_SMB_HOST - the samba host. eg. hostname.mycompany.xxx

Installation

To install the application, just run

make install

You can now run SMBPasswdWeb.pl in reverse proxy mode.

./smb_passwd_web.pl prefork --listen=http://127.0.0.1:9688

On an systemd you could easily run this standalone by creating /etc/systemd/system/smbpasswdweb.service:

[Unit]
Description=SMB Password Change Web Application

[Service]
Type=simple
User=smbpasswdweb
Group=smbpasswdweb
Restart=always
Environment=SMBPASSWD_SMB_HOST=hostname.domain.com
Environment=MOJO_MODE=production
Environment=MOJO_LOG_LEVEL=error
ExecStart=/opt/smb_passwd_web/bin/smb_passwd_web.pl prefork --listen http://127.0.0.1:6879
ExecStop=/usr/bin/pkill -f 'smb_passwd_web.+6879
Restart=always
[Install]
WantedBy=multi-user.target

Packaging

If you want to release your own version of this tool make sure to update CHANGES, VERSION and run ./bootstrap

You can also package the application as a nice tar.gz file, it will contain a mini copy of cpan, so that all perl modules can be rebuilt at the destination. If you want to make sure that your project builds with perl 5.22.1, make sure to set PERL to a perl 5.22.1 interpreter, remove your thirdparty directory and configure again. Now all modules to make your project fly with an old perl will be included in the distribution.

make dist

Enjoy!

Manuel Oetiker [email protected]

smbpasswdweb's People

Contributors

moetiker avatar oetiker avatar agoeckner avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.