Monday, March 5, 2012

How to login to the repository with a ticket

Using a superuser account you can login to the repository with any existing user account using a ticket. In order to generate a login ticket, use the following API command:
getlogin,c,[user_name][,scope][,timeout_period]

You will obtain a ticket like this:
DM_TICKET=AAAAAgAAAOQAAAAKAAAAFUeUZYRHlGawAAAAOGxzY21zAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEZyYW4gU2Nod2lldHprZQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGxzY21zAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGx2Y21zMDEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGNlaWxpbmcxMQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAM0pyOTdRTDJOakFUbVhwak15Y21CWDdLbG5zYnM2aUVUU1pXUy9kbHdwWjlzcllmaGIrNFZnPT0=


Now you can connect to the repository with this user using the ticket (the whole part, including DM_TICKET=) as the password: via Webtop, DA, Samson, DQMan or any other Docuentum client.
The ticket will be available for the time_period specified, or the default one (set in dm_docbase_config.login_ticket_timeout).

2 comments:

  1. what if user name contains comma(,) in name. is there any escape sequence which can be used in API

    ReplyDelete