Skip to content

Commit 0dae9f4

Browse files
committed
remove root pw setting
1 parent 853ea43 commit 0dae9f4

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

ldap/ldap/start-ldap.sh

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -39,19 +39,6 @@ fi
3939

4040
/usr/sbin/slapd -h ldapi:/// -g openldap -u openldap -F /etc/ldap/slapd.d
4141

42-
echo "Creating root account"
43-
touch /tmp/modify_client
44-
chmod 600 /tmp/modify_client
45-
cat << _EOF_ | ldapmodify -Q -Y EXTERNAL -H ldapi:/// -f /dev/stdin
46-
dn: olcDatabase={0}config,cn=config
47-
changetype: modify
48-
add: olcRootPW
49-
olcRootPW: $ROOTPW
50-
_EOF_
51-
52-
# slapd might have crashed at this point (bug in ldap), so we restart
53-
# service slapd restart || true
54-
5542
# Copy schemas
5643
echo "Copying schemas"
5744
ldapsearch -y /tmp/ldap.secret -x -D "${ADMIN_BIND:?}" -b "cn=schema,cn=config" \

0 commit comments

Comments
 (0)