updated ocpasswd doc

This commit is contained in:
Nikos Mavrogiannopoulos
2013-04-28 15:36:14 +03:00
parent 09b34ee745
commit cb35f8f6ac
4 changed files with 25 additions and 2 deletions

2
NEWS
View File

@@ -3,6 +3,8 @@
- Several updates to allow compilation in FreeBSD. - Several updates to allow compilation in FreeBSD.
- Prior to leasing an IPv4 ping it to check if it is - Prior to leasing an IPv4 ping it to check if it is
already in use. already in use.
- ocpasswd accepts options to lock and unlock users.
* Version 0.1.1 (released 2013-04-03) * Version 0.1.1 (released 2013-04-03)

View File

@@ -2,7 +2,7 @@
* *
* DO NOT EDIT THIS FILE (ocpasswd-args.c) * 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 * From the definitions ocpasswd-args.def
* and the template file options * and the template file options
* *

View File

@@ -74,3 +74,24 @@ The crypt(3) encoding is used for the encoded-password.
_EOT_; _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_;
};

View File

@@ -2,7 +2,7 @@
* *
* DO NOT EDIT THIS FILE (ocpasswd-args.h) * 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 * From the definitions ocpasswd-args.def
* and the template file options * and the template file options
* *