forked from grafana.jool/grafana-jool
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.
14 lines
272 B
14 lines
272 B
#!/bin/bash
|
|
|
|
echo "Pre-populating ldap entries, first waiting for ldap to start"
|
|
|
|
sleep 3
|
|
|
|
adminUserDn="cn=admin,dc=grafana,dc=org"
|
|
adminPassword="grafana"
|
|
|
|
for file in `ls /etc/ldap/prepopulate/*.ldif`; do
|
|
ldapadd -x -D $adminUserDn -w $adminPassword -f "$file"
|
|
done
|
|
|
|
|
|
|