Themabewertung:
  • 0 Bewertung(en) - 0 im Durchschnitt
  • 1
  • 2
  • 3
  • 4
  • 5
RemoteAdmin.php
#3
Hallo,
die ich versuche die folgende Software zum laufen zu bringen:
opensim-0.8.0.3.zip:
http://opensimulator.org/wiki/Download
httpd-2.4.10-win64-VC11.zip:
https://www.apachelounge.com/download/
mariadb-10.0.14-winx64.msi:
https://downloads.mariadb.org/mariadb/10.0.14/
Den Admin RemoteAdmin.php habe ich hier geladen:
http://code.google.com/p/opensimtools/wi...inPHPClass

Die DB, robust und OpenSim läuft und ich komme auch mit dem Sinularity Viewer auf meine Region. An OpenSim habe ich nur die entsprechenden ini-Dateien angepasst (siehe unten).

Nun versuche ich eine Admin Webseite zu bauen mit dem sich auch andere User einen Account anlegen können.

Dies ist mein Aufruf um einen neuen Account anzulegen:

Code:
<?php
if($_GET["password1"] == $_GET["password2"])
{
    if(trim($_GET["user1"]) == "")
    {
        header("Location: index.php?error=FirstName&join");
    }
    else
    {
        if(trim($_GET["user2"]) == "")
        {
            header("Location: index.php?error=LastName&join");
        }
        else
        {
            if(strpos($_GET["email"],"@")==false)
            {
                header("Location: index.php?error=email&join");
            }
            else
            {
                // Including the RemoteAdmin PHP class.
                require('RemoteAdmin.php');
                
                // Instantiate the class with parameters identical to the Python example above
                                $myRemoteAdmin = new RemoteAdmin("127.0.0.1", 9000, "passwort");
                
                // Invoke admin_create_user (multiple parameters)
                $parameters = array('user_firstname' => $_GET["user1"], 'user_lastname' => $_GET["user2"], 'user_password' => $_GET["password1"], 'user_email' => $_GET["email"], 'start_region_x' => 10039, 'start_region_y' => 10020);
                $return = $myRemoteAdmin->SendCommand('admin_create_user', $parameters);
                if ($return == false)
                {
                    //header("Location: index.php?error=SendCommand false&join");
                }
                else
                {
                    echo "return:'".$return."'";
                    //echo "user1:'".$_GET["user1"]."'";
                    //echo "user2:'".$_GET["user2"]."'";
                    //header("Location: index.php?info=User created&login");
                }
            }
        }
    }
}
else
{
  header("Location: index.php?error=password&join");
}
?>
OpenSim.ini:
Code:
[Startup]
    MaxPrimUndos = 20
[AccessControl]
[Map]
[Permissions]
    serverside_object_permissions = true
    allow_grid_gods = false
    region_owner_is_god = true
[Estates]
[SMTP]
[Network]
    http_listener_port = 9000
    shard = "OpenSim"
[XMLRPC]
[ClientStack.LindenUDP]
[ClientStack.LindenCaps]
    Cap_GetTexture = "localhost"
    Cap_GetMesh = "localhost"
    Cap_AvatarPickerSearch = "localhost"
    Cap_WebFetchInventoryDescendents = ""
[SimulatorFeatures]
[Chat]
[EntityTransfer]
[Messaging]
    OfflineMessageModule = OfflineMessageModule
    MuteListModule = MuteListModule
[ODEPhysicsSettings]
[RemoteAdmin]
    enabled = true
    port = 9000
    access_password = "paswort"
    enabled_methods = all
[Wind]
    enabled = true
[LightShare]
    enable_windlight = false
[Materials]
    enable_materials = true
[DataSnapshot]
     index_sims = true
    data_exposure = minimum
    gridname = "MJGrid"
    default_snapshot_period = 1200
    snapshot_cache_directory = "DataSnapshot"
[Economy]
    SellEnabled = true
[XEngine]
    DeleteScriptsOnStartup = false
    OSFunctionThreatLevel = VeryLow
