cvs: peardoc /ja/package/authentication auth-radius.xml /ja/package/authentication/auth-radius intro.xml /ja/pecl satellite.xml spplus.xml
| From: | TAKAGI Masahiro | Date: | Fri, 05 Jan 2007 12:23:57 +0000 |
| Subject: | cvs: peardoc /ja/package/authentication auth-radius.xml /ja/package/authentication/auth-radius intro.xml /ja/pecl satellite.xml spplus.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-9217@lists.php.net to get a copy of this message | ||
takagi Fri Jan 5 12:23:57 2007 UTC
Added files:
/peardoc/ja/pecl spplus.xml satellite.xml
/peardoc/ja/package/authentication/auth-radius intro.xml
/peardoc/ja/package/authentication auth-radius.xml
Log:
initial translation.
http://cvs.php.net/viewvc.cgi/peardoc/ja/pecl/spplus.xml?view=markup&rev=1.1 Index: peardoc/ja/pecl/spplus.xml +++ peardoc/ja/pecl/spplus.xml <?xml version="1.0" encoding="utf-8" ?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.6 Maintainer: takagi Status: ready --> <!-- Author: Chaillan Nicolas <nicos@php.net> --> <reference id="pecl.spplus"> <title>SPPLUS 決æ¸ã·ã¹ãã </title> <titleabbrev>SPPLUS</titleabbrev> <partintro> <sect1 id="pecl.spplus.partintro"> <title>å°å ¥</title> <sect2 id="pecl.spplus.intro"> <title>SPPLUS 決æ¸ã·ã¹ãã ã«ã¤ãã¦</title> <para> ãã®ã¢ã¸ã¥ã¼ã«ã«ãããCaisse d'Epargne (ãã©ã³ã¹ã®éè¡) ã® SPPLUS 決æ¸ã·ã¹ãã ã使ç¨ã§ããããã«ãªãã¾ãã </para> <note> <para> spplus ã使ç¨ããã«ã¯ãæ°ãã kit_php ãå¿ è¦ã¨ãªãã¾ãã ãããè¦ã¤ãããªãå ´åã¯ããé£çµ¡ãã ããã </para> <para> ãã®ã¢ã¸ã¥ã¼ã«ã¯ã(ç¾æç¹ã§ã¯) *nix ç³»ã®ãªãã¬ã¼ãã£ã³ã°ã·ã¹ãã ä¸ã§ããåä½ãã¾ããã </para> </note> </sect2> <sect2 id="pecl.spplus.install"> <title>ã¤ã³ã¹ãã¼ã«</title> <para> æã£åãæ©ãã¤ã³ã¹ãã¼ã«ã¡ã¢ <itemizedlist> <listitem> <simpara> PHP 4.1.0 以éããã³ SPPLUS v.3 ãå¿ è¦ã§ãã </simpara> </listitem> <listitem> <simpara> ã³ã³ã½ã¼ã«ã§ 'pear install spplus' ã¨å ¥åãã¾ãã </simpara> </listitem> </itemizedlist> </para> </sect2> <sect2 id="pecl.spplus.configuration"> <title>è¨å®</title> <para> è¨å®ã®è©³ç´°ã«ã¤ãã¦ã¯ãkit_php ã®ã½ã¼ã¹é å¸ç©ã«å«ã¾ãã README ãã¡ã¤ã«ãåç §ãã ããã </para> </sect2> <sect2 id="pecl.spplus.contact"> <title>é£çµ¡å </title> <para> è¿ãå°æ¥ãããã«æ©è½ã追å ããäºå®ã§ãã </para> <para> ä½ãè¨ããããã¨ãããå ´åã ãããã¯ãã°ä¿®æ£ãæ©è½è¿½å ããã¦ãããããªã©ã§éçºãæä¼ã£ã¦ãã ããå ´å㯠nicos ãã¦ã«ã¡ã¼ã«ãéã£ã¦ãã ãããã¡ã¼ã«ã¢ãã¬ã¹ã¯ <ulink url="mailto:nicos@php.net">nicos@php.net</ulink> ã§ãã </para> </sect2> </sect1> </partintro> <refentry id="pecl.spplus.spplus-calcul_hmac"> <refnamediv> <refname>calcul_hmac</refname> <refpurpose>hmac ãåå¾ãã (å «ã¤ã®å¼æ°ãå¿ è¦)</refpurpose> </refnamediv> <refsect1> <title>説æ</title> <funcsynopsis> <funcprototype> <funcdef>string <function>calcul_hmac</function></funcdef> <paramdef>string <parameter>clent</parameter></paramdef> <paramdef>string <parameter>siretcode</parameter></paramdef> <paramdef>string <parameter>price</parameter></paramdef> <paramdef>string <parameter>reference</parameter></paramdef> <paramdef>string <parameter>validity</parameter></paramdef> <paramdef>string <parameter>taxation</parameter></paramdef> <paramdef>string <parameter>devise</parameter></paramdef> <paramdef>string <parameter>language</parameter></paramdef> </funcprototype> </funcsynopsis> <para> HMAC ãã¼ãçæãã¾ã (弿°ã¯å «ã¤ã®ã¿ã§ã)ã </para> </refsect1> </refentry> <refentry id="pecl.spplus.spplus-calculhmac"> <refnamediv> <refname>calculhmac</refname> <refpurpose>hmac ãã¼ãåå¾ãã (äºã¤ã®å¼æ°ãå¿ è¦)</refpurpose> </refnamediv> <refsect1> <title>説æ</title> <funcsynopsis> <funcprototype> <funcdef>string <function>calculhmac</function></funcdef> <paramdef>string <parameter>clent</parameter></paramdef> <paramdef>string <parameter>data</parameter></paramdef> </funcprototype> </funcsynopsis> <para> HMAC ãã¼ãçæãã¾ã (弿°ã¯äºã¤ã®ã¿ã§ã)ã </para> </refsect1> </refentry> <refentry id="pecl.spplus.spplus-nthmac"> <refnamediv> <refname>nthmac</refname> <refpurpose>nthmac ãã¼ãåå¾ãã (äºã¤ã®å¼æ°ãå¿ è¦)</refpurpose> </refnamediv> <refsect1> <title>説æ</title> <funcsynopsis> <funcprototype> <funcdef>string <function>nthmac</function></funcdef> <paramdef>string <parameter>clent</parameter></paramdef> <paramdef>string <parameter>data</parameter></paramdef> </funcprototype> </funcsynopsis> <para> NTHMAC ãã¼ãçæãã¾ã (弿°ã¯äºã¤ã®ã¿ã§ã)ã </para> </refsect1> </refentry> <refentry id="pecl.spplus.spplus-signeurlpaiement"> <refnamediv> <refname>signeurlpaiement</refname> <refpurpose>æ±ºæ¸ url ãåå¾ãã (äºã¤ã®å¼æ°ãå¿ è¦)</refpurpose> </refnamediv> <refsect1> <title>説æ</title> <funcsynopsis> <funcprototype> <funcdef>string <function>signeurlpaiement</function></funcdef> <paramdef>string <parameter>clent</parameter></paramdef> <paramdef>string <parameter>data</parameter></paramdef> </funcprototype> </funcsynopsis> <para> æ±ºæ¸ url ãåå¾ãã¾ã (äºã¤ã®å¼æ°ãå¿ è¦ã§ã)ã </para> </refsect1> </refentry> </reference> <!-- 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 sgml-default-dtd-file:"../../manual.ced" 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 --> http://cvs.php.net/viewvc.cgi/peardoc/ja/pecl/satellite.xml?view=markup&rev=1.1 Index: peardoc/ja/pecl/satellite.xml +++ peardoc/ja/pecl/satellite.xml <?xml version="1.0" encoding="utf-8" ?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: takagi Status: ready --> <!-- Author: David Eriksson <eriksson@php.net> --> <reference id="pecl.satellite"> <title>Satellite CORBA ã¯ã©ã¤ã¢ã³ãæ¡å¼µ</title> <titleabbrev>Satellite</titleabbrev> <partintro> &warn.experimental; <para> Satellite ã¯éæ¨å¥¨ã§ããUniverse (<ulink url="&url.corba.universe;">&url.corba.universe;</ulink>) ã使ç¨ããSatellite ã¯ä½¿ç¨ããªããã¨ãæ¨å¥¨ãã¾ãã </para> <para> Satellite æ¡å¼µã¯ãCORBA ãªãã¸ã§ã¯ãã«ã¢ã¯ã»ã¹ããããã«ä½¿ç¨ããã¾ãã php.ini ã® idl_directory= ã¨ã³ããªã«ã使ç¨ããå ¨ã¦ã® IDL ãã¡ã¤ã«ãä¿åããå ´æã®ãã¹ãè¨å®ããå¿ è¦ãããã¾ãã </para> <para> Satellite ã®ã¤ã³ã¹ãã¼ã«ã«ã¤ãã¦ã®è©³ç´°ã¯ãSatellite ã® README ãã¡ã¤ã«ãåç §ãã ããã </para> </partintro> <refentry id="pecl.satellite.orbitobject"> <refnamediv> <refname>OrbitObject</refname> <refpurpose>CORBA ãªãã¸ã§ã¯ãã«ã¢ã¯ã»ã¹ãã</refpurpose> </refnamediv> <refsect1> <title>説æ</title> <funcsynopsis> <funcprototype> <funcdef>new <function>OrbitObject</function></funcdef> <paramdef>string <parameter>ior</parameter></paramdef> </funcprototype> </funcsynopsis> &warn.experimental.func; <para> ãã®ã¯ã©ã¹ã¯ CORBA ãªãã¸ã§ã¯ãã¸ã®ã¢ã¯ã»ã¹æ©è½ãæä¾ãã¾ãã ãã©ã¡ã¼ã¿ <parameter>ior</parameter> ã«ã¯ã ãªã¢ã¼ããªãã¸ã§ã¯ããæã IORï¼Interoperable Object Referenceï¼ ãæååã§æå®ãã¾ãã </para> <para> <example> <title>IDL ãã¡ã¤ã«ã®ä¾</title> <programlisting role="idl"> <![CDATA[ interface MyInterface { void SetInfo (string info); string GetInfo(); attribute int value; } ]]> </programlisting> </example> </para> <para> <example> <title>MyInterface ã«ã¢ã¯ã»ã¹ããããã® PHP ã³ã¼ã</title> <programlisting role="php"> <![CDATA[ <?php $obj = new OrbitObject ($ior); $obj->SetInfo ("A 2GooD object"); echo $obj->GetInfo(); $obj->value = 42; echo $obj->value; ?> ]]> </programlisting> </example> </para> </refsect1> </refentry> <refentry id="pecl.satellite.orbitenum"> <refnamediv> <refname>OrbitEnum</refname> <refpurpose>CORBA enums ã使ç¨ãã</refpurpose> </refnamediv> <refsect1> <title>説æ</title> <funcsynopsis> <funcprototype> <funcdef>new <function>OrbitEnum</function></funcdef> <paramdef>string <parameter>id</parameter></paramdef> </funcprototype> </funcsynopsis> &warn.experimental.func; <para> ãã®ã¯ã©ã¹ã¯ããã©ã¡ã¼ã¿ <parameter>id</parameter> ã§æå®ããé£çªã表ãã¾ãã ãã©ã¡ã¼ã¿ <parameter>id</parameter> ã¯ã é£çªã®ååï¼ä¾: "MyEnum"ï¼ããã㯠å®å ¨ãªã¬ãã¸ããªIDï¼ä¾:"IDL:MyEnum:1.0"ï¼ã®ã©ã¡ããã§ãã </para> <para> <example> <title>IDL ãã¡ã¤ã«ã®ä¾</title> <programlisting role="idl"> <![CDATA[ enum MyEnum { a,b,c,d,e }; ]]> </programlisting> </example> </para> <para> <example> <title>MyEnum ã«ã¢ã¯ã»ã¹ããããã® PHP ã³ã¼ã</title> <programlisting role="php"> <![CDATA[ <?php $enum = new OrbitEnum ("MyEnum"); echo $enum->a; /* 0 ãåºå */ echo $enum->c; /* 2 ãåºå */ echo $enum->e; /* 4 ãåºå */ ?> ]]> </programlisting> </example> </para> </refsect1> </refentry> <refentry id="pecl.satellite.orbitstruct"> <refnamediv> <refname>OrbitStruct</refname> <refpurpose>CORBA æ§é ä½ã使ç¨ãã</refpurpose> </refnamediv> <refsect1> <title>説æ</title> <funcsynopsis> <funcprototype> <funcdef>new <function>OrbitStruct</function></funcdef> <paramdef>string <parameter>id</parameter></paramdef> </funcprototype> </funcsynopsis> &warn.experimental.func; <para> ãã®ã¯ã©ã¹ã¯ããã©ã¡ã¼ã¿ <parameter>id</parameter> ã§æå®ããæ§é ä½ã表ãã¾ãã ãã©ã¡ã¼ã¿ <parameter>id</parameter> ã¯ã æ§é ä½ã®åå (ä¾: "MyStruct") ã¾ãã¯å®å ¨ãªã¬ãã¸ã㪠ID (ä¾: "IDL:MyStruct:1.0") ã®ã©ã¡ããã§ãã </para> <para> <example> <title>IDL ãã¡ã¤ã«ã®ä¾</title> <programlisting role="idl"> <![CDATA[ struct MyStruct { short shortvalue; string stringvalue; }; interface SomeInterface { void SetValues (MyStruct values); MyStruct GetValues(); } ]]> </programlisting> </example> </para> <para> <example> <title>MyStruct ã«ã¢ã¯ã»ã¹ãã PHP ã³ã¼ã</title> <programlisting role="php"> <![CDATA[ <?php $obj = new OrbitObject ($ior); $initial_values = new OrbitStruct ("IDL:MyStruct:1.0"); $initial_values->shortvalue = 42; $initial_values->stringvalue = "HGTTG"; $obj->SetValues ($initial_values); $values = $obj->GetValues(); echo $values->shortvalue; echo $values->stringvalue; ?> ]]> </programlisting> </example> </para> </refsect1> </refentry> <refentry id="pecl.satellite.satellite-caught-exception"> <refnamediv> <refname>satellite_caught_exception</refname> <refpurpose> ä¾å¤ãåã®é¢æ°ãããã£ããããããã©ããã調ã¹ã </refpurpose> </refnamediv> <refsect1> <title>説æ</title> <funcsynopsis> <funcprototype> <funcdef>bool <function>satellite_caught_exception</function> </funcdef> <paramdef></paramdef> </funcprototype> </funcsynopsis> &warn.experimental.func; <para> ãã®é¢æ°ã¯ãä¾å¤ããã£ãããããå ´åã« &true; ãè¿ãã¾ãã </para> <para> <example> <title>IDL ãã¡ã¤ã«ã®ä¾</title> <programlisting role="idl"> <![CDATA[ /* ++?????++ Out of Cheese Error. Redo From Start. */ exception OutOfCheeseError { int parameter; } interface AnotherInterface { void AskWhy() raises (OutOfCheeseError); } ]]> </programlisting> </example> </para> <para> <example> <title>CORBA ä¾å¤ãå¦çãã PHP ã³ã¼ã</title> <programlisting role="php"> <![CDATA[ <?php $obj = new OrbitObject ($ior); $obj->AskWhy(); if (satellite_caught_exception()) { if ("IDL:OutOfCheeseError:1.0" == satellite_exception_id()) { $exception = satellite_exception_value(); echo $exception->parameter; } } ?> ]]> </programlisting> </example> </para> </refsect1> </refentry> <refentry id="pecl.satellite.satellite-exception-id"> <refnamediv> <refname>satellite_exception_id</refname> <refpurpose>ç´è¿ã®ä¾å¤ã«é¢ããã¬ãã¸ã㪠ID ãåå¾ãã</refpurpose> </refnamediv> <refsect1> <title>説æ</title> <funcsynopsis> <funcprototype> <funcdef>string <function>satellite_exception_id</function></funcdef> <paramdef></paramdef> </funcprototype> </funcsynopsis> &warn.experimental.func; <para> ã¬ãã¸ããªIDæååãè¿ãã¾ã (ä¾:"IDL:MyException:1.0")ã ä¾ã¨ãã¦ã¯ã<function>satellite_caught_exception</function> ã®ä½¿ç¨ä¾ãåç §ãã ããã </para> </refsect1> </refentry> <refentry id="pecl.satellite.satellite-exception-value"> <refnamediv> <refname>satellite_exception_value</refname> <refpurpose> ç´è¿ã®ä¾å¤ã«é¢ããä¾å¤æ§é ä½ãå¾ã </refpurpose> </refnamediv> <refsect1> <title>説æ</title> <funcsynopsis> <funcprototype> <funcdef>OrbitStruct <function>satellite_exception_value</function> </funcdef> <paramdef></paramdef> </funcprototype> </funcsynopsis> &warn.experimental.func; <para> ä¾å¤æ§é ä½ãè¿ãã¾ããä¾ã«ã¤ãã¦ã¯ã <function>satellite_caught_exception</function> ã®ä½¿ç¨ä¾ãåç §ãã ããã </para> </refsect1> </refentry> <refentry id='pecl.satellite.satellite-object-to-string'> <refnamediv> <refname>satellite_object_to_string</refname> <refpurpose> ãªãã¸ã§ã¯ããæåå表ç¾ã«å¤æãã </refpurpose> </refnamediv> <refsect1> <title>説æ</title> <funcsynopsis> <funcprototype> <funcdef>string <function>satellite_object_to_string</function></funcdef> <paramdef>object <parameter>obj</parameter></paramdef> </funcprototype> </funcsynopsis> <para> ãªãã¸ã§ã¯ããããã®æåå表ç¾ï¼IORï¼ã«å¤æãã¾ãã </para> </refsect1> </refentry> <refentry id='pecl.satellite.satellite-load-idl'> <refnamediv> <refname>satellite_load_idl</refname> <refpurpose> ã¿ã¤ãããã¼ã¸ã£ã« IDL ãã¡ã¤ã«ã®ãã¼ããæç¤ºãã </refpurpose> </refnamediv> <refsect1> <title>説æ</title> <funcsynopsis> <funcprototype> <funcdef>bool <function>satellite_load_idl</function></funcdef> <paramdef>string <parameter>file</parameter></paramdef> </funcprototype> </funcsynopsis> <para> IDL ãã¡ã¤ã«ã Satellite ã«ãã¼ããã¾ãã </para> </refsect1> </refentry> <refentry id='pecl.satellite.satellite-get-repository-id'> <refnamediv> <refname>satellite_get_repository_id</refname> <refpurpose> æªå®è£ </refpurpose> </refnamediv> <refsect1> <title>説æ</title> <funcsynopsis> <funcprototype> <funcdef>int <function>satellite_get_repository_id</function></funcdef> <paramdef>object <parameter>obj</parameter></paramdef> </funcprototype> </funcsynopsis> <para> å®è£ ããã¦ãã¾ããã </para> </refsect1> </refentry> </reference> <!-- 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 indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../manual.ced" 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 --> http://cvs.php.net/viewvc.cgi/peardoc/ja/package/authentication/auth-radius/intro.xml?view=markup&rev=1.1 Index: peardoc/ja/package/authentication/auth-radius/intro.xml +++ peardoc/ja/package/authentication/auth-radius/intro.xml <?xml version="1.0" encoding="utf-8" ?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: takagi Status: ready --> <refentry id="packages.authentication.auth-radius.intro"> <refnamediv> <refname>å°å ¥</refname> <refpurpose> Auth_RADIUS ã®åºæ¬çãªä½¿ç¨æ³ </refpurpose> </refnamediv> <refsect1> <title>Auth_RADIUS ã¨ã¯?</title> <para> Auth_RADIUS ã¯ãradius æ¡å¼µã¢ã¸ã¥ã¼ã«ã® php ã©ããã¼ã§ãã RADIUS ãããã³ã«ã«ãã¾ããªãã¿ããªãå ´åã¯ã <ulink url="http://ja.wikipedia.org/wiki/RADIUS">Wikipedia ã®è¨äº</ulink> ãåç §ããã¨ããã§ãããã </para> <para> Auth_RADIUS ã¯ãradius æ¡å¼µã¢ã¸ã¥ã¼ã«ã«çµã¿è¾¼ã¾ããæ©è½ã使ç¨ããããã®ãã®ã§ãã Auth_RADIUS ã«ã¤ãã¦çè§£ããã«ã¯ãã¾ã radius æ¡å¼µã¢ã¸ã¥ã¼ã«ã®è¨è¨ã«ã¤ãã¦çè§£ãã¦ããå¿ è¦ãããã§ãããã radius æ¡å¼µã¢ã¸ã¥ã¼ã«ã®ããã¥ã¡ã³ãã¯ãPHP ããã¥ã¢ã«ã® <ulink url="&url.php.manual;ja/ref.radius.php">&url.php.manual;ja/ref.radius.php</ulink> ã«ããã¾ãã </para> <para> RADIUS ã§ä½¿ç¨ã§ãããã¾ãã¾ãªèªè¨¼æ¹å¼ã«å¯¾å¿ããã¯ã©ã¹ç¾¤ãç¨æããã¦ãã¾ãã CHAP-MD5 ããã㯠MS-CHAP ã«ããèªè¨¼ã使ç¨ããå ´åã¯ã <ulink url="&url.pear.package;Crypt_CHAP">Crypt_CHAP</ulink> ããã±ã¼ã¸ãå¿ è¦ã¨ãªãã¾ããããã«ãMS-CHAP èªè¨¼ã使ç¨ããå ´åã¯ã mhash ããã³ mcrypt æ¡å¼µã¢ã¸ã¥ã¼ã«ã php.ini ã§æå¹ã«ãããã ãããã¯éçã«çµã¿è¾¼ãã§ããå¿ è¦ãããã¾ãã </para> <para> ææ°ã® radius æ¡å¼µã¢ã¸ã¥ã¼ã« (ãã¼ã¸ã§ã³ 1.2 以é) ã使ç¨ããå ´åã¯ã mcrypt æ¡å¼µã¢ã¸ã¥ã¼ã«ãæå¹ã«ããå¿ è¦ããªããã¨ã«æ³¨æãã¾ãããã </para> </refsect1> <refsect1 id="packages.authentication.auth-radius.intro.how"> <title>Auth_RADIUS ã®ä½¿ç¨æ³ã¯?</title> <para> åºæ¬çãªä½¿ç¨ä¾ã以ä¸ã«ç¤ºãã¾ãã ããã¯ãããã±ã¼ã¸ã«ä»å±ãããµã³ãã«ãã®ãã®ã§ãã </para> <para> <programlisting role="php"> <![CDATA[ <?php /* vim: set expandtab tabstop=4 shiftwidth=4: */ /* Copyright (c) 2003, Michael Bretterklieber <michael@bretterklieber.com> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. The names of the authors may not be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. This code cannot simply be copied and put under the GNU Public License or any other GPL-like (LGPL, GPL2) License. $Id: intro.xml,v 1.1 2007/01/05 12:23:57 takagi Exp $ */ require_once 'Auth/RADIUS.php'; require_once 'Crypt/CHAP.php'; //$type = 'PAP'; //$type = 'CHAP_MD5'; $type = 'MSCHAPv1'; //$type = 'MSCHAPv2'; $username = 'sepp'; $password = 'sepp'; $classname = 'Auth_RADIUS_' . $type; $rauth = new $classname($username, $password); $rauth->addServer('localhost', 0, 'testing123'); $rauth->setConfigfile('/etc/radius.conf'); $rauth->username = $username; switch($type) { case 'CHAP_MD5': case 'MSCHAPv1': $classname = $type == 'MSCHAPv1' ? 'Crypt_CHAP_MSv1' : 'Crypt_CHAP_MD5'; $crpt = new $classname; $crpt->password = $password; $rauth->challenge = $crpt->challenge; $rauth->chapid = $crpt->chapid; $rauth->response = $crpt->challengeResponse(); $rauth->flags = 1; // If you must use deprecated and weak LAN-Manager-Responses use this: // $rauth->lmResponse = $crpt->lmChallengeResponse(); // $rauth->flags = 0; break; case 'MSCHAPv2': $crpt = new Crypt_CHAP_MSv2; $crpt->username = $username; $crpt->password = $password; $rauth->challenge = $crpt->authChallenge; $rauth->peerChallenge = $crpt->peerChallenge; $rauth->chapid = $crpt->chapid; $rauth->response = $crpt->challengeResponse(); break; default: $rauth->password = $password; break; } if (!$rauth->start()) { printf("Radius start: %s<br>\n", $rauth->getError()); exit; } $result = $rauth->send(); if (PEAR::isError($result)) { printf("Radius send failed: %s<br>\n", $result->getMessage()); exit; } else if ($result === true) { printf("Radius Auth succeeded<br>\n"); } else { printf("Radius Auth rejected<br>\n"); } // get attributes, even if auth failed if (!$rauth->getAttributes()) { printf("Radius getAttributes: %s<br>\n", $rauth->getError()); } else { $rauth->dumpAttributes(); } $rauth->close(); ?> ]]> </programlisting> </para> <para> ããã²ã¨ã¤ã®ä¾ã§ãã </para> <para> <programlisting role="php"> <![CDATA[ <?php /* vim: set expandtab tabstop=4 shiftwidth=4: */ /* Copyright (c) 2003, Michael Bretterklieber <michael@bretterklieber.com> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. The names of the authors may not be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. This code cannot simply be copied and put under the GNU Public License or any other GPL-like (LGPL, GPL2) License. $Id: intro.xml,v 1.1 2007/01/05 12:23:57 takagi Exp $ */ require_once 'Auth/RADIUS.php'; require_once 'Crypt/CHAP.php'; $username = 'sepp'; $starttime = time(); $racct = new Auth_RADIUS_Acct_Start; $racct->addServer('localhost', 0, 'testing123'); $racct->username = $username; // RADIUS_AUTH_RADIUS => authenticated via Radius // RADIUS_AUTH_LOCAL => authenicated local // RADIUS_AUTH_REMOTE => authenticated remote $racct->authentic = RADIUS_AUTH_LOCAL; $status = $racct->start(); if(PEAR::isError($status)) { printf("Radius start: %s<br>\n", $status->getMessage()); exit; } // you can put any additional attributes here // $racct->putAttribute(RADIUS_ACCT_INPUT_PACKETS, 45236); // $racct->putAttribute(RADIUS_ACCT_OUTPUT_PACKETS, 1212); $result = $racct->send(); if (PEAR::isError($result)) { printf("Radius send failed: %s<br>\n", $result->getMessage()); exit; } else if ($result === true) { printf("Radius Acounting succeeded<br>\n"); } else { printf("Radius Acounting rejected<br>\n"); } $racct->close(); // Wait a bit, that we can put the session-time sleep(2); // send an accounting update $racct = new Auth_RADIUS_Acct_Update; $racct->addServer('localhost', 0, 'testing123'); $racct->username = $username; $racct->session_time = time() - $starttime; $status = $racct->start(); if(PEAR::isError($status)) { printf("Radius start: %s<br>\n", $status->getMessage()); exit; } $result = $racct->send(); if (PEAR::isError($result)) { printf("Radius send failed: %s<br>\n", $result->getMessage()); exit; } else if ($result === true) { printf("Radius Acounting succeeded<br>\n"); } else { printf("Radius Acounting rejected<br>\n"); } // Wait a bit, that we can put the session-time sleep(2); // send the stop $racct = new Auth_RADIUS_Acct_Stop; $racct->addServer('localhost', 0, 'testing123'); $racct->username = $username; $racct->session_time = time() - $starttime; $status = $racct->start(); if(PEAR::isError($status)) { printf("Radius start: %s<br>\n", $status->getMessage()); exit; } // you can put any additional attributes here // $racct->putAttribute(RADIUS_ACCT_TERMINATE_CAUSE, RADIUS_TERM_SESSION_TIMEOUT); $result = $racct->send(); if (PEAR::isError($result)) { printf("Radius send failed: %s<br>\n", $result->getMessage()); exit; } else if ($result === true) { printf("Radius Acounting succeeded<br>\n"); } else { printf("Radius Acounting rejected<br>\n"); } $racct->close(); ?> ]]> </programlisting> </para> </refsect1> </refentry> <!-- 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 sgml-default-dtd-file:"../../../../manual.ced" 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 --> http://cvs.php.net/viewvc.cgi/peardoc/ja/package/authentication/auth-radius.xml?view=markup&rev=1.1 Index: peardoc/ja/package/authentication/auth-radius.xml +++ peardoc/ja/package/authentication/auth-radius.xml <?xml version="1.0" encoding="utf-8" ?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: takagi Status: ready --> <sect1 id="package.authentication.auth-radius"> <title>Auth_RADIUS</title> <para> RADIUS ã®ã¯ã©ã¤ã¢ã³ãå®è£ ã§ãããã®ããã±ã¼ã¸ã«ã¯ <ulink url="http://www.pecl.php/radius">RADIUS PECL æ¡å¼µã¢ã¸ã¥ã¼ã«</ulink> ã®ã©ããã¼ã¯ã©ã¹ãå«ã¾ãã¾ãã RADIUS Authentication (RFC2865) ããã³ RADIUS Accounting (RFC2866) ã®æ©è½ãæä¾ãã¾ãã </para> &package.authentication.auth-radius.intro; </sect1> <!-- 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 sgml-default-dtd-file:"../../../manual.ced" 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 -->
http://cvs.php.net/viewvc.cgi/peardoc/ja/pecl/spplus.xml?view=markup&rev=1.1 Index: peardoc/ja/pecl/spplus.xml +++ peardoc/ja/pecl/spplus.xml <?xml version="1.0" encoding="utf-8" ?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.6 Maintainer: takagi Status: ready --> <!-- Author: Chaillan Nicolas <nicos@php.net> --> <reference id="pecl.spplus"> <title>SPPLUS 決æ¸ã·ã¹ãã </title> <titleabbrev>SPPLUS</titleabbrev> <partintro> <sect1 id="pecl.spplus.partintro"> <title>å°å ¥</title> <sect2 id="pecl.spplus.intro"> <title>SPPLUS 決æ¸ã·ã¹ãã ã«ã¤ãã¦</title> <para> ãã®ã¢ã¸ã¥ã¼ã«ã«ãããCaisse d'Epargne (ãã©ã³ã¹ã®éè¡) ã® SPPLUS 決æ¸ã·ã¹ãã ã使ç¨ã§ããããã«ãªãã¾ãã </para> <note> <para> spplus ã使ç¨ããã«ã¯ãæ°ãã kit_php ãå¿ è¦ã¨ãªãã¾ãã ãããè¦ã¤ãããªãå ´åã¯ããé£çµ¡ãã ããã </para> <para> ãã®ã¢ã¸ã¥ã¼ã«ã¯ã(ç¾æç¹ã§ã¯) *nix ç³»ã®ãªãã¬ã¼ãã£ã³ã°ã·ã¹ãã ä¸ã§ããåä½ãã¾ããã </para> </note> </sect2> <sect2 id="pecl.spplus.install"> <title>ã¤ã³ã¹ãã¼ã«</title> <para> æã£åãæ©ãã¤ã³ã¹ãã¼ã«ã¡ã¢ <itemizedlist> <listitem> <simpara> PHP 4.1.0 以éããã³ SPPLUS v.3 ãå¿ è¦ã§ãã </simpara> </listitem> <listitem> <simpara> ã³ã³ã½ã¼ã«ã§ 'pear install spplus' ã¨å ¥åãã¾ãã </simpara> </listitem> </itemizedlist> </para> </sect2> <sect2 id="pecl.spplus.configuration"> <title>è¨å®</title> <para> è¨å®ã®è©³ç´°ã«ã¤ãã¦ã¯ãkit_php ã®ã½ã¼ã¹é å¸ç©ã«å«ã¾ãã README ãã¡ã¤ã«ãåç §ãã ããã </para> </sect2> <sect2 id="pecl.spplus.contact"> <title>é£çµ¡å </title> <para> è¿ãå°æ¥ãããã«æ©è½ã追å ããäºå®ã§ãã </para> <para> ä½ãè¨ããããã¨ãããå ´åã ãããã¯ãã°ä¿®æ£ãæ©è½è¿½å ããã¦ãããããªã©ã§éçºãæä¼ã£ã¦ãã ããå ´å㯠nicos ãã¦ã«ã¡ã¼ã«ãéã£ã¦ãã ãããã¡ã¼ã«ã¢ãã¬ã¹ã¯ <ulink url="mailto:nicos@php.net">nicos@php.net</ulink> ã§ãã </para> </sect2> </sect1> </partintro> <refentry id="pecl.spplus.spplus-calcul_hmac"> <refnamediv> <refname>calcul_hmac</refname> <refpurpose>hmac ãåå¾ãã (å «ã¤ã®å¼æ°ãå¿ è¦)</refpurpose> </refnamediv> <refsect1> <title>説æ</title> <funcsynopsis> <funcprototype> <funcdef>string <function>calcul_hmac</function></funcdef> <paramdef>string <parameter>clent</parameter></paramdef> <paramdef>string <parameter>siretcode</parameter></paramdef> <paramdef>string <parameter>price</parameter></paramdef> <paramdef>string <parameter>reference</parameter></paramdef> <paramdef>string <parameter>validity</parameter></paramdef> <paramdef>string <parameter>taxation</parameter></paramdef> <paramdef>string <parameter>devise</parameter></paramdef> <paramdef>string <parameter>language</parameter></paramdef> </funcprototype> </funcsynopsis> <para> HMAC ãã¼ãçæãã¾ã (弿°ã¯å «ã¤ã®ã¿ã§ã)ã </para> </refsect1> </refentry> <refentry id="pecl.spplus.spplus-calculhmac"> <refnamediv> <refname>calculhmac</refname> <refpurpose>hmac ãã¼ãåå¾ãã (äºã¤ã®å¼æ°ãå¿ è¦)</refpurpose> </refnamediv> <refsect1> <title>説æ</title> <funcsynopsis> <funcprototype> <funcdef>string <function>calculhmac</function></funcdef> <paramdef>string <parameter>clent</parameter></paramdef> <paramdef>string <parameter>data</parameter></paramdef> </funcprototype> </funcsynopsis> <para> HMAC ãã¼ãçæãã¾ã (弿°ã¯äºã¤ã®ã¿ã§ã)ã </para> </refsect1> </refentry> <refentry id="pecl.spplus.spplus-nthmac"> <refnamediv> <refname>nthmac</refname> <refpurpose>nthmac ãã¼ãåå¾ãã (äºã¤ã®å¼æ°ãå¿ è¦)</refpurpose> </refnamediv> <refsect1> <title>説æ</title> <funcsynopsis> <funcprototype> <funcdef>string <function>nthmac</function></funcdef> <paramdef>string <parameter>clent</parameter></paramdef> <paramdef>string <parameter>data</parameter></paramdef> </funcprototype> </funcsynopsis> <para> NTHMAC ãã¼ãçæãã¾ã (弿°ã¯äºã¤ã®ã¿ã§ã)ã </para> </refsect1> </refentry> <refentry id="pecl.spplus.spplus-signeurlpaiement"> <refnamediv> <refname>signeurlpaiement</refname> <refpurpose>æ±ºæ¸ url ãåå¾ãã (äºã¤ã®å¼æ°ãå¿ è¦)</refpurpose> </refnamediv> <refsect1> <title>説æ</title> <funcsynopsis> <funcprototype> <funcdef>string <function>signeurlpaiement</function></funcdef> <paramdef>string <parameter>clent</parameter></paramdef> <paramdef>string <parameter>data</parameter></paramdef> </funcprototype> </funcsynopsis> <para> æ±ºæ¸ url ãåå¾ãã¾ã (äºã¤ã®å¼æ°ãå¿ è¦ã§ã)ã </para> </refsect1> </refentry> </reference> <!-- 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 sgml-default-dtd-file:"../../manual.ced" 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 --> http://cvs.php.net/viewvc.cgi/peardoc/ja/pecl/satellite.xml?view=markup&rev=1.1 Index: peardoc/ja/pecl/satellite.xml +++ peardoc/ja/pecl/satellite.xml <?xml version="1.0" encoding="utf-8" ?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: takagi Status: ready --> <!-- Author: David Eriksson <eriksson@php.net> --> <reference id="pecl.satellite"> <title>Satellite CORBA ã¯ã©ã¤ã¢ã³ãæ¡å¼µ</title> <titleabbrev>Satellite</titleabbrev> <partintro> &warn.experimental; <para> Satellite ã¯éæ¨å¥¨ã§ããUniverse (<ulink url="&url.corba.universe;">&url.corba.universe;</ulink>) ã使ç¨ããSatellite ã¯ä½¿ç¨ããªããã¨ãæ¨å¥¨ãã¾ãã </para> <para> Satellite æ¡å¼µã¯ãCORBA ãªãã¸ã§ã¯ãã«ã¢ã¯ã»ã¹ããããã«ä½¿ç¨ããã¾ãã php.ini ã® idl_directory= ã¨ã³ããªã«ã使ç¨ããå ¨ã¦ã® IDL ãã¡ã¤ã«ãä¿åããå ´æã®ãã¹ãè¨å®ããå¿ è¦ãããã¾ãã </para> <para> Satellite ã®ã¤ã³ã¹ãã¼ã«ã«ã¤ãã¦ã®è©³ç´°ã¯ãSatellite ã® README ãã¡ã¤ã«ãåç §ãã ããã </para> </partintro> <refentry id="pecl.satellite.orbitobject"> <refnamediv> <refname>OrbitObject</refname> <refpurpose>CORBA ãªãã¸ã§ã¯ãã«ã¢ã¯ã»ã¹ãã</refpurpose> </refnamediv> <refsect1> <title>説æ</title> <funcsynopsis> <funcprototype> <funcdef>new <function>OrbitObject</function></funcdef> <paramdef>string <parameter>ior</parameter></paramdef> </funcprototype> </funcsynopsis> &warn.experimental.func; <para> ãã®ã¯ã©ã¹ã¯ CORBA ãªãã¸ã§ã¯ãã¸ã®ã¢ã¯ã»ã¹æ©è½ãæä¾ãã¾ãã ãã©ã¡ã¼ã¿ <parameter>ior</parameter> ã«ã¯ã ãªã¢ã¼ããªãã¸ã§ã¯ããæã IORï¼Interoperable Object Referenceï¼ ãæååã§æå®ãã¾ãã </para> <para> <example> <title>IDL ãã¡ã¤ã«ã®ä¾</title> <programlisting role="idl"> <![CDATA[ interface MyInterface { void SetInfo (string info); string GetInfo(); attribute int value; } ]]> </programlisting> </example> </para> <para> <example> <title>MyInterface ã«ã¢ã¯ã»ã¹ããããã® PHP ã³ã¼ã</title> <programlisting role="php"> <![CDATA[ <?php $obj = new OrbitObject ($ior); $obj->SetInfo ("A 2GooD object"); echo $obj->GetInfo(); $obj->value = 42; echo $obj->value; ?> ]]> </programlisting> </example> </para> </refsect1> </refentry> <refentry id="pecl.satellite.orbitenum"> <refnamediv> <refname>OrbitEnum</refname> <refpurpose>CORBA enums ã使ç¨ãã</refpurpose> </refnamediv> <refsect1> <title>説æ</title> <funcsynopsis> <funcprototype> <funcdef>new <function>OrbitEnum</function></funcdef> <paramdef>string <parameter>id</parameter></paramdef> </funcprototype> </funcsynopsis> &warn.experimental.func; <para> ãã®ã¯ã©ã¹ã¯ããã©ã¡ã¼ã¿ <parameter>id</parameter> ã§æå®ããé£çªã表ãã¾ãã ãã©ã¡ã¼ã¿ <parameter>id</parameter> ã¯ã é£çªã®ååï¼ä¾: "MyEnum"ï¼ããã㯠å®å ¨ãªã¬ãã¸ããªIDï¼ä¾:"IDL:MyEnum:1.0"ï¼ã®ã©ã¡ããã§ãã </para> <para> <example> <title>IDL ãã¡ã¤ã«ã®ä¾</title> <programlisting role="idl"> <![CDATA[ enum MyEnum { a,b,c,d,e }; ]]> </programlisting> </example> </para> <para> <example> <title>MyEnum ã«ã¢ã¯ã»ã¹ããããã® PHP ã³ã¼ã</title> <programlisting role="php"> <![CDATA[ <?php $enum = new OrbitEnum ("MyEnum"); echo $enum->a; /* 0 ãåºå */ echo $enum->c; /* 2 ãåºå */ echo $enum->e; /* 4 ãåºå */ ?> ]]> </programlisting> </example> </para> </refsect1> </refentry> <refentry id="pecl.satellite.orbitstruct"> <refnamediv> <refname>OrbitStruct</refname> <refpurpose>CORBA æ§é ä½ã使ç¨ãã</refpurpose> </refnamediv> <refsect1> <title>説æ</title> <funcsynopsis> <funcprototype> <funcdef>new <function>OrbitStruct</function></funcdef> <paramdef>string <parameter>id</parameter></paramdef> </funcprototype> </funcsynopsis> &warn.experimental.func; <para> ãã®ã¯ã©ã¹ã¯ããã©ã¡ã¼ã¿ <parameter>id</parameter> ã§æå®ããæ§é ä½ã表ãã¾ãã ãã©ã¡ã¼ã¿ <parameter>id</parameter> ã¯ã æ§é ä½ã®åå (ä¾: "MyStruct") ã¾ãã¯å®å ¨ãªã¬ãã¸ã㪠ID (ä¾: "IDL:MyStruct:1.0") ã®ã©ã¡ããã§ãã </para> <para> <example> <title>IDL ãã¡ã¤ã«ã®ä¾</title> <programlisting role="idl"> <![CDATA[ struct MyStruct { short shortvalue; string stringvalue; }; interface SomeInterface { void SetValues (MyStruct values); MyStruct GetValues(); } ]]> </programlisting> </example> </para> <para> <example> <title>MyStruct ã«ã¢ã¯ã»ã¹ãã PHP ã³ã¼ã</title> <programlisting role="php"> <![CDATA[ <?php $obj = new OrbitObject ($ior); $initial_values = new OrbitStruct ("IDL:MyStruct:1.0"); $initial_values->shortvalue = 42; $initial_values->stringvalue = "HGTTG"; $obj->SetValues ($initial_values); $values = $obj->GetValues(); echo $values->shortvalue; echo $values->stringvalue; ?> ]]> </programlisting> </example> </para> </refsect1> </refentry> <refentry id="pecl.satellite.satellite-caught-exception"> <refnamediv> <refname>satellite_caught_exception</refname> <refpurpose> ä¾å¤ãåã®é¢æ°ãããã£ããããããã©ããã調ã¹ã </refpurpose> </refnamediv> <refsect1> <title>説æ</title> <funcsynopsis> <funcprototype> <funcdef>bool <function>satellite_caught_exception</function> </funcdef> <paramdef></paramdef> </funcprototype> </funcsynopsis> &warn.experimental.func; <para> ãã®é¢æ°ã¯ãä¾å¤ããã£ãããããå ´åã« &true; ãè¿ãã¾ãã </para> <para> <example> <title>IDL ãã¡ã¤ã«ã®ä¾</title> <programlisting role="idl"> <![CDATA[ /* ++?????++ Out of Cheese Error. Redo From Start. */ exception OutOfCheeseError { int parameter; } interface AnotherInterface { void AskWhy() raises (OutOfCheeseError); } ]]> </programlisting> </example> </para> <para> <example> <title>CORBA ä¾å¤ãå¦çãã PHP ã³ã¼ã</title> <programlisting role="php"> <![CDATA[ <?php $obj = new OrbitObject ($ior); $obj->AskWhy(); if (satellite_caught_exception()) { if ("IDL:OutOfCheeseError:1.0" == satellite_exception_id()) { $exception = satellite_exception_value(); echo $exception->parameter; } } ?> ]]> </programlisting> </example> </para> </refsect1> </refentry> <refentry id="pecl.satellite.satellite-exception-id"> <refnamediv> <refname>satellite_exception_id</refname> <refpurpose>ç´è¿ã®ä¾å¤ã«é¢ããã¬ãã¸ã㪠ID ãåå¾ãã</refpurpose> </refnamediv> <refsect1> <title>説æ</title> <funcsynopsis> <funcprototype> <funcdef>string <function>satellite_exception_id</function></funcdef> <paramdef></paramdef> </funcprototype> </funcsynopsis> &warn.experimental.func; <para> ã¬ãã¸ããªIDæååãè¿ãã¾ã (ä¾:"IDL:MyException:1.0")ã ä¾ã¨ãã¦ã¯ã<function>satellite_caught_exception</function> ã®ä½¿ç¨ä¾ãåç §ãã ããã </para> </refsect1> </refentry> <refentry id="pecl.satellite.satellite-exception-value"> <refnamediv> <refname>satellite_exception_value</refname> <refpurpose> ç´è¿ã®ä¾å¤ã«é¢ããä¾å¤æ§é ä½ãå¾ã </refpurpose> </refnamediv> <refsect1> <title>説æ</title> <funcsynopsis> <funcprototype> <funcdef>OrbitStruct <function>satellite_exception_value</function> </funcdef> <paramdef></paramdef> </funcprototype> </funcsynopsis> &warn.experimental.func; <para> ä¾å¤æ§é ä½ãè¿ãã¾ããä¾ã«ã¤ãã¦ã¯ã <function>satellite_caught_exception</function> ã®ä½¿ç¨ä¾ãåç §ãã ããã </para> </refsect1> </refentry> <refentry id='pecl.satellite.satellite-object-to-string'> <refnamediv> <refname>satellite_object_to_string</refname> <refpurpose> ãªãã¸ã§ã¯ããæåå表ç¾ã«å¤æãã </refpurpose> </refnamediv> <refsect1> <title>説æ</title> <funcsynopsis> <funcprototype> <funcdef>string <function>satellite_object_to_string</function></funcdef> <paramdef>object <parameter>obj</parameter></paramdef> </funcprototype> </funcsynopsis> <para> ãªãã¸ã§ã¯ããããã®æåå表ç¾ï¼IORï¼ã«å¤æãã¾ãã </para> </refsect1> </refentry> <refentry id='pecl.satellite.satellite-load-idl'> <refnamediv> <refname>satellite_load_idl</refname> <refpurpose> ã¿ã¤ãããã¼ã¸ã£ã« IDL ãã¡ã¤ã«ã®ãã¼ããæç¤ºãã </refpurpose> </refnamediv> <refsect1> <title>説æ</title> <funcsynopsis> <funcprototype> <funcdef>bool <function>satellite_load_idl</function></funcdef> <paramdef>string <parameter>file</parameter></paramdef> </funcprototype> </funcsynopsis> <para> IDL ãã¡ã¤ã«ã Satellite ã«ãã¼ããã¾ãã </para> </refsect1> </refentry> <refentry id='pecl.satellite.satellite-get-repository-id'> <refnamediv> <refname>satellite_get_repository_id</refname> <refpurpose> æªå®è£ </refpurpose> </refnamediv> <refsect1> <title>説æ</title> <funcsynopsis> <funcprototype> <funcdef>int <function>satellite_get_repository_id</function></funcdef> <paramdef>object <parameter>obj</parameter></paramdef> </funcprototype> </funcsynopsis> <para> å®è£ ããã¦ãã¾ããã </para> </refsect1> </refentry> </reference> <!-- 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 indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../manual.ced" 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 --> http://cvs.php.net/viewvc.cgi/peardoc/ja/package/authentication/auth-radius/intro.xml?view=markup&rev=1.1 Index: peardoc/ja/package/authentication/auth-radius/intro.xml +++ peardoc/ja/package/authentication/auth-radius/intro.xml <?xml version="1.0" encoding="utf-8" ?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: takagi Status: ready --> <refentry id="packages.authentication.auth-radius.intro"> <refnamediv> <refname>å°å ¥</refname> <refpurpose> Auth_RADIUS ã®åºæ¬çãªä½¿ç¨æ³ </refpurpose> </refnamediv> <refsect1> <title>Auth_RADIUS ã¨ã¯?</title> <para> Auth_RADIUS ã¯ãradius æ¡å¼µã¢ã¸ã¥ã¼ã«ã® php ã©ããã¼ã§ãã RADIUS ãããã³ã«ã«ãã¾ããªãã¿ããªãå ´åã¯ã <ulink url="http://ja.wikipedia.org/wiki/RADIUS">Wikipedia ã®è¨äº</ulink> ãåç §ããã¨ããã§ãããã </para> <para> Auth_RADIUS ã¯ãradius æ¡å¼µã¢ã¸ã¥ã¼ã«ã«çµã¿è¾¼ã¾ããæ©è½ã使ç¨ããããã®ãã®ã§ãã Auth_RADIUS ã«ã¤ãã¦çè§£ããã«ã¯ãã¾ã radius æ¡å¼µã¢ã¸ã¥ã¼ã«ã®è¨è¨ã«ã¤ãã¦çè§£ãã¦ããå¿ è¦ãããã§ãããã radius æ¡å¼µã¢ã¸ã¥ã¼ã«ã®ããã¥ã¡ã³ãã¯ãPHP ããã¥ã¢ã«ã® <ulink url="&url.php.manual;ja/ref.radius.php">&url.php.manual;ja/ref.radius.php</ulink> ã«ããã¾ãã </para> <para> RADIUS ã§ä½¿ç¨ã§ãããã¾ãã¾ãªèªè¨¼æ¹å¼ã«å¯¾å¿ããã¯ã©ã¹ç¾¤ãç¨æããã¦ãã¾ãã CHAP-MD5 ããã㯠MS-CHAP ã«ããèªè¨¼ã使ç¨ããå ´åã¯ã <ulink url="&url.pear.package;Crypt_CHAP">Crypt_CHAP</ulink> ããã±ã¼ã¸ãå¿ è¦ã¨ãªãã¾ããããã«ãMS-CHAP èªè¨¼ã使ç¨ããå ´åã¯ã mhash ããã³ mcrypt æ¡å¼µã¢ã¸ã¥ã¼ã«ã php.ini ã§æå¹ã«ãããã ãããã¯éçã«çµã¿è¾¼ãã§ããå¿ è¦ãããã¾ãã </para> <para> ææ°ã® radius æ¡å¼µã¢ã¸ã¥ã¼ã« (ãã¼ã¸ã§ã³ 1.2 以é) ã使ç¨ããå ´åã¯ã mcrypt æ¡å¼µã¢ã¸ã¥ã¼ã«ãæå¹ã«ããå¿ è¦ããªããã¨ã«æ³¨æãã¾ãããã </para> </refsect1> <refsect1 id="packages.authentication.auth-radius.intro.how"> <title>Auth_RADIUS ã®ä½¿ç¨æ³ã¯?</title> <para> åºæ¬çãªä½¿ç¨ä¾ã以ä¸ã«ç¤ºãã¾ãã ããã¯ãããã±ã¼ã¸ã«ä»å±ãããµã³ãã«ãã®ãã®ã§ãã </para> <para> <programlisting role="php"> <![CDATA[ <?php /* vim: set expandtab tabstop=4 shiftwidth=4: */ /* Copyright (c) 2003, Michael Bretterklieber <michael@bretterklieber.com> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. The names of the authors may not be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. This code cannot simply be copied and put under the GNU Public License or any other GPL-like (LGPL, GPL2) License. $Id: intro.xml,v 1.1 2007/01/05 12:23:57 takagi Exp $ */ require_once 'Auth/RADIUS.php'; require_once 'Crypt/CHAP.php'; //$type = 'PAP'; //$type = 'CHAP_MD5'; $type = 'MSCHAPv1'; //$type = 'MSCHAPv2'; $username = 'sepp'; $password = 'sepp'; $classname = 'Auth_RADIUS_' . $type; $rauth = new $classname($username, $password); $rauth->addServer('localhost', 0, 'testing123'); $rauth->setConfigfile('/etc/radius.conf'); $rauth->username = $username; switch($type) { case 'CHAP_MD5': case 'MSCHAPv1': $classname = $type == 'MSCHAPv1' ? 'Crypt_CHAP_MSv1' : 'Crypt_CHAP_MD5'; $crpt = new $classname; $crpt->password = $password; $rauth->challenge = $crpt->challenge; $rauth->chapid = $crpt->chapid; $rauth->response = $crpt->challengeResponse(); $rauth->flags = 1; // If you must use deprecated and weak LAN-Manager-Responses use this: // $rauth->lmResponse = $crpt->lmChallengeResponse(); // $rauth->flags = 0; break; case 'MSCHAPv2': $crpt = new Crypt_CHAP_MSv2; $crpt->username = $username; $crpt->password = $password; $rauth->challenge = $crpt->authChallenge; $rauth->peerChallenge = $crpt->peerChallenge; $rauth->chapid = $crpt->chapid; $rauth->response = $crpt->challengeResponse(); break; default: $rauth->password = $password; break; } if (!$rauth->start()) { printf("Radius start: %s<br>\n", $rauth->getError()); exit; } $result = $rauth->send(); if (PEAR::isError($result)) { printf("Radius send failed: %s<br>\n", $result->getMessage()); exit; } else if ($result === true) { printf("Radius Auth succeeded<br>\n"); } else { printf("Radius Auth rejected<br>\n"); } // get attributes, even if auth failed if (!$rauth->getAttributes()) { printf("Radius getAttributes: %s<br>\n", $rauth->getError()); } else { $rauth->dumpAttributes(); } $rauth->close(); ?> ]]> </programlisting> </para> <para> ããã²ã¨ã¤ã®ä¾ã§ãã </para> <para> <programlisting role="php"> <![CDATA[ <?php /* vim: set expandtab tabstop=4 shiftwidth=4: */ /* Copyright (c) 2003, Michael Bretterklieber <michael@bretterklieber.com> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. The names of the authors may not be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. This code cannot simply be copied and put under the GNU Public License or any other GPL-like (LGPL, GPL2) License. $Id: intro.xml,v 1.1 2007/01/05 12:23:57 takagi Exp $ */ require_once 'Auth/RADIUS.php'; require_once 'Crypt/CHAP.php'; $username = 'sepp'; $starttime = time(); $racct = new Auth_RADIUS_Acct_Start; $racct->addServer('localhost', 0, 'testing123'); $racct->username = $username; // RADIUS_AUTH_RADIUS => authenticated via Radius // RADIUS_AUTH_LOCAL => authenicated local // RADIUS_AUTH_REMOTE => authenticated remote $racct->authentic = RADIUS_AUTH_LOCAL; $status = $racct->start(); if(PEAR::isError($status)) { printf("Radius start: %s<br>\n", $status->getMessage()); exit; } // you can put any additional attributes here // $racct->putAttribute(RADIUS_ACCT_INPUT_PACKETS, 45236); // $racct->putAttribute(RADIUS_ACCT_OUTPUT_PACKETS, 1212); $result = $racct->send(); if (PEAR::isError($result)) { printf("Radius send failed: %s<br>\n", $result->getMessage()); exit; } else if ($result === true) { printf("Radius Acounting succeeded<br>\n"); } else { printf("Radius Acounting rejected<br>\n"); } $racct->close(); // Wait a bit, that we can put the session-time sleep(2); // send an accounting update $racct = new Auth_RADIUS_Acct_Update; $racct->addServer('localhost', 0, 'testing123'); $racct->username = $username; $racct->session_time = time() - $starttime; $status = $racct->start(); if(PEAR::isError($status)) { printf("Radius start: %s<br>\n", $status->getMessage()); exit; } $result = $racct->send(); if (PEAR::isError($result)) { printf("Radius send failed: %s<br>\n", $result->getMessage()); exit; } else if ($result === true) { printf("Radius Acounting succeeded<br>\n"); } else { printf("Radius Acounting rejected<br>\n"); } // Wait a bit, that we can put the session-time sleep(2); // send the stop $racct = new Auth_RADIUS_Acct_Stop; $racct->addServer('localhost', 0, 'testing123'); $racct->username = $username; $racct->session_time = time() - $starttime; $status = $racct->start(); if(PEAR::isError($status)) { printf("Radius start: %s<br>\n", $status->getMessage()); exit; } // you can put any additional attributes here // $racct->putAttribute(RADIUS_ACCT_TERMINATE_CAUSE, RADIUS_TERM_SESSION_TIMEOUT); $result = $racct->send(); if (PEAR::isError($result)) { printf("Radius send failed: %s<br>\n", $result->getMessage()); exit; } else if ($result === true) { printf("Radius Acounting succeeded<br>\n"); } else { printf("Radius Acounting rejected<br>\n"); } $racct->close(); ?> ]]> </programlisting> </para> </refsect1> </refentry> <!-- 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 sgml-default-dtd-file:"../../../../manual.ced" 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 --> http://cvs.php.net/viewvc.cgi/peardoc/ja/package/authentication/auth-radius.xml?view=markup&rev=1.1 Index: peardoc/ja/package/authentication/auth-radius.xml +++ peardoc/ja/package/authentication/auth-radius.xml <?xml version="1.0" encoding="utf-8" ?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: takagi Status: ready --> <sect1 id="package.authentication.auth-radius"> <title>Auth_RADIUS</title> <para> RADIUS ã®ã¯ã©ã¤ã¢ã³ãå®è£ ã§ãããã®ããã±ã¼ã¸ã«ã¯ <ulink url="http://www.pecl.php/radius">RADIUS PECL æ¡å¼µã¢ã¸ã¥ã¼ã«</ulink> ã®ã©ããã¼ã¯ã©ã¹ãå«ã¾ãã¾ãã RADIUS Authentication (RFC2865) ããã³ RADIUS Accounting (RFC2866) ã®æ©è½ãæä¾ãã¾ãã </para> &package.authentication.auth-radius.intro; </sect1> <!-- 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 sgml-default-dtd-file:"../../../manual.ced" 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 -->