summaryrefslogtreecommitdiffstats
path: root/src/Common/Backends/NetworkUserBackend.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Common/Backends/NetworkUserBackend.h')
-rw-r--r--src/Common/Backends/NetworkUserBackend.h17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/Common/Backends/NetworkUserBackend.h b/src/Common/Backends/NetworkUserBackend.h
index a3fa1a6..1ab0b58 100644
--- a/src/Common/Backends/NetworkUserBackend.h
+++ b/src/Common/Backends/NetworkUserBackend.h
@@ -137,6 +137,19 @@ class NetworkUserBackend : public UserDBBackend {
: Request(application), type(type0), uid(uid0), gid(gid0) {}
};
+ class PasswordRequest : public Request {
+ private:
+ unsigned long uid;
+ std::string password;
+
+ protected:
+ virtual void sendRequest();
+
+ public:
+ PasswordRequest(Application *application, unsigned long uid0, const std::string &password0)
+ : Request(application), uid(uid0), password(password0) {}
+ };
+
static const std::string name;
Application *application;
@@ -155,8 +168,6 @@ class NetworkUserBackend : public UserDBBackend {
virtual boost::shared_ptr<const std::multimap<unsigned long, unsigned long> > getFullUserGroupList(boost::posix_time::ptime *timestamp) throw(Core::Exception);
- //virtual void setPassword(unsigned long uid, const std::string &password) throw(Core::Exception);
-
virtual void checkUserInfo(const UserInfo &userInfo) throw(Core::Exception);
virtual void addUser(const UserInfo &userInfo) throw(Core::Exception);
virtual void updateUser(unsigned long uid, const Common::UserInfo &userInfo) throw(Core::Exception);
@@ -170,6 +181,8 @@ class NetworkUserBackend : public UserDBBackend {
virtual void addUserToGroup(unsigned long uid, unsigned long gid) throw(Core::Exception);
virtual void deleteUserFromGroup(unsigned long uid, unsigned long gid) throw(Core::Exception);
+ virtual void setPassword(unsigned long uid, const std::string &password) throw(Core::Exception);
+
public:
NetworkUserBackend(Application *application0, Connection *connection0) : application(application0), connection(connection0) {}