ARSperl

 view release on metacpan or  search on metacpan

html/manual/ars_SetImpersonatedUser.html  view on Meta::CPAN

<HTML>
<HEAD>
<TITLE>ARSperl Manual - ars_SetServerInfo</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF">

   <H2><CODE>ars_SetImpersonatedUser(ctrl,loginName)</CODE></H2>

      This function enables an API program running under an administrator login
      to perform certain operations as a specific user.

      <P><CODE>loginName</CODE> is the login name of the impersonated user.
      Use "" (i.e. the empty string) to switch back to the admin user.

      <DL>
         <DT><B>On success</B><DD>
		   Returns 1
         <DT><B>On failure</B><DD>
           Returns 0
      </DL>

      <P>Example:

      <PRE>
	      ars_SetImpersonatedUser($ctrl,"TestUser") || die "$ars_errstr";
      </PRE>

<P>
<I>ars_SetImpersonatedUser was introduced in version 1.90 of ARSperl</I>

<P>
<HR WIDTH="30%">
<P>
<A HREF="toc.html"><IMG ALT="&lt;--" SRC="arrow.gif" ALIGN=CENTER> Table of Contents </A>
<p>
<address>
Last changes to this page 22th February 2007 by tstapff@users.sourceforge.net<BR>
&#169; J.C.Murphy, J.W.Murphy, T.Stapff 2007 arsperl@arsperl.org
</address>
</BODY>
</HTML>



( run in 1.598 second using v1.01-cache-2.11-cpan-39bf76dae61 )