1 2 3 4 5 6 7 8 9 10
#!/bin/sh -x ldapmodify -h `hostname` -p 389 -D "cn=Directory Manager" -w Secret123 -x <<EOF dn: cn=config changetype: modify replace: nsslapd-ldapilisten nsslapd-ldapilisten: on EOF systemctl restart dirsrv@pki-tomcat.service