base64 oneline

This commit is contained in:
Denis Knauf 2018-03-29 23:59:59 +02:00
parent 28c0465ca1
commit 52f3274f41
2 changed files with 2 additions and 2 deletions

View file

@ -20,7 +20,7 @@ objectClass: simpleSecurityObject
objectClass: organizationalRole objectClass: organizationalRole
cn: root cn: root
description: LDAP administrator description: LDAP administrator
userPassword:: `slappasswd -h '{CRYPT}' -c '$5$rounds=8000$%.16s' -s "$pw" | base64` userPassword:: `slappasswd -h '{CRYPT}' -c '$5$rounds=8000$%.16s' -s "$pw" | base64 -w0`
structuralObjectClass: organizationalRole structuralObjectClass: organizationalRole
dn: ou=People,$basedn dn: ou=People,$basedn

View file

@ -21,5 +21,5 @@ uid: $1
givenName:: `echo "$2" | base64` givenName:: `echo "$2" | base64`
sn:: `echo "$3" | base64` sn:: `echo "$3" | base64`
mail:: `echo "$4" | base64` mail:: `echo "$4" | base64`
userPassword:: `slappasswd -h '{CRYPT}' -c '$5$rounds=8000$%.16s' -s "$pw" | base64` userPassword:: `slappasswd -h '{CRYPT}' -c '$5$rounds=8000$%.16s' -s "$pw" | base64 -w0`
EOF EOF