Add paths to the 389-ds commands
This commit is contained in:
parent
5d7adf4b8b
commit
9eaa6ccaef
1 changed files with 7 additions and 7 deletions
|
@ -5,25 +5,25 @@ LDAP_SHORTNAME="HOSTNAME"
|
||||||
UPDATE_MIKROTIK=0
|
UPDATE_MIKROTIK=0
|
||||||
MIKROTIK_HOST="mikrotik"
|
MIKROTIK_HOST="mikrotik"
|
||||||
|
|
||||||
# Reload services
|
|
||||||
|
|
||||||
systemctl reload nginx
|
|
||||||
systemctl restart sssd
|
|
||||||
|
|
||||||
# Re-add the private key in LDAP *IMPORTANT*
|
# Re-add the private key in LDAP *IMPORTANT*
|
||||||
|
|
||||||
dsctl "${LDAP_SHORTNAME}" tls import-server-key-cert /etc/letsencrypt/live/"${LE_DOMAIN}"/fullchain.pem \
|
/usr/sbin/dsctl "${LDAP_SHORTNAME}" tls import-server-key-cert /etc/letsencrypt/live/"${LE_DOMAIN}"/fullchain.pem \
|
||||||
/etc/letsencrypt/live/"${LE_DOMAIN}"/privkey.pem
|
/etc/letsencrypt/live/"${LE_DOMAIN}"/privkey.pem
|
||||||
|
|
||||||
# Re-import the certificate in the LDAP store
|
# Re-import the certificate in the LDAP store
|
||||||
|
|
||||||
dsconf -v -D "cn=Directory Manager" "${LDAP_SHORTNAME}" security certificate add \
|
/usr/sbin/dsconf -v -D "cn=Directory Manager" "${LDAP_SHORTNAME}" security certificate add \
|
||||||
--file /etc/letsencrypt/live/"${LE_DOMAIN}"/cert.pem \
|
--file /etc/letsencrypt/live/"${LE_DOMAIN}"/cert.pem \
|
||||||
--primary-cert \
|
--primary-cert \
|
||||||
--name "LE"
|
--name "LE"
|
||||||
|
|
||||||
systemctl restart dirsrv@${LDAP_SHORTNAME}
|
systemctl restart dirsrv@${LDAP_SHORTNAME}
|
||||||
|
|
||||||
|
# Reload services
|
||||||
|
|
||||||
|
systemctl reload nginx
|
||||||
|
systemctl restart sssd
|
||||||
|
|
||||||
# Push the certificates to a Mikrotik AP
|
# Push the certificates to a Mikrotik AP
|
||||||
#NOTE: This assumes you have set up SSH for a user with public key auth
|
#NOTE: This assumes you have set up SSH for a user with public key auth
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue