cvs: peardoc /peardoc2/en/package/authentication/auth intro-storage.xml intro.xml
| From: | Martin Jansen | Date: | Sun, 03 Nov 2002 17:30:10 +0000 |
| Subject: | cvs: peardoc /peardoc2/en/package/authentication/auth intro-storage.xml intro.xml | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-7278@lists.php.net to get a copy of this message | ||
mj Sun Nov 3 12:30:10 2002 EDT
Modified files:
/peardoc/peardoc2/en/package/authentication/auth intro-storage.xml
intro.xml
Log:
* Add markup.
* Remove unnecessary quotes.
Index: peardoc/peardoc2/en/package/authentication/auth/intro-storage.xml
diff -u peardoc/peardoc2/en/package/authentication/auth/intro-storage.xml:1.2
peardoc/peardoc2/en/package/authentication/auth/intro-storage.xml:1.3
--- peardoc/peardoc2/en/package/authentication/auth/intro-storage.xml:1.2 Sun Oct 13 06:16:55 2002
+++ peardoc/peardoc2/en/package/authentication/auth/intro-storage.xml Sun Nov 3 12:30:10 2002
@@ -1,15 +1,27 @@
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
<refentry id="package.authentication.auth.intro-storage">
<refnamediv>
<refname>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 describes 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.
+ 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
@@ -28,7 +40,7 @@
</thead>
<tbody>
<row>
- <entry><quote>'dsn'</quote></entry>
+ <entry><quote>dsn</quote></entry>
<entry>
a valid and well-formed
<link linkend="package.database.db.intro-dsn">
@@ -39,7 +51,7 @@
</entry>
</row>
<row>
- <entry><quote>'table'</quote></entry>
+ <entry><quote>table</quote></entry>
<entry>
the name of the database table, where the
authorization data is stored.
@@ -49,16 +61,16 @@
</entry>
</row>
<row>
- <entry><quote>'usernamecol'</quote></entry>
+ <entry><quote>usernamecol</quote></entry>
<entry>
- the name of the colunm, where the user name is stored
+ the name of the colunm, where the username is stored
</entry>
<entry>
<quote>username</quote>
</entry>
</row>
<row>
- <entry><quote>'passwordcol'</quote></entry>
+ <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.
@@ -101,7 +113,7 @@
</thead>
<tbody>
<row>
- <entry><quote>'host'</quote></entry>
+ <entry><quote>host</quote></entry>
<entry>
the host name or IP-adress to access
</entry>
@@ -110,7 +122,7 @@
</entry>
</row>
<row>
- <entry><quote>'port'</quote></entry>
+ <entry><quote>port</quote></entry>
<entry>
the port of the ldap server to access
</entry>
@@ -119,7 +131,7 @@
</entry>
</row>
<row>
- <entry><quote>'basedn'</quote></entry>
+ <entry><quote>basedn</quote></entry>
<entry>
the base distinguished name
</entry>
@@ -128,7 +140,7 @@
</entry>
</row>
<row>
- <entry><quote>'userattr'</quote></entry>
+ <entry><quote>userattr</quote></entry>
<entry>
defines the attributes to request
</entry>
Index: peardoc/peardoc2/en/package/authentication/auth/intro.xml
diff -u peardoc/peardoc2/en/package/authentication/auth/intro.xml:1.2
peardoc/peardoc2/en/package/authentication/auth/intro.xml:1.3
--- peardoc/peardoc2/en/package/authentication/auth/intro.xml:1.2 Sun Oct 13 06:16:55 2002
+++ peardoc/peardoc2/en/package/authentication/auth/intro.xml Sun Nov 3 12:30:10 2002
@@ -1,4 +1,4 @@
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
<refentry id="package.authentication.auth.intro">
<refnamediv>
<refname>Introduction</refname>
@@ -22,13 +22,11 @@
function loginFunction()
{
- global $PHP_SELF;
-
/**
* Change the HTML output so that it fits to your
* application.
*/
- echo "<form method=\"post\" action=\"" . $PHP_SELF .
"\">";
+ echo "<form method=\"post\" action=\"" .
$_SERVER['PHP_SELF'] . "\">";
echo "<input type=\"text\" name=\"username\">";
echo "<input type=\"password\" name=\"password\">";
echo "<input type=\"submit\">";
@@ -164,10 +162,8 @@
This SQL statement creates a table usable under the default
database authentication scheme using MySQL:
</para>
- <example>
- <title>Authentication table DDL statement</title>
- <programlisting role="sql">
- <![CDATA[
+ <programlisting role="sql">
+ <![CDATA[
CREATE TABLE auth (
username VARCHAR(50) default '' NOT NULL,
password VARCHAR(32) default '' NOT NULL,
@@ -175,8 +171,7 @@
KEY (password)
);
]]>
- </programlisting>
- </example>
+ </programlisting>
<para>
These are the table and field names necessary for working
authentication. The password column must be at least 32 characters