From 52f3274f41ecdbffad222a1c8b5c4ee97f772a02 Mon Sep 17 00:00:00 2001 From: Denis Knauf Date: Thu, 29 Mar 2018 23:59:59 +0200 Subject: [PATCH] base64 oneline --- 00.root.ldif.sh | 2 +- 90.user.ldif.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/00.root.ldif.sh b/00.root.ldif.sh index 3cc6e87..db44705 100755 --- a/00.root.ldif.sh +++ b/00.root.ldif.sh @@ -20,7 +20,7 @@ objectClass: simpleSecurityObject objectClass: organizationalRole cn: root 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 dn: ou=People,$basedn diff --git a/90.user.ldif.sh b/90.user.ldif.sh index 8a6148e..96b67f0 100755 --- a/90.user.ldif.sh +++ b/90.user.ldif.sh @@ -21,5 +21,5 @@ uid: $1 givenName:: `echo "$2" | base64` sn:: `echo "$3" | 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