Getting List of Users for a Role using ResolveQueue

  • 7 March 2013
  • 1 reply
  • 0 views

Badge

Hi all,


We are using a console based application that requires us to get the list of all usernames associated with a Role.


We are currently using a UserRoleManagerServer and calling the method ResolveQueue(rolename).


It seems that we are able to get the usernames when i connect using direct username and password. 


However, when connecting using Integrated Authentication, the system throws an error:


"Cannot open database "K2BlackpearlHostServer" requested by the login. Login failed for user 'NT AUTHORITYANONYMOUS LOGON'.


Need some inputs on how to resolve this issue. Aparantly the user is using Kerberos authentication mechanism. The console is not running on the same server as K2.


Any help will be appreciated.


1 reply

Userlevel 3
Badge +10

This error is usually due to a misconfiguration of Kerberos (incorrect SPN's or K2 service account delegation being setup incorrectly).  I would recommend taking a look at this whitepaper (http://help.k2.com/displaycontent.aspx?id=2605), ensuring that your SPN's are setup correctly, and that your K2 Service account has the correct delegation.

Reply