mirror of
https://github.com/php/doc-ja.git
synced 2026-04-25 00:48:05 +02:00
b1aa3f952c
git-svn-id: https://svn.php.net/repository/phpdoc/ja/trunk@189160 c90b9560-bf6c-de11-be94-00142212c4b1
68 lines
2.0 KiB
XML
68 lines
2.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision: 1.2 $ -->
|
|
<!-- EN-Revision: 1.4 Maintainer: shimooka Status: ready -->
|
|
<!-- Generated by xml_proto.php v2.1. Found in /scripts directory of phpdoc. -->
|
|
<refentry id="function.ssh2-auth-none">
|
|
<refnamediv>
|
|
<refname>ssh2_auth_none</refname>
|
|
<refpurpose>
|
|
"none" として認証する
|
|
</refpurpose>
|
|
</refnamediv>
|
|
<refsect1>
|
|
<title>説明</title>
|
|
<methodsynopsis>
|
|
<type>mixed</type><methodname>ssh2_auth_none</methodname>
|
|
<methodparam><type>resource</type><parameter>session</parameter></methodparam>
|
|
<methodparam><type>string</type><parameter>username</parameter></methodparam>
|
|
</methodsynopsis>
|
|
|
|
<simpara>
|
|
通常失敗する(そしてそうあるべき)"none" 認証を試みます。
|
|
失敗の一環として、サーバは可能な認証メソッドの一覧を返します。
|
|
もしサーバが <parameter>username</parameter> に対する認証メソッドとして
|
|
"none" を受け入れる場合、この関数は単純に &true; を返します。
|
|
</simpara>
|
|
|
|
<example>
|
|
<title>認証メソッドの一覧を取得するために
|
|
<function>ssh2_auth_none</function> を使用する</title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
$connection = ssh2_connect('shell.example.com', 22);
|
|
|
|
$auth_methods = ssh2_auth_none($connection, 'user');
|
|
|
|
if (in_array('password', $auth_methods)) {
|
|
echo "Server supports password based authentication\n";
|
|
}
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
</example>
|
|
|
|
</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
|
|
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
|
|
-->
|