[MRM]
[FreeSwitchVoice]
[Groups]
[InterestManagement]
[MediaOnAPrim]
[NPC]
[Terrain]
[UserProfiles]
[XBakes]
[Architecture]
    Include-Architecture = "config-include/Grid.ini"
Robust.ini:
Code:
[Startup]
  RegistryLocation = "."
  ConfigDirectory = "."
[ServiceList]
AssetServiceConnector = "8003/OpenSim.Server.Handlers.dll:AssetServiceConnector"
InventoryInConnector = "8003/OpenSim.Server.Handlers.dll:XInventoryInConnector"
GridServiceConnector = "8003/OpenSim.Server.Handlers.dll:GridServiceConnector"
GridInfoServerInConnector = "8002/OpenSim.Server.Handlers.dll:GridInfoServerInConnector"
AuthenticationServiceConnector = "8003/OpenSim.Server.Handlers.dll:AuthenticationServiceConnector"
OpenIdServerConnector = "8002/OpenSim.Server.Handlers.dll:OpenIdServerConnector"
AvatarServiceConnector = "8003/OpenSim.Server.Handlers.dll:AvatarServiceConnector"
LLLoginServiceInConnector = "8002/OpenSim.Server.Handlers.dll:LLLoginServiceInConnector"
PresenceServiceConnector = "8003/OpenSim.Server.Handlers.dll:PresenceServiceConnector"
UserAccountServiceConnector = "8003/OpenSim.Server.Handlers.dll:UserAccountServiceConnector"
GridUserServiceConnector = "8003/OpenSim.Server.Handlers.dll:GridUserServiceConnector"
FriendsServiceConnector = "8003/OpenSim.Server.Handlers.dll:FriendsServiceConnector"
MapAddServiceConnector = "8003/OpenSim.Server.Handlers.dll:MapAddServiceConnector"
MapGetServiceConnector = "8002/OpenSim.Server.Handlers.dll:MapGetServiceConnector"
[Network]
    port = 8003
[DatabaseService]
    StorageProvider = "OpenSim.Data.MySQL.dll"
    ConnectionString = "Data Source=127.0.0.1;Database=DB;User ID=user;Password=Passwort;Old Guids=true;"
[AssetService]
    LocalServiceModule = "OpenSim.Services.AssetService.dll:AssetService"
    DefaultAssetLoader = "OpenSim.Framework.AssetLoader.Filesystem.dll"
    AssetLoaderArgs = "./assets/AssetSets.xml"
    AllowRemoteDelete = false
    AllowRemoteDeleteAllTypes = false
[InventoryService]
    LocalServiceModule = "OpenSim.Services.InventoryService.dll:XInventoryService"
[GridService]
    LocalServiceModule = "OpenSim.Services.GridService.dll:GridService"
[FreeswitchService]
    LocalServiceModule = "OpenSim.Services.FreeswitchService.dll:FreeswitchService"
    ServerAddress = 127.0.0.1
[AuthenticationService]
    LocalServiceModule = "OpenSim.Services.AuthenticationService.dll:PasswordAuthenticationService"
[OpenIdService]
    AuthenticationServiceModule = "OpenSim.Services.AuthenticationService.dll:PasswordAuthenticationService"
    UserAccountServiceModule = "OpenSim.Services.UserAccountService.dll:UserAccountService"
[UserAccountService]
    LocalServiceModule = "OpenSim.Services.UserAccountService.dll:UserAccountService"
    AuthenticationService = "OpenSim.Services.AuthenticationService.dll:PasswordAuthenticationService"
    PresenceService = "OpenSim.Services.PresenceService.dll:PresenceService"
    GridService = "OpenSim.Services.GridService.dll:GridService"
    InventoryService = "OpenSim.Services.InventoryService.dll:XInventoryService"
    AvatarService = "OpenSim.Services.AvatarService.dll:AvatarService"
    GridUserService = "OpenSim.Services.UserAccountService.dll:GridUserService"
    CreateDefaultAvatarEntries = true
    AllowCreateUser = true
    AllowSetAccount = true
