diff --git a/OpenSim/Framework/Communications/CommunicationsManager.cs b/OpenSim/Framework/Communications/CommunicationsManager.cs
index 1ac5fe463e..27cdd35f83 100644
--- a/OpenSim/Framework/Communications/CommunicationsManager.cs
+++ b/OpenSim/Framework/Communications/CommunicationsManager.cs
@@ -98,6 +98,11 @@ namespace OpenSim.Framework.Communications
get { return m_networkServersInfo; }
}
protected NetworkServersInfo m_networkServersInfo;
+
+ ///
+ /// Interface to administrative user service calls.
+ ///
+ protected IUserServiceAdmin m_userServiceAdmin;
///
/// Constructor
@@ -243,7 +248,7 @@ namespace OpenSim.Framework.Communications
{
string md5PasswdHash = Util.Md5Hash(Util.Md5Hash(password) + ":" + String.Empty);
- m_userService.AddUserProfile(firstName, lastName, md5PasswdHash, regX, regY);
+ m_userServiceAdmin.AddUserProfile(firstName, lastName, md5PasswdHash, regX, regY);
UserProfileData userProf = UserService.GetUserProfile(firstName, lastName);
if (userProf == null)
{
@@ -266,7 +271,7 @@ namespace OpenSim.Framework.Communications
/// true if the update was successful, false otherwise
public bool ResetUserPassword(string firstName, string lastName, string newPassword)
{
- return m_userService.ResetUserPassword(firstName, lastName, newPassword);
+ return m_userServiceAdmin.ResetUserPassword(firstName, lastName, newPassword);
}
#region Friend Methods
diff --git a/OpenSim/Framework/Communications/IUserService.cs b/OpenSim/Framework/Communications/IUserService.cs
index d52d1eab8e..64c6c685c4 100644
--- a/OpenSim/Framework/Communications/IUserService.cs
+++ b/OpenSim/Framework/Communications/IUserService.cs
@@ -40,8 +40,6 @@ namespace OpenSim.Framework.Communications
/// A user profile. Returns null if no profile is found
UserProfileData GetUserProfile(string firstName, string lastName);
- //UserProfileData GetUserProfile(string name);
-
///
/// Loads a user profile from a database by UUID
///
@@ -58,12 +56,6 @@ namespace OpenSim.Framework.Communications
UserProfileData SetupMasterUser(string firstName, string lastName, string password);
UserProfileData SetupMasterUser(UUID userId);
- ///
- /// Add a new user profile
- ///
- ///
- UUID AddUserProfile(string firstName, string lastName, string pass, uint regX, uint regY);
-
///
/// Update the user's profile.
///
@@ -71,15 +63,6 @@ namespace OpenSim.Framework.Communications
/// via a call to GetUserProfile().
/// true if the update could be applied, false if it could not be applied.
bool UpdateUserProfile(UserProfileData data);
-
- ///
- /// Reset a user password
- ///
- ///
- ///
- ///
- /// true if the update was successful, false otherwise
- bool ResetUserPassword(string firstName, string lastName, string newPassword);
///
/// Adds a new friend to the database for XUser
diff --git a/OpenSim/Framework/Communications/UserManagerBase.cs b/OpenSim/Framework/Communications/UserManagerBase.cs
index 4fc2fea333..f06a4384c5 100644
--- a/OpenSim/Framework/Communications/UserManagerBase.cs
+++ b/OpenSim/Framework/Communications/UserManagerBase.cs
@@ -42,7 +42,7 @@ namespace OpenSim.Framework.Communications
///
/// Base class for user management (create, read, etc)
///
- public abstract class UserManagerBase : IUserService, IAvatarService
+ public abstract class UserManagerBase : IUserService, IUserServiceAdmin, IAvatarService
{
private static readonly ILog m_log
= LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
diff --git a/OpenSim/Region/Application/OpenSimBase.cs b/OpenSim/Region/Application/OpenSimBase.cs
index 1029d908bb..4a022644f8 100644
--- a/OpenSim/Region/Application/OpenSimBase.cs
+++ b/OpenSim/Region/Application/OpenSimBase.cs
@@ -383,7 +383,7 @@ namespace OpenSim
LocalBackEndServices backendService = new LocalBackEndServices();
CommunicationsLocal localComms =
- new CommunicationsLocal(m_networkServersInfo, m_httpServer, m_assetCache, userService,
+ new CommunicationsLocal(m_networkServersInfo, m_httpServer, m_assetCache, userService, userService,
inventoryService, backendService, backendService, m_dumpAssetsToFile);
m_commsManager = localComms;
diff --git a/OpenSim/Region/Communications/Local/CommunicationsLocal.cs b/OpenSim/Region/Communications/Local/CommunicationsLocal.cs
index 679388938c..c79979c152 100644
--- a/OpenSim/Region/Communications/Local/CommunicationsLocal.cs
+++ b/OpenSim/Region/Communications/Local/CommunicationsLocal.cs
@@ -39,6 +39,7 @@ namespace OpenSim.Region.Communications.Local
BaseHttpServer httpServer,
AssetCache assetCache,
IUserService userService,
+ IUserServiceAdmin userServiceAdmin,
LocalInventoryService inventoryService,
IInterRegionCommunications interRegionService,
IGridServices gridService, bool dumpAssetsToFile)
@@ -48,6 +49,7 @@ namespace OpenSim.Region.Communications.Local
m_defaultInventoryHost = inventoryService.Host;
m_interServiceInventoryService = inventoryService;
m_userService = userService;
+ m_userServiceAdmin = userServiceAdmin;
m_avatarService = (IAvatarService)userService;
m_gridService = gridService;
m_interRegion = interRegionService;