Thanks for your reply. Your solution worked for me.
I have one more query.
We are trying to develop our own screens for authorization and internally we intend to use the api exposed by netsqlazman.
For this purpose, we have designed an Admin.aspx screen where an Admin user will be able to search for users in LDAP and retrieve roles assigned for them.
Now internally, I am doing the LDAP authentication for the user but when i try to retrieve roles assigned to them, I use the following code:
 AuthorizedItems = ObjStorageCache.GetAuthorizedItems( StoreName,ApplicationName,Wid.GetUserBinarySSid(),Wid.GetGroupsBinarySSid(),DateTime
But this method requires the Wid object of the LDAP user, how can i retrieve that ?
Please help me with this.