RemoteAdmin:admin exists user

From OpenSimulator

Revision as of 13:08, 9 December 2011 by Michelle Argus (Talk | contribs)

Jump to: navigation, search

admin_exists_user remotely allows to check if a certain user account exists


Contents

Enabling admin_exists_user

If not all functions are enabled, use admin_exists_user to enable the function in the [RemoteAdmin] section

enabled_methods = admin_exists_user,...


Parameters

Required Parameters

These parameters are required

parameter Description Values
user_firstname first name of user
user_lastname last name of user


Optional Parameters

No optional parameters.


Returned Parameters

Returned Parameters

These parameters are returned by Remote Admin

parameter Description Values
success true when successfull true, false
user_firstname first name of user
user_lastname last name of user
lastlogin timestamp of last user login

Error messages

No error messages.


Notes

Example

PHP

<?php
 
// Including the RemoteAdmin PHP class.
include('RemoteAdmin.php');
 
// Instantiate the class with parameters identical to the Python example above
$myRemoteAdmin = new RemoteAdmin('127.0.0.1', 9000, 'secret');
 
// Invoke admin_exists_user (multiple parameters)
$parameters = array('user_firstname' => 'John', 'user_lastname' => 'Doe');
$myRemoteAdmin->SendCommand('admin_exists_user', $parameters);
?>
Personal tools
General
About This Wiki