cvs: peardoc /peardoc2/en/package/authentication/auth intro-storage.xml

From: Date: Sat, 08 Mar 2003 14:49:53 +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-420@lists.php.net to get a copy of this message
mj Sat Mar 8 09:49:53 2003 EDT Modified files: /peardoc/peardoc2/en/package/authentication/auth intro-storage.xml Log: * M-x indent-region

Index: peardoc/peardoc2/en/package/authentication/auth/intro-storage.xml diff -u peardoc/peardoc2/en/package/authentication/auth/intro-storage.xml:1.5 peardoc/peardoc2/en/package/authentication/auth/intro-storage.xml:1.6 --- peardoc/peardoc2/en/package/authentication/auth/intro-storage.xml:1.5 Sat Mar 8 09:44:46 2003 +++ peardoc/peardoc2/en/package/authentication/auth/intro-storage.xml Sat Mar 8 09:49:53 2003 @@ -1,222 +1,224 @@ -<!-- $Revision: 1.5 $ --> +<!-- $Revision: 1.6 $ --> <refentry id="package.authentication.auth.intro-storage"> - <refnamediv> - <refname>Storage drivers: Introduction</refname> - <refpurpose>The storage drivers</refpurpose> - </refnamediv> - <refsect1 id="package.authentication.auth.intro.storage.overiew"> - <title>Overview</title> - <para> - <classname>PEAR::Auth</classname> uses a number of so called - storage containers to store the login data. The following - passages describe all of them. If the containers that come with - the package don't fit your needs, it is easy to create custom - ones, also. - </para> - </refsect1> - <refsect1 id="package.authentication.auth.intro-storage.db"> - <title>Database</title> - <para> - <classname>PEAR:Auth</classname> uses the - <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. - </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.file"> - <title>File</title> - <para> - The storage-specific argument for the - <link linkend="package.authentication.auth.auth"> - <function>Auth constructor</function></link> - is the file name of the - <link linkend="package.filesystem.file-passwd.intro">passwd-style</link> file. - </para> - </refsect1> - <refsect1 id="package.authentication.auth.intro-storage.ldap"> - <title>LDAP</title> - <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 host name or IP-adress to access - </entry> - <entry> - <quote>localhost</quote> - </entry> - </row> - <row> - <entry><quote>port</quote></entry> - <entry> - the port of the ldap server to access - </entry> - <entry> - <quote>389</quote> - </entry> - </row> - <row> - <entry><quote>basedn</quote></entry> - <entry> - the base distinguished name - </entry> - <entry> - <quote>o=netsols,c=de</quote> - </entry> - </row> - <row> - <entry><quote>userattr</quote></entry> - <entry> - defines the attributes to request - </entry> - <entry> - <quote>uid</quote> - </entry> - </row> - </tbody> - </tgroup> - </table> - </para> - </refsect1> - - <refsect1 id="package.authentication.auth.intro-storage.radius"> - <title>RADIUS</title> - <para> - You need Auth_RADIUS and the PECL radius in order to get this container to work. - </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>servers</quote></entry> - <entry> - array of RADIUS servers, containing: host, port, shared secret, timeout, maxtries. - <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> - </refentry> + <refnamediv> + <refname>Storage drivers: Introduction</refname> + <refpurpose>The storage drivers</refpurpose> + </refnamediv> + <refsect1 id="package.authentication.auth.intro.storage.overiew"> + <title>Overview</title> + <para> + <classname>PEAR::Auth</classname> uses a number of so called + storage containers to store the login data. The following + passages describe all of them. If the containers that come with + the package don't fit your needs, it is easy to create custom + ones, also. + </para> + </refsect1> + <refsect1 id="package.authentication.auth.intro-storage.db"> + <title>Database</title> + <para> + <classname>PEAR:Auth</classname> uses the + <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. + </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.file"> + <title>File</title> + <para> + The storage-specific argument for the + <link linkend="package.authentication.auth.auth"> + <function>Auth constructor</function></link> + is the file name of the + <link linkend="package.filesystem.file-passwd.intro">passwd-style</link> file. + </para> + </refsect1> + <refsect1 id="package.authentication.auth.intro-storage.ldap"> + <title>LDAP</title> + <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 host name or IP-adress to access + </entry> + <entry> + <quote>localhost</quote> + </entry> + </row> + <row> + <entry><quote>port</quote></entry> + <entry> + the port of the ldap server to access + </entry> + <entry> + <quote>389</quote> + </entry> + </row> + <row> + <entry><quote>basedn</quote></entry> + <entry> + the base distinguished name + </entry> + <entry> + <quote>o=netsols,c=de</quote> + </entry> + </row> + <row> + <entry><quote>userattr</quote></entry> + <entry> + defines the attributes to request + </entry> + <entry> + <quote>uid</quote> + </entry> + </row> + </tbody> + </tgroup> + </table> + </para> + </refsect1> + + <refsect1 id="package.authentication.auth.intro-storage.radius"> + <title>RADIUS</title> + <para> + You need Auth_RADIUS and the PECL radius in order to get this container to work. + </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>servers</quote></entry> + <entry> + array of RADIUS servers, containing: host, port, shared secret, timeout, maxtries. + <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> +</refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml
« previous php.pear.doc (#420) next »