5307N/A<?xml version="1.0"?>
5307N/A<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
5307N/A<!--
6331N/A $Id$
5307N/A
6331N/A License: CDDL 1.0 (see http://opensource.org/licenses/cddl-1.0)
6331N/A Copyright 2013 Jens Elkner
5307N/A-->
6331N/A<service_bundle type='manifest' name='LNFopendj:opendj@VERS@'>
6331N/A <service name='network/ldap/opendj@VERS@' type='service' version='1'>
6331N/A <dependency name='fs-local' grouping='require_all'
6331N/A restart_on='none'
6331N/A type='service'>
6331N/A <service_fmri value='svc:/system/filesystem/local' />
6331N/A </dependency>
6331N/A
6331N/A <dependency name='identity' grouping='optional_all'
6331N/A restart_on='refresh'
6331N/A type='service'>
6331N/A <service_fmri value='svc:/system/identity:domain' />
6331N/A </dependency>
6331N/A
6331N/A <dependency name='network-service' grouping='require_all'
6331N/A restart_on='none'
6331N/A type='service'>
6331N/A <service_fmri value='svc:/network/service' />
6331N/A </dependency>
6331N/A
6331N/A <exec_method type='method' name='start'
6331N/A exec='/lib/svc/method/opendj@VERS@ start'
6331N/A timeout_seconds='60'>
6331N/A <method_context>
6331N/A <method_credential user='ldapd' group='ldapd'
6331N/A privileges='basic,net_privaddr,sys_resource,!proc_info,!proc_session,!file_link_any'
6331N/A limit_privileges='basic,net_privaddr,sys_resource,!proc_info,!proc_session,!file_link_any'
6331N/A />
6331N/A </method_context>
6331N/A </exec_method>
6331N/A
6331N/A <exec_method type='method' name='stop'
6331N/A exec='/lib/svc/method/opendj@VERS@ stop'
6331N/A timeout_seconds='60'>
6331N/A <method_context>
6331N/A <method_credential user='ldapd' group='ldapd' />
6331N/A </method_context>
6331N/A </exec_method>
6331N/A
6331N/A <property_group name='config' type='application'>
6331N/A <stability value='Evolving' />
6331N/A <!-- should be explicitly set by each instance -->
6331N/A <propval name='datadir' type='astring' value='' />
6331N/A <!-- empty argument lists/placeholder by default -->
6331N/A <propval name='server_start_args' type='astring' value=''/>
6413N/A <propval name='server_stop_args' type='astring' value='' />
6413N/A <!-- Avoid the following, since this causes a "remote" shutdown
6413N/A (i.e. via TCP to localhost) instead of a reliable "kill"... -->
6413N/A <!-- propval name='server_stop_args' type='astring'
6413N/A value='-r "SMF request to stop the instance"' / -->
6331N/A <propval name='value_authorization' type='astring'
6331N/A value='solaris.smf.value.opendj' />
6331N/A </property_group>
6331N/A
6331N/A <property_group name='startd' type='framework'>
6331N/A <!-- core dumps shouldn't restart session -->
6331N/A <propval name='ignore_error' type='astring' value='core,signal' />
6331N/A </property_group>
6331N/A
6331N/A <!--
6331N/A Assign the profile 'OpenDJ Admin' to all users, which should be
6331N/A able to manage this service. E.g.:
6331N/A usermod -P +'OpenDJ Admin' jdoe
6331N/A -->
6331N/A <property_group name='general' type='framework'>
6331N/A <!-- autorizations required to start stop opendj -->
6331N/A <propval name='action_authorization' type='astring'
6331N/A value='solaris.smf.manage.opendj' />
6331N/A <propval name='value_authorization' type='astring'
6331N/A value='solaris.smf.value.opendj' />
6331N/A <propval name='enabled' type='boolean' value='false' />
6331N/A </property_group>
6331N/A
6331N/A <instance name='default' enabled='false'>
6331N/A <property_group name='config' type='application'>
6331N/A <stability value='Evolving' />
6331N/A <propval name='datadir' type='astring'
6331N/A value='/var/share/ldap/opendj' />
6331N/A </property_group>
6331N/A </instance>
6331N/A
6331N/A <stability value='Evolving' />
6331N/A <template>
6331N/A <common_name>
6331N/A <loctext xml:lang='C'>
6331N/AOpenDJ LDAP directory server</loctext>
6331N/A </common_name>
6331N/A <documentation>
6331N/A <doc_link name='OpenDJ Documentation'
6331N/A uri='http://opendj.forgerock.org/docs.html' />
6331N/A <manpage title='opendj' section='5'
6331N/A manpath='@CLIENT_BASEDIR@/opendj@VERS@/man' />
6331N/A </documentation>
6331N/A <pg_pattern name='config' type='application' required='true'
6331N/A target='this'>
6331N/A <prop_pattern name='datadir' type='astring' required='true'>
6331N/A <description>
6331N/A <loctext xml:lang='C'>
6331N/AThe directory, where this OpenDJ instance stores its data. It must not be shared with other instances, otherwise it may result in unexpected behavior or data corruption!
6331N/A </loctext>
6331N/A </description>
6331N/A <visibility value='readwrite'/>
6331N/A <cardinality min='1' max='1'/>
6331N/A </prop_pattern>
6331N/A <prop_pattern name='server_start_args' type='astring'
6331N/A required='false'>
6331N/A <description>
6331N/A <loctext xml:lang='C'>
6331N/AAdditional arguments to pass to the OpenDJ server instance start command - see start-ds(1M).
6331N/A </loctext>
6331N/A </description>
6331N/A <visibility value='readwrite'/>
6331N/A <cardinality min='1' max='1'/>
6331N/A </prop_pattern>
6331N/A <prop_pattern name='server_stop_args' type='astring'
6331N/A required='false'>
6331N/A <description>
6331N/A <loctext xml:lang='C'>
6331N/AAdditional arguments to pass to the OpenDJ server stop command - see stop-ds(1M).
6331N/A </loctext>
6331N/A </description>
6331N/A <visibility value='readwrite'/>
6331N/A <cardinality min='1' max='1'/>
6331N/A </prop_pattern>
6331N/A </pg_pattern>
6331N/A </template>
6331N/A </service>
5307N/A</service_bundle>