2004-12-25 01:03:18 +00:00
|
|
|
<?xml version='1.0' encoding='iso-8859-1'?>
|
2008-12-16 05:56:46 +00:00
|
|
|
<!-- $Revision: 1.8 $ -->
|
2007-06-20 22:25:43 +00:00
|
|
|
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.ssh2-auth-none">
|
2007-06-15 00:16:44 +00:00
|
|
|
<refnamediv>
|
|
|
|
<refname>ssh2_auth_none</refname>
|
|
|
|
<refpurpose>Authenticate as "none"</refpurpose>
|
|
|
|
</refnamediv>
|
2007-06-15 00:16:47 +00:00
|
|
|
|
|
|
|
<refsect1 role="description">
|
|
|
|
&reftitle.description;
|
2007-06-15 00:16:44 +00:00
|
|
|
<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>
|
2007-06-15 00:16:47 +00:00
|
|
|
<para>
|
2007-06-15 00:16:44 +00:00
|
|
|
Attempt "none" authentication which usually will (and should) fail.
|
|
|
|
As part of the failure, this function will return an array of accepted
|
2007-06-15 00:16:47 +00:00
|
|
|
authentication methods.
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
|
|
|
|
<refsect1 role="parameters">
|
|
|
|
&reftitle.parameters;
|
|
|
|
<para>
|
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
|
|
|
<term><parameter>session</parameter></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
An SSH connection link identifier, obtained from a call to
|
|
|
|
<function>ssh2_connect</function>.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term><parameter>username</parameter></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Remote user name.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
2004-12-27 23:47:00 +00:00
|
|
|
|
2007-06-15 00:16:47 +00:00
|
|
|
<refsect1 role="returnvalues">
|
|
|
|
&reftitle.returnvalues;
|
|
|
|
<para>
|
2008-12-16 05:56:46 +00:00
|
|
|
Returns &true; if the server does accept "none" as an authentication
|
2007-06-15 00:16:47 +00:00
|
|
|
method, or an array of accepted authentication methods on failure.
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
|
|
|
|
<refsect1 role="examples">
|
|
|
|
&reftitle.examples;
|
|
|
|
<para>
|
|
|
|
<example>
|
2008-12-16 05:56:46 +00:00
|
|
|
<title>Retrieving a list of authentication methods</title>
|
2007-06-15 00:16:47 +00:00
|
|
|
<programlisting role="php">
|
2004-12-27 23:47:00 +00:00
|
|
|
<![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";
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
]]>
|
2007-06-15 00:16:47 +00:00
|
|
|
</programlisting>
|
|
|
|
</example>
|
|
|
|
</para>
|
2007-06-15 00:16:44 +00:00
|
|
|
</refsect1>
|
2007-06-15 00:16:47 +00:00
|
|
|
|
2007-06-15 00:16:44 +00:00
|
|
|
</refentry>
|
2004-12-25 01:03:18 +00:00
|
|
|
|
|
|
|
<!-- 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
|
|
|
|
-->
|