2007-12-21 23:34:36 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2009-07-11 08:43:41 +00:00
|
|
|
<!-- $Revision$ -->
|
2007-12-21 23:34:36 +00:00
|
|
|
|
|
|
|
<chapter xml:id="radius.examples" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
|
|
&reftitle.examples;
|
|
|
|
<!-- FIXME: Copy&paste the examples from this "package" -->
|
|
|
|
<para>
|
|
|
|
Howto start?
|
|
|
|
<itemizedlist>
|
|
|
|
<listitem><simpara>get a radius resource</simpara></listitem>
|
|
|
|
<listitem><simpara>configure the library</simpara></listitem>
|
|
|
|
<listitem><simpara>create the request</simpara></listitem>
|
|
|
|
<listitem><simpara>put attributes</simpara></listitem>
|
|
|
|
<listitem><simpara>send the request</simpara></listitem>
|
|
|
|
<listitem><simpara>receive attributes</simpara></listitem>
|
|
|
|
<listitem><simpara>close the radius resource (optional)</simpara></listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
Take also a look at the examples in this package.
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
The package contains an example php script. This script demonstrates howto
|
|
|
|
authenticate with radius using PAP or CHAP (md5). If you authenticate with
|
|
|
|
Microsoft Radius servers then its not possible to use CHAP (md5). If you
|
|
|
|
would like to authenticate with Microsoft Servers you have to use
|
|
|
|
MS-CHAPv1 or MS-CHAPv2, but its more complicated, because you need md4,
|
|
|
|
sha1 and des to generate the right data. The enclosed examples demonstrate
|
|
|
|
all authentication-methods, including MS-CHAPv1 and MS-CHAPv2. To get the
|
|
|
|
MS-CHAP to work you need the <link linkend="ref.mcrypt">mcrypt</link> and
|
|
|
|
the <link linkend="ref.mhash">mhash</link> extension, starting with
|
|
|
|
version 1.2 of the package, the mcrypt extension is no longer needed.
|
|
|
|
</para>
|
|
|
|
</chapter>
|
|
|
|
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
|
|
Local variables:
|
|
|
|
mode: sgml
|
|
|
|
sgml-omittag:t
|
|
|
|
sgml-shorttag:t
|
|
|
|
sgml-minimize-attributes:nil
|
|
|
|
sgml-always-quote-attributes:t
|
|
|
|
sgml-indent-step:1
|
|
|
|
sgml-indent-data:t
|
|
|
|
sgml-parent-document:nil
|
2009-09-25 07:04:39 +00:00
|
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
2007-12-21 23:34:36 +00:00
|
|
|
sgml-exposed-tags:nil
|
|
|
|
sgml-local-catalogs:nil
|
|
|
|
sgml-local-ecat-files:nil
|
|
|
|
End:
|
|
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
|
|
vim: et tw=78 syn=sgml
|
|
|
|
vi: ts=1 sw=1
|
|
|
|
-->
|
|
|
|
|