diff -r f09b7b1b6fb9 -r 9d8743313ecd components/openldap/Solaris/ldap-olslapd --- a/components/openldap/Solaris/ldap-olslapd Thu Jul 30 04:08:24 2015 -0700 +++ b/components/openldap/Solaris/ldap-olslapd Fri Aug 07 15:29:52 2015 -0700 @@ -21,13 +21,13 @@ # CDDL HEADER END # -# Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2007, 2015, Oracle and/or its affiliates. All rights reserved. # source /lib/svc/share/smf_include.sh typeset -r LDAPUSR=openldap typeset -r LDAPGRP=openldap -typeset -r VARRUNDIR=/var/run/openldap +typeset -r VARRUNDIR=/var/openldap/run typeset -r PIDFILE=${VARRUNDIR}/slapd.pid typeset -r CONF_FILE=/etc/openldap/slapd.conf typeset -r SLAPD="/usr/lib/slapd -u ${LDAPUSR} -g ${LDAPGRP} -f ${CONF_FILE}" @@ -38,7 +38,7 @@ case "$1" in start) if [[ ! -d ${VARRUNDIR} ]] ; then - /usr/bin/mkdir -m 755 ${VARRUNDIR} || exit $SMF_EXIT_ERR_CONFIG + /usr/bin/mkdir -m 700 ${VARRUNDIR} || exit $SMF_EXIT_ERR_CONFIG /usr/bin/chown ${LDAPUSR}:${LDAPGRP} ${VARRUNDIR} else /bin/rm -f ${PIDFILE}