├── requirements.txt ├── ldapass ├── static │ ├── fonts │ │ ├── glyphicons-halflings-regular.eot │ │ ├── glyphicons-halflings-regular.ttf │ │ ├── glyphicons-halflings-regular.woff │ │ └── glyphicons-halflings-regular.woff2 │ ├── js │ │ ├── npm.js │ │ └── bootstrap.min.js │ └── css │ │ ├── bootstrap-theme.min.css │ │ ├── bootstrap-theme.css │ │ └── bootstrap-theme.css.map ├── templates │ ├── error.html │ ├── base.html │ ├── index.html │ └── reset.html └── ldapass.py ├── examples ├── ldapass.conf ├── uwsgi_ldapass.ini └── nginx_ldapass.example.com.conf ├── LICENSE └── README.md /requirements.txt: -------------------------------------------------------------------------------- 1 | Flask 2 | WTForms 3 | python-ldap 4 | -------------------------------------------------------------------------------- /ldapass/static/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartekrutkowski/ldapass/HEAD/ldapass/static/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /ldapass/static/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartekrutkowski/ldapass/HEAD/ldapass/static/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /ldapass/static/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartekrutkowski/ldapass/HEAD/ldapass/static/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /ldapass/static/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartekrutkowski/ldapass/HEAD/ldapass/static/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /examples/ldapass.conf: -------------------------------------------------------------------------------- 1 | [app] 2 | listen_addr = 0.0.0.0 3 | listen_port = 8080 4 | smtp_addr = smtp-server.example.com 5 | hostname = ldapass-hostname.example.com 6 | database = ldapass.sql 7 | ldap_debug = 0 8 | 9 | [ldap] 10 | addr = ldap-server.example.com 11 | port = 389 12 | user = cn=Manager,dc=example,dc=com 13 | pass = very-complicated-ldap-password 14 | basedn = ou=People,dc=example,dc=com 15 | -------------------------------------------------------------------------------- /examples/uwsgi_ldapass.ini: -------------------------------------------------------------------------------- 1 | [uwsgi] 2 | chdir = /var/www/ldapass/app 3 | venv = /var/www/ldapass/ldapass_venv 4 | module = ldapass 5 | callable = app 6 | 7 | master = true 8 | processes = 8 9 | chmod-socket = 666 10 | vacuum = true 11 | 12 | logto = /var/log/uwsgi/ldapass.log 13 | logto2 = /var/log/uwsgi/ldapass2.log 14 | log-micros = true 15 | -------------------------------------------------------------------------------- /examples/nginx_ldapass.example.com.conf: -------------------------------------------------------------------------------- 1 | server { 2 | listen 80; 3 | server_name ldapass.example.com; 4 | 5 | access_log /var/log/nginx/ldapass.example.com-access.log; 6 | error_log /var/log/nginx/ldapass.example.com-error.log; 7 | 8 | location /static { 9 | alias /var/www/ldapass/app/static; 10 | } 11 | 12 | location / { try_files $uri @ldapass.example.com; } 13 | 14 | location @ldapass.example.com { 15 | root /var/www/ldapass/app; 16 | include uwsgi_params; 17 | uwsgi_pass 127.0.0.1:8005; 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /ldapass/static/js/npm.js: -------------------------------------------------------------------------------- 1 | // This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment. 2 | require('../../js/transition.js') 3 | require('../../js/alert.js') 4 | require('../../js/button.js') 5 | require('../../js/carousel.js') 6 | require('../../js/collapse.js') 7 | require('../../js/dropdown.js') 8 | require('../../js/modal.js') 9 | require('../../js/tooltip.js') 10 | require('../../js/popover.js') 11 | require('../../js/scrollspy.js') 12 | require('../../js/tab.js') 13 | require('../../js/affix.js') -------------------------------------------------------------------------------- /ldapass/templates/error.html: -------------------------------------------------------------------------------- 1 | {% extends "base.html" %} 2 | {% block container %} 3 |