Compare commits
No commits in common. "9f62fce11586b1b497c83c9bd253e7df03347436" and "bd964455ea31db56fbf71f644337b0b8170985b9" have entirely different histories.
9f62fce115
...
bd964455ea
4 changed files with 0 additions and 12 deletions
|
|
@ -8,7 +8,6 @@
|
|||
<file owner="ldap" mode="400">/etc/pki/tls/private/openldap.key</file>
|
||||
<file owner="ldap">/var/lib/ldap/DB_CONFIG</file>
|
||||
<file>/secrets/users.ldif</file>
|
||||
<file>/secrets/users_mod.ldif</file>
|
||||
<file>/secrets/config.ldif</file>
|
||||
<file>/secrets/config_acl.ldif</file>
|
||||
<file>/secrets/admin_ldap.pwd</file>
|
||||
|
|
|
|||
|
|
@ -13,4 +13,3 @@ ExecStart=+/usr/sbin/slapd -u ldap -h ldaps:///
|
|||
#waiting for ldap server...
|
||||
ExecStartPost=/usr/bin/timeout 90 sh -c 'while ! 3<> /dev/tcp/localhost/%%ldap_port; do sleep 1; done'
|
||||
ExecStartPost=-/usr/bin/ldapmodify -D %%ldap_admin_dn -y /usr/local/lib/secrets/admin_ldap.pwd -v -f /usr/local/lib/secrets/config_acl.ldif
|
||||
ExecStartPost=-/usr/bin/ldapmodify -D %%ldap_admin_dn -y /usr/local/lib/secrets/admin_ldap.pwd -v -f /usr/local/lib/secrets/users_mod.ldif
|
||||
|
|
|
|||
|
|
@ -1,9 +0,0 @@
|
|||
# Remote
|
||||
%for %%remote in %%accounts.remotes
|
||||
%set %%name = %%normalize_family(%%remote)
|
||||
dn: %%accounts['remote_' + %%name]['dn_' + %%name]
|
||||
changetype: modify
|
||||
replace: userPassword
|
||||
userPassword:: %%ssha_encode(%%accounts['remote_' + %%name]['password_' + %%name])
|
||||
|
||||
%end for
|
||||
|
|
@ -2,6 +2,5 @@
|
|||
%set %%name = %%normalize_family(%%server)
|
||||
CREATE DATABASE "%%name";
|
||||
CREATE ROLE "%%name" WITH LOGIN ENCRYPTED PASSWORD '%%accounts["remote_" + %%name]["password_" + %%name]';
|
||||
ALTER USER "%%name" PASSWORD '%%accounts["remote_" + %%name]["password_" + %%name]';
|
||||
GRANT ALL PRIVILEGES ON DATABASE "%%name" TO "%%name";
|
||||
%end for
|
||||
|
|
|
|||
Loading…
Reference in a new issue