cvs: peardoc /peardoc2/en/package/authentication/auth intro-storage.xml
| From: | Martin Jansen | Date: | Sat, 08 Mar 2003 15:13:54 +0000 |
| Subject: | cvs: peardoc /peardoc2/en/package/authentication/auth intro-storage.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-421@lists.php.net to get a copy of this message | ||
mj Sat Mar 8 10:13:54 2003 EDT
Modified files:
/peardoc/peardoc2/en/package/authentication/auth intro-storage.xml
Log:
* Add missing storage containers.
Index: peardoc/peardoc2/en/package/authentication/auth/intro-storage.xml diff -u peardoc/peardoc2/en/package/authentication/auth/intro-storage.xml:1.6 peardoc/peardoc2/en/package/authentication/auth/intro-storage.xml:1.7 --- peardoc/peardoc2/en/package/authentication/auth/intro-storage.xml:1.6 Sat Mar 8 09:49:53 2003 +++ peardoc/peardoc2/en/package/authentication/auth/intro-storage.xml Sat Mar 8 10:13:54 2003 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.6 $ --> +<!-- $Revision: 1.7 $ --> <refentry id="package.authentication.auth.intro-storage"> <refnamediv> <refname>Storage drivers: Introduction</refname> @@ -18,7 +18,7 @@ <title>Database</title> <para> <classname>PEAR:Auth</classname> uses the - <link linkend="package.database.db"><classname>PEAR:DB</classname></link> + <link linkend="package.database.db"><classname>PEAR::DB</classname></link> abstraction layer for database access. That means that you can use all databases that are supported by the DB abstraction layer to store the login data. @@ -43,7 +43,7 @@ <row> <entry><quote>dsn</quote></entry> <entry> - a valid and well-formed + A valid and well-formed <link linkend="package.database.db.intro-dsn"> DSN </link>. @@ -55,7 +55,7 @@ <row> <entry><quote>table</quote></entry> <entry> - the name of the database table, where the + The name of the database table, where the authorization data is stored. </entry> <entry> @@ -65,7 +65,7 @@ <row> <entry><quote>usernamecol</quote></entry> <entry> - the name of the colunm, where the username is stored + The name of the colunm, where the username is stored </entry> <entry> <quote>username</quote> @@ -74,7 +74,7 @@ <row> <entry><quote>passwordcol</quote></entry> <entry> - the name of the colunm, where the MD5-crypted password is stored. + The name of the colunm, where the MD5-crypted password is stored. Make sure, that the password field can contain at least 32 bit. </entry> <entry> @@ -96,6 +96,53 @@ <link linkend="package.filesystem.file-passwd.intro">passwd-style</link> file. </para> </refsect1> + + <refsect1 id="package.authentication.auth.intro-storage.imap"> + <title>IMAP</title> + <para> + This storage container connects to the specified IMAP server and + tries to login there with the specified username/password. + </para> + <para> + The storage-specific argument for the + <link linkend="package.authentication.auth.auth"> + <function>Auth constructor</function></link> + is an array. + <table> + <title>Array keys and values</title> + <tgroup cols="3"> + <thead> + <row> + <entry>Key</entry> + <entry>Description</entry> + <entry>Default value</entry> + </row> + </thead> + <tbody> + <row> + <entry><quote>host</quote></entry> + <entry> + The hostname or the IP address of the IMAP server + </entry> + <entry> + <quote>localhost</quote> + </entry> + </row> + <row> + <entry><quote>port</quote></entry> + <entry> + The port where the IMAP server is listening + </entry> + <entry> + <quote>143</quote> + </entry> + </row> + </tbody> + </tgroup> + </table> + </para> + </refsect1> + <refsect1 id="package.authentication.auth.intro-storage.ldap"> <title>LDAP</title> <para> @@ -117,7 +164,7 @@ <row> <entry><quote>host</quote></entry> <entry> - the host name or IP-adress to access + The host name or IP-adress to access </entry> <entry> <quote>localhost</quote> @@ -126,7 +173,7 @@ <row> <entry><quote>port</quote></entry> <entry> - the port of the ldap server to access + The port of the LDAP server to access </entry> <entry> <quote>389</quote> @@ -135,7 +182,7 @@ <row> <entry><quote>basedn</quote></entry> <entry> - the base distinguished name + The base distinguished name </entry> <entry> <quote>o=netsols,c=de</quote> @@ -144,7 +191,7 @@ <row> <entry><quote>userattr</quote></entry> <entry> - defines the attributes to request + Defines the attributes to request </entry> <entry> <quote>uid</quote> @@ -155,7 +202,97 @@ </table> </para> </refsect1> - + +<!-- not release yet + + <refsect1 id="package.authentication.auth.intro-storage.mdb"> + <title>MDB</title> + <para> + In addition to using <link linkend="package.database.db"> + <classname>PEAR:DB</classname></link>, <classname>PEAR:Auth</classname> + also can use the ><classname>MDB</classname> abstraction layer for + database access. + </para> + <para> + The storage-specific argument for the + <link linkend="package.authentication.auth.auth"> + <function>Auth constructor</function> + </link> + is an array. + <table> + <title>Array keys and values</title> + <tgroup cols="3"> + <thead> + <row> + <entry>Key</entry> + <entry>Description</entry> + <entry>Default value</entry> + </row> + </thead> + <tbody> + <row> + <entry><quote>dsn</quote></entry> + <entry> + A valid and well-formed + <link linkend="package.database.db.intro-dsn"> + DSN + </link>. + </entry> + <entry> + <quote></quote> + </entry> + </row> + <row> + <entry><quote>table</quote></entry> + <entry> + The name of the database table, where the + authorization data is stored. + </entry> + <entry> + <quote>auth</quote> + </entry> + </row> + <row> + <entry><quote>usernamecol</quote></entry> + <entry> + The name of the colunm, where the username is stored + </entry> + <entry> + <quote>username</quote> + </entry> + </row> + <row> + <entry><quote>passwordcol</quote></entry> + <entry> + The name of the colunm, where the MD5-crypted password is stored. + Make sure, that the password field can contain at least 32 bit. + </entry> + <entry> + <quote>password</quote> + </entry> + </row> + </tbody> + </tgroup> + </table> + </para> + </refsect1> +--> + + <refsect1 id="package.authentication.auth.intro-storage.pop3"> + <title>POP3</title> + <para> + This storage container connects to the specified POP3 server and + tries to login there with the specified username/password. + </para> + <para> + The storage-specific argument for the + <link linkend="package.authentication.auth.auth"> + <function>Auth constructor</function></link> + is a string of the form <literal>server:port</literal> or just + <literal>server</literal>. + </para> + </refsect1> + <refsect1 id="package.authentication.auth.intro-storage.radius"> <title>RADIUS</title> <para> @@ -180,44 +317,139 @@ <row> <entry><quote>servers</quote></entry> <entry> - array of RADIUS servers, containing: host, port, shared secret, timeout, maxtries. + <para> + Array of RADIUS servers, containing: host, port, shared secret, timeout, maxtries. + </para> + <para> + The host parameter specifies the server host, either as a fully + qualified domain name or as a dotted-quad IP address in text + form. The port parameter specifies the UDP port to contact on + the server. If port is given as 0, the library looks up the + radius/udp entry in the network services database, and uses + the port found there. If no entry is found, the library uses + the standard RADIUS port for authentication (1812). The shared + secret for the server host is passed to the secret parameter. + The RADIUS protocol ignores all but the leading 128 bytes of + the shared secret. The timeout for receiving replies from the + server is passed to the timeout parameter, in units of + seconds. The maximum number of repeated requests to make + before giving up is passed into the maxtries parameter. + </para> + <para> + At most 10 servers may be specified. When multiple servers + are given, they are tried in round-robin fashion until a + valid response is received, or until each server's maxtries + limit has been reached. + </para> + </entry> + <entry> + array(<quote>localhost</quote>, 0, <quote>testing123</quote>, 3, 3) + </entry> + </row> + <row> + <entry>authtype</entry> + <entry> + <para> + The authentication method for validating the request. Possible + values are: PAP, CHAP_MD5, MSCHAPv1, MSCHAPv2. + </para> + <para> + There are dependencies for the different methods. For all + authentication methods except PAP you need the Crypt_CHAP + package, when you are using MS-CHAP you need also the mhash + extension. + </para> + </entry> + <entry> + <quote>PAP</quote> + </entry> + </row> + </tbody> + </tgroup> + </table> + </para> + </refsect1> + + <refsect1 id="package.authentication.auth.intro-storage.soap"> + <title>SOAP</title> <para> - The host parameter specifies the server host, either as a fully qualified domain name or as a dotted-quad IP address - in text form. The port parameter specifies the UDP port to contact on the server. If port is given as 0, the library - looks up the radius/udp entry in the network services database, and uses the port found there. - If no entry is found, the library uses the standard RADIUS port for authentication (1812). The - shared secret for the server host is passed to the secret parameter. The RADIUS protocol ignores all but the leading - 128 bytes of the shared secret. The timeout for receiving replies from the server is passed to the timeout parameter, - in units of seconds. The maximum number of repeated requests to make before giving up is passed into the maxtries - parameter. - </para> - <para> - At most 10 servers may be specified. When multiple servers are given, they are tried in round-robin fashion until - a valid response is received, or until each server's maxtries limit has been reached. - </para> - </entry> - <entry> - array(<quote>localhost</quote>, 0, <quote>testing123</quote>, 3, 3) - </entry> - </row> - <row> - <entry>authtype</entry> - <entry> - the authentication method for validating the request. Possible values are: PAP, CHAP_MD5, MSCHAPv1, MSCHAPv2. - <para> - There are dependencies for the different methods. For all authentication methods - except PAP you need the Crypt_CHAP package, when you are using MS-CHAP you need also the mhash extension. - </para> - </entry> - <entry> - <quote>PAP</quote> - </entry> - </row> - </tbody> - </tgroup> - </table> - </para> - </refsect1> + The storage-specific argument for the + <link linkend="package.authentication.auth.auth"> + <function>Auth constructor</function></link> + is an array. + <table> + <title>Array keys and values</title> + <tgroup cols="3"> + <thead> + <row> + <entry>Key</entry> + <entry>Description</entry> + <entry>Default value</entry> + </row> + </thead> + <tbody> + <row> + <entry><quote>endpoint</quote></entry> + <entry> + The URI where the service is located. + </entry> + <entry /> + </row> + <row> + <entry><quote>namespace</quote></entry> + <entry> + The namespace of the web service. + </entry> + <entry /> + </row> + <row> + <entry><quote>method</quote></entry> + <entry> + The method with which the webservice should be requested (can + be either <literal>get</literal> or <literal>post</literal>). + </entry> + <entry /> + </row> + <row> + <entry><quote>encoding</quote></entry> + <entry> + The content encoding that should be used (e.g. + <literal>utf8</literal>). + </entry> + <entry /> + </row> + <row> + <entry><quote>usernamefield</quote></entry> + <entry> + The name of the field where the username is stored. + </entry> + <entry /> + </row> + <row> + <entry><quote>passwordfield</quote></entry> + <entry> + The name of the field where the password is stored. + </entry> + <entry /> + </row> + <!-- XXX: Document _features element --> + </tbody> + </tgroup> + </table> + </para> + </refsect1> + + <refsect1 id="package.authentication.auth.intro-storage.vpopmail"> + <title>vpopmail</title> + <para> + This container uses an existing vpopmail service to validate the + username and the password. + </para> + <para> + It does not require any storage-specific argument. + </para> + </refsect1> + </refentry> <!-- Keep this comment at the end of the file Local variables:
Index: peardoc/peardoc2/en/package/authentication/auth/intro-storage.xml diff -u peardoc/peardoc2/en/package/authentication/auth/intro-storage.xml:1.6 peardoc/peardoc2/en/package/authentication/auth/intro-storage.xml:1.7 --- peardoc/peardoc2/en/package/authentication/auth/intro-storage.xml:1.6 Sat Mar 8 09:49:53 2003 +++ peardoc/peardoc2/en/package/authentication/auth/intro-storage.xml Sat Mar 8 10:13:54 2003 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.6 $ --> +<!-- $Revision: 1.7 $ --> <refentry id="package.authentication.auth.intro-storage"> <refnamediv> <refname>Storage drivers: Introduction</refname> @@ -18,7 +18,7 @@ <title>Database</title> <para> <classname>PEAR:Auth</classname> uses the - <link linkend="package.database.db"><classname>PEAR:DB</classname></link> + <link linkend="package.database.db"><classname>PEAR::DB</classname></link> abstraction layer for database access. That means that you can use all databases that are supported by the DB abstraction layer to store the login data. @@ -43,7 +43,7 @@ <row> <entry><quote>dsn</quote></entry> <entry> - a valid and well-formed + A valid and well-formed <link linkend="package.database.db.intro-dsn"> DSN </link>. @@ -55,7 +55,7 @@ <row> <entry><quote>table</quote></entry> <entry> - the name of the database table, where the + The name of the database table, where the authorization data is stored. </entry> <entry> @@ -65,7 +65,7 @@ <row> <entry><quote>usernamecol</quote></entry> <entry> - the name of the colunm, where the username is stored + The name of the colunm, where the username is stored </entry> <entry> <quote>username</quote> @@ -74,7 +74,7 @@ <row> <entry><quote>passwordcol</quote></entry> <entry> - the name of the colunm, where the MD5-crypted password is stored. + The name of the colunm, where the MD5-crypted password is stored. Make sure, that the password field can contain at least 32 bit. </entry> <entry> @@ -96,6 +96,53 @@ <link linkend="package.filesystem.file-passwd.intro">passwd-style</link> file. </para> </refsect1> + + <refsect1 id="package.authentication.auth.intro-storage.imap"> + <title>IMAP</title> + <para> + This storage container connects to the specified IMAP server and + tries to login there with the specified username/password. + </para> + <para> + The storage-specific argument for the + <link linkend="package.authentication.auth.auth"> + <function>Auth constructor</function></link> + is an array. + <table> + <title>Array keys and values</title> + <tgroup cols="3"> + <thead> + <row> + <entry>Key</entry> + <entry>Description</entry> + <entry>Default value</entry> + </row> + </thead> + <tbody> + <row> + <entry><quote>host</quote></entry> + <entry> + The hostname or the IP address of the IMAP server + </entry> + <entry> + <quote>localhost</quote> + </entry> + </row> + <row> + <entry><quote>port</quote></entry> + <entry> + The port where the IMAP server is listening + </entry> + <entry> + <quote>143</quote> + </entry> + </row> + </tbody> + </tgroup> + </table> + </para> + </refsect1> + <refsect1 id="package.authentication.auth.intro-storage.ldap"> <title>LDAP</title> <para> @@ -117,7 +164,7 @@ <row> <entry><quote>host</quote></entry> <entry> - the host name or IP-adress to access + The host name or IP-adress to access </entry> <entry> <quote>localhost</quote> @@ -126,7 +173,7 @@ <row> <entry><quote>port</quote></entry> <entry> - the port of the ldap server to access + The port of the LDAP server to access </entry> <entry> <quote>389</quote> @@ -135,7 +182,7 @@ <row> <entry><quote>basedn</quote></entry> <entry> - the base distinguished name + The base distinguished name </entry> <entry> <quote>o=netsols,c=de</quote> @@ -144,7 +191,7 @@ <row> <entry><quote>userattr</quote></entry> <entry> - defines the attributes to request + Defines the attributes to request </entry> <entry> <quote>uid</quote> @@ -155,7 +202,97 @@ </table> </para> </refsect1> - + +<!-- not release yet + + <refsect1 id="package.authentication.auth.intro-storage.mdb"> + <title>MDB</title> + <para> + In addition to using <link linkend="package.database.db"> + <classname>PEAR:DB</classname></link>, <classname>PEAR:Auth</classname> + also can use the ><classname>MDB</classname> abstraction layer for + database access. + </para> + <para> + The storage-specific argument for the + <link linkend="package.authentication.auth.auth"> + <function>Auth constructor</function> + </link> + is an array. + <table> + <title>Array keys and values</title> + <tgroup cols="3"> + <thead> + <row> + <entry>Key</entry> + <entry>Description</entry> + <entry>Default value</entry> + </row> + </thead> + <tbody> + <row> + <entry><quote>dsn</quote></entry> + <entry> + A valid and well-formed + <link linkend="package.database.db.intro-dsn"> + DSN + </link>. + </entry> + <entry> + <quote></quote> + </entry> + </row> + <row> + <entry><quote>table</quote></entry> + <entry> + The name of the database table, where the + authorization data is stored. + </entry> + <entry> + <quote>auth</quote> + </entry> + </row> + <row> + <entry><quote>usernamecol</quote></entry> + <entry> + The name of the colunm, where the username is stored + </entry> + <entry> + <quote>username</quote> + </entry> + </row> + <row> + <entry><quote>passwordcol</quote></entry> + <entry> + The name of the colunm, where the MD5-crypted password is stored. + Make sure, that the password field can contain at least 32 bit. + </entry> + <entry> + <quote>password</quote> + </entry> + </row> + </tbody> + </tgroup> + </table> + </para> + </refsect1> +--> + + <refsect1 id="package.authentication.auth.intro-storage.pop3"> + <title>POP3</title> + <para> + This storage container connects to the specified POP3 server and + tries to login there with the specified username/password. + </para> + <para> + The storage-specific argument for the + <link linkend="package.authentication.auth.auth"> + <function>Auth constructor</function></link> + is a string of the form <literal>server:port</literal> or just + <literal>server</literal>. + </para> + </refsect1> + <refsect1 id="package.authentication.auth.intro-storage.radius"> <title>RADIUS</title> <para> @@ -180,44 +317,139 @@ <row> <entry><quote>servers</quote></entry> <entry> - array of RADIUS servers, containing: host, port, shared secret, timeout, maxtries. + <para> + Array of RADIUS servers, containing: host, port, shared secret, timeout, maxtries. + </para> + <para> + The host parameter specifies the server host, either as a fully + qualified domain name or as a dotted-quad IP address in text + form. The port parameter specifies the UDP port to contact on + the server. If port is given as 0, the library looks up the + radius/udp entry in the network services database, and uses + the port found there. If no entry is found, the library uses + the standard RADIUS port for authentication (1812). The shared + secret for the server host is passed to the secret parameter. + The RADIUS protocol ignores all but the leading 128 bytes of + the shared secret. The timeout for receiving replies from the + server is passed to the timeout parameter, in units of + seconds. The maximum number of repeated requests to make + before giving up is passed into the maxtries parameter. + </para> + <para> + At most 10 servers may be specified. When multiple servers + are given, they are tried in round-robin fashion until a + valid response is received, or until each server's maxtries + limit has been reached. + </para> + </entry> + <entry> + array(<quote>localhost</quote>, 0, <quote>testing123</quote>, 3, 3) + </entry> + </row> + <row> + <entry>authtype</entry> + <entry> + <para> + The authentication method for validating the request. Possible + values are: PAP, CHAP_MD5, MSCHAPv1, MSCHAPv2. + </para> + <para> + There are dependencies for the different methods. For all + authentication methods except PAP you need the Crypt_CHAP + package, when you are using MS-CHAP you need also the mhash + extension. + </para> + </entry> + <entry> + <quote>PAP</quote> + </entry> + </row> + </tbody> + </tgroup> + </table> + </para> + </refsect1> + + <refsect1 id="package.authentication.auth.intro-storage.soap"> + <title>SOAP</title> <para> - The host parameter specifies the server host, either as a fully qualified domain name or as a dotted-quad IP address - in text form. The port parameter specifies the UDP port to contact on the server. If port is given as 0, the library - looks up the radius/udp entry in the network services database, and uses the port found there. - If no entry is found, the library uses the standard RADIUS port for authentication (1812). The - shared secret for the server host is passed to the secret parameter. The RADIUS protocol ignores all but the leading - 128 bytes of the shared secret. The timeout for receiving replies from the server is passed to the timeout parameter, - in units of seconds. The maximum number of repeated requests to make before giving up is passed into the maxtries - parameter. - </para> - <para> - At most 10 servers may be specified. When multiple servers are given, they are tried in round-robin fashion until - a valid response is received, or until each server's maxtries limit has been reached. - </para> - </entry> - <entry> - array(<quote>localhost</quote>, 0, <quote>testing123</quote>, 3, 3) - </entry> - </row> - <row> - <entry>authtype</entry> - <entry> - the authentication method for validating the request. Possible values are: PAP, CHAP_MD5, MSCHAPv1, MSCHAPv2. - <para> - There are dependencies for the different methods. For all authentication methods - except PAP you need the Crypt_CHAP package, when you are using MS-CHAP you need also the mhash extension. - </para> - </entry> - <entry> - <quote>PAP</quote> - </entry> - </row> - </tbody> - </tgroup> - </table> - </para> - </refsect1> + The storage-specific argument for the + <link linkend="package.authentication.auth.auth"> + <function>Auth constructor</function></link> + is an array. + <table> + <title>Array keys and values</title> + <tgroup cols="3"> + <thead> + <row> + <entry>Key</entry> + <entry>Description</entry> + <entry>Default value</entry> + </row> + </thead> + <tbody> + <row> + <entry><quote>endpoint</quote></entry> + <entry> + The URI where the service is located. + </entry> + <entry /> + </row> + <row> + <entry><quote>namespace</quote></entry> + <entry> + The namespace of the web service. + </entry> + <entry /> + </row> + <row> + <entry><quote>method</quote></entry> + <entry> + The method with which the webservice should be requested (can + be either <literal>get</literal> or <literal>post</literal>). + </entry> + <entry /> + </row> + <row> + <entry><quote>encoding</quote></entry> + <entry> + The content encoding that should be used (e.g. + <literal>utf8</literal>). + </entry> + <entry /> + </row> + <row> + <entry><quote>usernamefield</quote></entry> + <entry> + The name of the field where the username is stored. + </entry> + <entry /> + </row> + <row> + <entry><quote>passwordfield</quote></entry> + <entry> + The name of the field where the password is stored. + </entry> + <entry /> + </row> + <!-- XXX: Document _features element --> + </tbody> + </tgroup> + </table> + </para> + </refsect1> + + <refsect1 id="package.authentication.auth.intro-storage.vpopmail"> + <title>vpopmail</title> + <para> + This container uses an existing vpopmail service to validate the + username and the password. + </para> + <para> + It does not require any storage-specific argument. + </para> + </refsect1> + </refentry> <!-- Keep this comment at the end of the file Local variables: