Nuestro burocrata preferido: Sam Lowry https://lowry.sindominio.net
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

35 lines
860 B

all: js go
js:
npm install
npm install --save-dev expose-loader
npm run build
mkdir -p dist/js
cp assets/zxcvbn.js dist/js
cp assets/zxcvbn-bootstrap-strength-meter.js dist/js
cp assets/jquery.dynatable* dist/js
go:
go get .
go build
clean:
rm -rf node_modules dist lowry
deps:
sudo apt install slapd ldap-utils golang npm
fixtures:
sudo cp examples/sindominio.* /etc/ldap/schema/
sudo ldapadd -Y EXTERNAL -H ldapi:// -f /etc/ldap/schema/sindominio.ldif
sudo ldapmodify -Y EXTERNAL -H ldapi:// -f examples/passwd-format.ldif
sudo ldapmodify -Y EXTERNAL -H ldapi:// -f examples/lastbind-module-enable.ldif
sudo ldapadd -Y EXTERNAL -H ldapi:// -f examples/lastbind-module-load.ldif
sudo slapadd -n 1 -l examples/data.ldif
sudo $(shell examples/sample-users-first-login.sh)
demo:
./lowry -config examples/lowry.conf
test:
go test ./...