[GridUserService]
    LocalServiceModule = "OpenSim.Services.UserAccountService.dll:GridUserService"
[PresenceService]
    LocalServiceModule = "OpenSim.Services.PresenceService.dll:PresenceService"
    AllowDuplicatePresences = false;
[AvatarService]
    LocalServiceModule = "OpenSim.Services.AvatarService.dll:AvatarService"
[FriendsService]
    LocalServiceModule = "OpenSim.Services.FriendsService.dll:FriendsService"
[LibraryService]
    LibraryName = "OpenSim Library"
    DefaultLibrary = "./inventory/Libraries.xml"
[LoginService]
    LocalServiceModule = "OpenSim.Services.LLLoginService.dll:LLLoginService"
    UserAccountService = "OpenSim.Services.UserAccountService.dll:UserAccountService"
    GridUserService = "OpenSim.Services.UserAccountService.dll:GridUserService"
    AuthenticationService = "OpenSim.Services.AuthenticationService.dll:PasswordAuthenticationService"
    InventoryService = "OpenSim.Services.InventoryService.dll:XInventoryService"
    AvatarService = "OpenSim.Services.AvatarService.dll:AvatarService"
    PresenceService = "OpenSim.Services.PresenceService.dll:PresenceService"
    GridService = "OpenSim.Services.GridService.dll:GridService"
    SimulationService ="OpenSim.Services.Connectors.dll:SimulationServiceConnector"
    LibraryService = "OpenSim.Services.InventoryService.dll:LibraryService"
    FriendsService = "OpenSim.Services.FriendsService.dll:FriendsService"
    WelcomeMessage = "Welcome, Avatar!"
    AllowRemoteSetLoginLevel = "false"
    MapTileURL = "http://127.0.0.1:8002";
    GatekeeperURI = "http://127.0.0.1:8002";
    DSTZone = "America/Los_Angeles;Pacific Standard Time"
[MapImageService]
    LocalServiceModule = "OpenSim.Services.MapImageService.dll:MapImageService"
[Messaging]
    OfflineIMService = "OpenSim.Addons.OfflineIM.dll:OfflineIMService"
[GridInfoService]
    login = http://127.0.0.1:8002/
    gridname = "the lost continent of hippo"
    gridnick = "migrid"
[UserProfilesService]
    LocalServiceModule = "OpenSim.Services.UserProfilesService.dll:UserProfilesService"
    Enabled = false
    UserAccountService = OpenSim.Services.UserAccountService.dll:UserAccountService
    AuthenticationServiceModule = "OpenSim.Services.AuthenticationService.dll:PasswordAuthenticationService"
[BakedTextureService]
    LocalServiceModule = "OpenSim.Server.Handlers.dll:XBakes"
    BaseDirectory = "./bakes"
GridCommon.ini:
Code:
[DatabaseService]
    StorageProvider = "OpenSim.Data.MySQL.dll"
    ConnectionString = "Data Source=127.0.0.1;Database=DB;User ID=user;Password=Passwort;"
[Hypergrid]
    HomeURI = "http://127.0.0.1:9000"
    GatekeeperURI = "http://127.0.0.1:9000"
[Modules]
     AssetCaching = "FlotsamAssetCache"
    Include-FlotsamCache = "config-include/FlotsamCache.ini"
[AssetService]
    DefaultAssetLoader = "OpenSim.Framework.AssetLoader.Filesystem.dll"
    AssetLoaderArgs = "assets/AssetSets.xml"
    AssetServerURI = "http://127.0.0.1:8003"
[InventoryService]
    InventoryServerURI = "http://127.0.0.1:8003"
[GridInfo]
    GridInfoURI = "http://127.0.0.1:8002"
[GridService]
    GridServerURI = "http://127.0.0.1:8003"
    Gatekeeper="http://127.0.0.1:8002"
[Messaging]
    Gatekeeper = "http://127.0.0.1:8002"
[AvatarService]
    AvatarServerURI = "http://127.0.0.1:8003"
[PresenceService]
    PresenceServerURI = "http://127.0.0.1:8003"
