summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile.am2
-rw-r--r--configure.ac3
-rw-r--r--src/Makefile.am2
-rw-r--r--src/nisserver-plugin-defs.1.in37
4 files changed, 42 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am
index 91bab77..8900d48 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,4 +1,4 @@
-EXTRA_DIST = COPYING NEWS README STATUS slapi-nis.spec doc/*.txt doc/examples/*.ldif.in doc/devel doc/ipa
+EXTRA_DIST = COPYING NEWS README STATUS slapi-nis.spec doc/*.txt doc/examples/*.ldif.in doc/devel doc/ipa src/nisserver-plugin-defs.1
SUBDIRS = src tests
ACLOCAL_AMFLAGS=-I m4
diff --git a/configure.ac b/configure.ac
index 19f8d9d..f5fb47a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -342,4 +342,5 @@ AC_CONFIG_HEADER(src/config.h)
AC_OUTPUT(Makefile src/Makefile
doc/examples/nis-plugin-example.ldif doc/examples/sch-plugin-example.ldif
tests/Makefile tests/clients/Makefile
- tests/slapd.sh tests/config/dse.ldif.initial)
+ tests/slapd.sh tests/config/dse.ldif.initial
+ src/nisserver-plugin-defs.1)
diff --git a/src/Makefile.am b/src/Makefile.am
index 908e6d5..684dbbc 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -18,6 +18,8 @@ sbin_PROGRAMS = nisserver-plugin-defs
nisserver_plugin_defs_CFLAGS = $(AM_CFLAGS) -DDEFS_NIS_MAIN
nisserver_plugin_defs_SOURCES = defs-nis.c
+man_MANS = nisserver-plugin-defs.1
+
noinst_PROGRAMS = portmap
portmap_CFLAGS = $(AM_CFLAGS) -DPORTMAP_MAIN
portmap_SOURCES = portmap.c
diff --git a/src/nisserver-plugin-defs.1.in b/src/nisserver-plugin-defs.1.in
new file mode 100644
index 0000000..0668a4d
--- /dev/null
+++ b/src/nisserver-plugin-defs.1.in
@@ -0,0 +1,37 @@
+.TH nisserver-plugin-defs 1 2011/04/19 "slapi-nis" "System Administrator's Manual"
+
+.SH NAME
+nisserver-plugin-defs \- print default settings for the NIS server plugin
+
+.SH SYNOPSIS
+nisserver-plugin-defs [-d \fIdomain\fP ] [-m \fImap\fP ] [-s \fIsuffix\fP ]
+
+.SH DESCRIPTION
+The \fInisserver-plugin-defs\fP command produces example configuration entries
+containing the default settings which the NIS server plugin will use for all
+maps for which it has built-in defaults, or if a particular map name is
+specified, for one map.
+
+.SH ARGUMENTS
+.TP
+-d DOMAIN
+By default, \fInisserver-plugin-defs\fP uses a placeholder for the NIS domain
+name when it prints example configuration entries. This option allows a
+particular domain name to be specified.
+.TP
+-m MAP
+By default, \fInisserver-plugin-defs\fP prints example configuration entries
+for all of the maps for which it has built-in defaults. This option can be
+used to examine the defaults associated with a particular map name.
+.TP
+-m SUFFIX
+By default, \fInisserver-plugin-defs\fP uses a placeholder for the base DN
+under which it expects to find entries which are relevant for the map. This
+option allows a particular search base to be specified.
+
+.SH BUGS
+Probably, but let's hope not. If you find any, please file them in the
+bug database at http://slapi-nis.fedorahosted.org/.
+
+.SH AUTHOR
+Nalin Dahyabhai <nalin@redhat.com>