Write a Directory Management Application

To write a Directory Management application

  1. Establish a Connection to the Policy Server
  2. Obtain a Session Object

    A session object is obtained when a user or administrator successfully logs in:

  3. Pass in the Session Object

    After obtaining a valid session, create a DMS API object by passing the session to the constructor of the SmDmsApiImpl class—for example:

    SmDmsApi dmsApi = new SmDmsApiImpl (apiSession);
    

    In the example, dmsApi is the new DMS API object, and apiSession is the session obtained when the administrator successfully logged in.

    Note: Whenever you create a DMS API object, you pass the session and connection information to the object.

  4. Create a Directory Management Context

    To use the DMS API to access a user directory, you need to know either:

5. Create and Manipulate Objects

After creating a context, you can create and manipulate directory objects using the DMS Object Model. When working with directory objects, you need to know:


Copyright © 2009 CA. All rights reserved.