components/openldap/Solaris/ldap-olslapd.xml
author doug leavitt <doug.leavitt@oracle.com>
Tue, 06 Aug 2013 14:25:22 -0700
changeset 1423 27b01995039c
parent 550 39f79e2050e4
child 5911 a8d897c4c442
permissions -rw-r--r--
15821768 SUNBT7203918 openldap "make test" should only test distributed backends 15857036 pkg contents: slapd.conf overlay=allow requested 16538104 Starting svc:/network/ldap/server:openldap_24 fails 17165604 slapd and tools should be LP64 only 17177215 Enable ASLR for OpenLDAP 17191782 The OpenLDAP Server Administration exec_attr entries are out of date

<?xml version="1.0"?>
<!--
CDDL HEADER START

The contents of this file are subject to the terms of the
Common Development and Distribution License (the "License").
You may not use this file except in compliance with the License.

You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
or http://www.opensolaris.org/os/licensing.
See the License for the specific language governing permissions
and limitations under the License.

When distributing Covered Code, include this CDDL HEADER in each
file and include the License file at usr/src/OPENSOLARIS.LICENSE.
If applicable, add the following below this CDDL HEADER, with the
fields enclosed by brackets "[]" replaced with your own identifying
information: Portions Copyright [yyyy] [name of copyright owner]

CDDL HEADER END
-->

<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
<!--
    Copyright (c) 2007, 2013, Oracle and/or its affiliates. All rights reserved.
-->

<service_bundle type='manifest' name='SUNWopenldapr:slapd'>

<service
	name='network/ldap/server'
	type='service'
	version='1'>

	<!--
	  Because we may have multiple instances of network/http
	  provided by different implementations, we keep dependencies
	  and methods within the instance.
	-->

	<instance name='openldap_24' enabled='false'>
		<!--
		  Wait for network interfaces to be initialized.
		-->
		<dependency name='network'
		    grouping='require_all'
		    restart_on='error'
		    type='service'>
		    <service_fmri value='svc:/milestone/network:default'/>
		</dependency>

		<!--
		  Wait for all local filesystems to be mounted.
		-->
		<dependency name='filesystem-local'
		    grouping='require_all'
		    restart_on='none'
		    type='service'>
		    <service_fmri
			value='svc:/system/filesystem/local:default'/>
		</dependency>

		<exec_method
		    type='method'
		    name='start'
		    exec='/lib/svc/method/ldap-olslapd start'
		    timeout_seconds='60'>
		    <method_context>
			<method_credential
			    user='openldap'
			    group='openldap'
			    privileges='basic,net_privaddr,file_dac_read,file_dac_write,file_dac_search' />
		    </method_context>
		</exec_method>

		<exec_method
			type='method'
			name='stop'
			exec='/lib/svc/method/ldap-olslapd stop %{restarter/contract}'
			timeout_seconds='60' />

		<property_group name='startd' type='framework'>
			<!-- sub-process core dumps shouldn't restart
				session -->
			<propval name='ignore_error' type='astring'
				value='core,signal' />
		</property_group>

        <template>
            <common_name>
                <loctext xml:lang='C'>
                    slapd - OpenLDAP LDAP server
                </loctext>
            </common_name>
            <documentation>
                <manpage title='slapd' section='8oldap'
                    manpath='/usr/share/man' />
                <doc_link name='openldap.org'
                    uri='http://www.openldap.org' />
            </documentation>
        </template>
	</instance>

        <stability value='Evolving' />
</service>

</service_bundle>