RemoteAdmin:admin exists user

From OpenSimulator

Revision as of 16:12, 3 April 2013 by Justincc (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 This is a Unix timestamp. This was buggy before OpenSimulator git master f064075 (post 0.7.5) where the timestamp was returned in a timestamp field in lastlogin instead. If the user did not exist, this value is 0.

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);
?>

RemoteAdmin RemoteAdmin:Commands

Personal tools
General
About This Wiki