Skip to content

Instantly share code, notes, and snippets.

@jclulow
Created July 17, 2012 07:47
Show Gist options
  • Select an option

  • Save jclulow/3127854 to your computer and use it in GitHub Desktop.

Select an option

Save jclulow/3127854 to your computer and use it in GitHub Desktop.
smartos ldap client
<?xml version="1.0"?>
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
<service_bundle type="manifest" name="network-ldap-client" >
<service name="network/ldap/client" type="service" version="1" >
<create_default_instance enabled="true" />
<dependency name="dep0" grouping="require_all" restart_on="none" type="service" >
<service_fmri value="svc:/system/filesystem/minimal" />
</dependency>
<dependency name="dep1" grouping="require_all" restart_on="none" type="service" >
<service_fmri value="svc:/network/initial" />
</dependency>
<exec_method type="method" name="start" exec="/usr/lib/ldap/ldap_cachemgr &amp;" timeout_seconds="10" >
<method_context >
<method_credential user="root" group="root" privileges="basic,file_dac_write" />
</method_context>
</exec_method>
<exec_method type="method" name="stop" exec="/usr/lib/ldap/ldap_cachemgr -K" timeout_seconds="30" >
<method_context >
<method_credential user="root" group="root" privileges="basic" />
</method_context>
</exec_method>
<template >
<common_name >
<loctext xml:lang="C" >LDAP Client</loctext>
</common_name>
</template>
</service>
</service_bundle>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment