APG v2.1.0
This commit is contained in:
73
doc/APG_TIPS
73
doc/APG_TIPS
@@ -44,3 +44,76 @@ genpw () {
|
||||
|
||||
until genpw; do : ; done
|
||||
----------[cut here]
|
||||
|
||||
Note:
|
||||
Since apg-2.1.0b0 you can use [-e char_string] option
|
||||
to do the same thing.
|
||||
|
||||
#######################################################
|
||||
# 2. APG and xinetd
|
||||
# by Tomaz Zupan <tomaz.zupan@orpo.si>
|
||||
#######################################################
|
||||
|
||||
I use xinetd instead of inetd as per your documentation,
|
||||
so I hope you (or anyone using apgd) might find usefull
|
||||
this xinetd.conf entry. Arguments are tailored according
|
||||
to my needs, but that shouldn't be a problem for anyone
|
||||
that read man pages ...
|
||||
|
||||
--------> [cut here]
|
||||
# default: on
|
||||
# description: APGD is a deamon that returns randomly generated password
|
||||
service pwdgen
|
||||
{
|
||||
port = 129
|
||||
socket_type = stream
|
||||
wait = no
|
||||
only_from = localhost
|
||||
user = pismonosa
|
||||
server = /usr/local/sbin/apgd
|
||||
server_args = -M ln -n 1 -m 6 -x 8 -a 1
|
||||
instances = 1
|
||||
log_on_failure += USERID
|
||||
disable = no
|
||||
}
|
||||
--------> [cut here]
|
||||
|
||||
######################################################
|
||||
# 3. APG and PHP script
|
||||
# from http://www.forth.com/rick/
|
||||
######################################################
|
||||
|
||||
After building and installing APG, you must make it
|
||||
easily available. The simplest is as a web-page
|
||||
reference. The simplest way to do this is by a php
|
||||
script located in the root of the web server's data
|
||||
tree:
|
||||
|
||||
--------> [cut here]
|
||||
<html>
|
||||
<body>
|
||||
<pre>
|
||||
<?
|
||||
$foo = `/usr/local/bin/apg -n 20`;
|
||||
echo $foo
|
||||
?>
|
||||
</pre>
|
||||
</body>
|
||||
</html>
|
||||
--------> [cut here]
|
||||
|
||||
######################################################
|
||||
# 4. APG v2.1.0b0 and [R,r] letters in mode string
|
||||
# by Adel I. Mirzazhanov <a-del@iname.com>
|
||||
######################################################
|
||||
Since version 2.1.0b0 You can not use symbols R,r to ask
|
||||
APG not to generate symbols (' ` | \ ? $ ") when You
|
||||
plan to use special symbol set for password generation.
|
||||
|
||||
But You stil can get the same resault with new option
|
||||
[-e char_string] (see apg(1)). Just run APG like this:
|
||||
|
||||
apg -a1 -M s -e \'\`\|\?\$\"\\
|
||||
|
||||
This method will work for random password generation
|
||||
only.
|
||||
|
||||
Reference in New Issue
Block a user