From cb35f8f6ac20a4fd2aa65e28b971cc32e85eb89a Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Sun, 28 Apr 2013 15:36:14 +0300 Subject: [PATCH] updated ocpasswd doc --- NEWS | 2 ++ src/ocpasswd-args.c | 2 +- src/ocpasswd-args.def | 21 +++++++++++++++++++++ src/ocpasswd-args.h | 2 +- 4 files changed, 25 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index fae1452a..d065bcae 100644 --- a/NEWS +++ b/NEWS @@ -3,6 +3,8 @@ - Several updates to allow compilation in FreeBSD. - Prior to leasing an IPv4 ping it to check if it is already in use. +- ocpasswd accepts options to lock and unlock users. + * Version 0.1.1 (released 2013-04-03) diff --git a/src/ocpasswd-args.c b/src/ocpasswd-args.c index a6595e06..877ba318 100644 --- a/src/ocpasswd-args.c +++ b/src/ocpasswd-args.c @@ -2,7 +2,7 @@ * * DO NOT EDIT THIS FILE (ocpasswd-args.c) * - * It has been AutoGen-ed April 28, 2013 at 03:30:06 PM by AutoGen 5.17.3 + * It has been AutoGen-ed April 28, 2013 at 03:35:54 PM by AutoGen 5.17.3 * From the definitions ocpasswd-args.def * and the template file options * diff --git a/src/ocpasswd-args.def b/src/ocpasswd-args.def index 43ef3c86..7c751bba 100644 --- a/src/ocpasswd-args.def +++ b/src/ocpasswd-args.def @@ -74,3 +74,24 @@ The crypt(3) encoding is used for the encoded-password. _EOT_; }; +doc-section = { + ds-type = 'EXAMPLES'; + ds-format = 'texi'; + ds-text = <<-_EOT_ +@subheading Adding a user +@example +$ ocpasswd -c ocpasswd my_username +@end example + +@subheading Locking a user +@example +$ ocpasswd -c ocpasswd -l my_username +@end example + +@subheading Unlocking a user +@example +$ ocpasswd -c ocpasswd -u my_username +@end example +_EOT_; +}; + diff --git a/src/ocpasswd-args.h b/src/ocpasswd-args.h index 9bbc7c79..73900b41 100644 --- a/src/ocpasswd-args.h +++ b/src/ocpasswd-args.h @@ -2,7 +2,7 @@ * * DO NOT EDIT THIS FILE (ocpasswd-args.h) * - * It has been AutoGen-ed April 28, 2013 at 03:30:06 PM by AutoGen 5.17.3 + * It has been AutoGen-ed April 28, 2013 at 03:35:54 PM by AutoGen 5.17.3 * From the definitions ocpasswd-args.def * and the template file options *