diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsIn/Authentication/HGAuthServiceInConnectorModule.cs b/OpenSim/Region/CoreModules/ServiceConnectorsIn/Authentication/HGAuthServiceInConnectorModule.cs index f4ebc70b06..6f2371dbfb 100644 --- a/OpenSim/Region/CoreModules/ServiceConnectorsIn/Authentication/HGAuthServiceInConnectorModule.cs +++ b/OpenSim/Region/CoreModules/ServiceConnectorsIn/Authentication/HGAuthServiceInConnectorModule.cs @@ -99,7 +99,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsIn.Authentication if (!m_Registered) { m_Registered = true; - new HGAuthServiceInConnector(m_Config, MainServer.Instance); + new HGAuthServiceInConnector(m_Config, MainServer.Instance, scene); //Object[] args = new Object[] { m_Config, scene.CommsManager.HttpServer }; //ServerUtils.LoadPlugin("OpenSim.Server.Handlers.dll:HGAuthServiceInConnector", args); diff --git a/OpenSim/Server/Handlers/Authentication/HGAuthServerConnector.cs b/OpenSim/Server/Handlers/Authentication/HGAuthServerConnector.cs index 2d31564482..f4f8309a6c 100644 --- a/OpenSim/Server/Handlers/Authentication/HGAuthServerConnector.cs +++ b/OpenSim/Server/Handlers/Authentication/HGAuthServerConnector.cs @@ -27,6 +27,7 @@ using System; using Nini.Config; +using OpenSim.Framework; using OpenSim.Server.Base; using OpenSim.Services.Interfaces; using OpenSim.Framework.Servers.HttpServer; @@ -38,7 +39,7 @@ namespace OpenSim.Server.Handlers.Authentication { private IAuthenticationService m_AuthenticationService; - public HGAuthServiceInConnector(IConfigSource config, IHttpServer server) : + public HGAuthServiceInConnector(IConfigSource config, IHttpServer server, IScene registry) : base(config, server) { IConfig serverConfig = config.Configs["AuthenticationService"]; @@ -53,6 +54,7 @@ namespace OpenSim.Server.Handlers.Authentication Object[] args = new Object[] { config }; m_AuthenticationService = ServerUtils.LoadPlugin(authenticationService, args); + registry.RegisterModuleInterface(m_AuthenticationService); HGAuthenticationHandlers m_handlers = new HGAuthenticationHandlers(m_AuthenticationService); server.AddXmlRPCHandler("hg_new_auth_key", m_handlers.GenerateKeyMethod);