[UserAccountService]
    UserAccountServerURI = "http://127.0.0.1:8003"
[GridUserService]
    GridUserServerURI = "http://127.0.0.1:8003"
[AuthenticationService]
    AuthenticationServerURI = "http://127.0.0.1:8003"
[FriendsService]
    FriendsServerURI = "http://127.0.0.1:8003"
[HGInventoryAccessModule]
    HomeURI = "http://127.0.0.1:8002"
    Gatekeeper = "http://127.0.0.1:8002"
[HGAssetService]
    HomeURI = "http://127.0.0.1:8002"
[HGFriendsModule]
[UserAgentService]
    UserAgentServerURI = "http://127.0.0.1:8002"
[MapImageService]
       MapImageServerURI = "http://127.0.0.1:8003"
[AuthorizationService]
[SimianGrid]

Es kommt die Fehlermeldung (Webclient):
'failed to create new user test user'

Fehlermeldung in OpenSim:
16:08:33 - [RADMIN]: CreateUser: new request
16:08:33 - [RADMIN]: Account creation failed for account test user
16:08:33 - [RADMIN]: Method admin_create_user failed. Exception failed to create new user test user bei OpenSim.ApplicationPlugins.RemoteController.RemoteAdminPlugin.XmlRpcCreateUserMethod(XmlRpcRequest request, XmlRpcResponse response,IPEndPoint remoteClient)
bei OpenSim.ApplicationPlugins.RemoteController.RemoteAdminPlugin.InvokeXmlRpcMethod(XmlRpcRequest request, IPEndPoint remoteClient, Action`3 method)

Diese Meldung kommt von OpenSim.
OpenSim versucht auf Robust zuzugreifen.
Dies schlägt fehl.

Dies hilft aber auch nicht weiter.

Bei OSGrid kann man über die Webseiten User anlegen.

MFG
Micki Jonson
Zitieren


Nachrichten in diesem Thema
RemoteAdmin.php - von Micki Jonson - 09.12.2014, 00:02
RE: RemoteAdmin.php - von Bogus Curry - 09.12.2014, 01:04
RE: RemoteAdmin.php - von Micki Jonson - 09.12.2014, 09:32
RE: RemoteAdmin.php - von Mareta Dagostino - 09.12.2014, 09:58
RE: RemoteAdmin.php - von Anachron - 09.12.2014, 10:29
RE: RemoteAdmin.php - von Bogus Curry - 09.12.2014, 11:44
RE: RemoteAdmin.php - von GamaTotchi Yoshikawa - 09.12.2014, 14:14
RE: RemoteAdmin.php - von Dorena Verne - 09.12.2014, 14:22
RE: RemoteAdmin.php - von Micki Jonson - 09.12.2014, 15:48
RE: RemoteAdmin.php - von GamaTotchi Yoshikawa - 09.12.2014, 17:06
RE: RemoteAdmin.php - von Dorena Verne - 09.12.2014, 16:39
RE: RemoteAdmin.php - von Bogus Curry - 09.12.2014, 18:31
RE: RemoteAdmin.php - von MichelleArgus - 09.12.2014, 19:23
RE: RemoteAdmin.php - von Micki Jonson - 10.12.2014, 14:44
RE: RemoteAdmin.php - von Micki Jonson - 10.12.2014, 11:44
RE: RemoteAdmin.php - von Micki Jonson - 16.12.2014, 15:36
RE: RemoteAdmin.php - von GamaTotchi Yoshikawa - 16.12.2014, 15:56
RE: RemoteAdmin.php - von Dorena Verne - 16.12.2014, 17:29
RE: RemoteAdmin.php - von MichelleArgus - 16.12.2014, 19:48
RE: RemoteAdmin.php - von GamaTotchi Yoshikawa - 16.12.2014, 21:47
RE: RemoteAdmin.php - von MichelleArgus - 17.12.2014, 00:32
RE: RemoteAdmin.php - von MichelleArgus - 17.12.2014, 18:07

Gehe zu:


Benutzer, die gerade dieses Thema anschauen: 1 Gast/Gäste