1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84
|
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
-
- This file is part of the OpenLink Software Virtuoso Open-Source (VOS)
- project.
-
- Copyright (C) 1998-2018 OpenLink Software
-
- This project is free software; you can redistribute it and/or modify it
- under the terms of the GNU General Public License as published by the
- Free Software Foundation; only version 2 of the License, dated June 1991.
-
- This program is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received a copy of the GNU General Public License along
- with this program; if not, write to the Free Software Foundation, Inc.,
- 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-
-->
<refentry id="fn_user_set_password">
<refmeta>
<refentrytitle>user_set_password</refentrytitle>
<refmiscinfo>admin</refmiscinfo>
</refmeta>
<refnamediv>
<refname>user_set_password</refname>
<refpurpose>Allows dba to change a user's password.</refpurpose>
</refnamediv>
<refsynopsisdiv>
<funcsynopsis id="fsyn_user_set_password">
<funcprototype id="fproto_user_set_password">
<funcdef><function>user_set_password</function></funcdef>
<paramdef>in <parameter>user_name</parameter> string</paramdef>
<paramdef>in <parameter>new_password</parameter> string</paramdef>
</funcprototype>
</funcsynopsis>
</refsynopsisdiv>
<refsect1 id="desc"><title>Description</title>
<para>Explicitly sets a new password for the SQL account
<parameter>user_name</parameter> to <parameter>new_password</parameter>.
Only users in the dba group may execute this function. It allows the
database administrator to reset lost passwords of SQL accounts.
The new password will be set without further confirmation, so
the DBA must be sure of the new password.</para>
</refsect1>
<refsect1 id="params"><title>Parameters</title>
<refsect2><title>user_name</title>
<para>SQL user account name to change.</para>
</refsect2>
<refsect2><title>new_password</title>
<para>New password for the user as plain text.</para>
</refsect2>
</refsect1>
<refsect1 id="errors_user_set_password"><title>Errors</title>
<para><link linkend="datatypeerror">Parameter data type checking errors</link></para>
<table><title>Errors signalled by <function>user_set_password()</function></title>
<tgroup cols="3">
<thead><row><entry>SQL Code</entry><entry>Error Message</entry>
<entry>Virtuoso Code</entry></row></thead>
<tbody>
<row>
<entry><errorcode>42000</errorcode></entry>
<entry>Function user_set_password restricted to dba group</entry>
<entry>SR285</entry>
</row>
<row>
<entry><errorcode>42000</errorcode></entry>
<entry>The user <user_name> does not exist</entry>
<entry>SR286</entry>
</row>
<row>
<entry><errorcode>42000</errorcode></entry>
<entry>The new password for <user_name> cannot be empty</entry>
<entry>SR287</entry>
</row>
</tbody>
</tgroup>
</table>
</refsect1>
</refentry>
|