Index

DKUserMgmtIP

Purpose:

DKUserMgmtIP represents and processes datastore user-management functions.

An instance of DKUserMgmtIP is created as part of a chain of instantiations when you create an instance of DKDatastoreIP. Use the userManagement() function of DKDatastoreAdminIP to get the DKUserMgmtIP instance. The following example illustrates getting the instance:

     DKDatastoreDL dsIP;
     DKDatastoreDefIP* dsDef = 0;
     DKDatastoreAdminIP* dsAdmin = 0;
     DKUserMgmtIP* userMgmt = 0;
      ....     /* Connect to the datastore   */
     dsDef = (DKDatastoreDefIP*)dsIP.datastoreDef();
     dsAdmin = (DKDatastoreAdminIP*)dsDef->datastoreAdmin();
     userMgmt = (DKUserMgmtIP*)dsAdmin->userManagement();

Class summary:

class DKUserMgmtIP : public dkUserManagement
{
public:
   DKUserMgmtIP (dkDatastore* ds);
   virtual ~DKUserMgmtIP ();
 
   virtual void changePassword (const char* userId,
                                const char* oldPwd,
                                const char* newPwd);
};

Members:

Constructors and destructor
Constructs a DKUserManagement object.
   DKUserMgmtIP (dkDatastore* ds);
   virtual ~DKUserMgmtIP ();
 

Member functions

changePassword
Changes the password of a given user ID. The new password value must have a length of eight characters or less.
   virtual void changePassword (const char* userId,
                                const char* oldPwd,
                                const char* newPwd);
 

(c) Copyright International Business Machines Corporation 1996, 2003. IBM Corp. All rights reserved.