Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
[NRTSession ][GetFirstDatabaseName ]Trusted login types does not match for the user -
vipinpc
I am using iManAdmin.dll (Administrative API) method to login to WorkSite as TrustedLogin.
But I am getting the following error:
[NRTSession ][GetFirstDatabaseName ]Trusted login types does not match for the user.
Sample Code:
Private Sub Command1_Click()
Dim objNRTDMS As IMANADMIN.NRTDMS
Dim objNRTSessions As IMANADMIN.NRTSessions
Dim objNRTSession As IMANADMIN.NRTSession
Dim objNRTDatabases As IMANADMIN.NRTDatabases
On Error GoTo ErrorHandler
Debug.Assert False
Set objNRTDMS = CreateObject("IMANADMIN.NRTDMS")
Set objNRTSessions = objNRTDMS.Sessions
objNRTSessions.Add "vm2knag"
Set objNRTSession = objNRTSessions.Item(1)
'Set objNRTSession = objNRTDMS.Sessions.Add("vm2kpro")
objNRTSession.TrustedLogin 'Trusted Login
'objNRTSession.Login "jagannathps", "nous;jagan" 'Normal Login
Set objNRTDatabases = objNRTSession.Databases
GoTo CleanUp
Exit Sub
ErrorHandler:
Debug.Assert False
Debug.Print Err.Number & " " & Err.Description
CleanUp:
If Not objNRTDatabases Is Nothing Then
Set objNRTDatabases = Nothing
End If
If Not objNRTSession Is Nothing Then
If objNRTSession.Connected = True Then
objNRTSession.Logout
End If
Set objNRTSession = Nothing
End If
If Not objNRTSessions Is Nothing Then
Set objNRTSessions = Nothing
End If
If Not objNRTDMS Is Nothing Then
objNRTDMS.CloseApplication
Set objNRTDMS = Nothing
End If
End Sub
Note:
User (jagannathps) was added into WorkSite DB using Database Administrator. User belongs to NRTADMIN Group.
WorkSite 8.0
System OS (where Sample application is running) : Windows XP
There was similar issue (Issue Title: TrustedLogin method throw error) in Interwoven Forum.
--"Trusted Login Type" and value: 3 were added into registry (HKEY_LOCAL_MACHINE\SOFTWARE\Interwoven\WorkSite\8. 0\Common) for Trusted Login.
I had tried this, but this did not solve the issue ("[NRTSession ][GetFirstDatabaseName ]Trusted login types does not match for the user").
Find more posts tagged with
Comments
jny
But, do you have TrustedLogon enabled in the WorkSite Service Manager?
vipinpc
Thanks a lot.
I configured Network User properly base on WorkSite Service Help. Then TrustedLogin started working.
vipinpc
I have few questions.
Using Administrative API (iManAdmin.dll), user cannot login into to WorkSite Server having multiple database with identical user having different roles.
WorkSite: TEST
Databases: DB1, DB2
User: Vipin
There are two databases 'DB1' and 'DB2' in WorkSite Server 'TEST'.
Identical user 'Vipin' is created in both databases 'DB1' and 'DB2'.
In database 'DB1' user 'Vipin' belongs NRTADMIN Group or Adminstrative Role (Administrative Operations is not checked).
BUt in other database 'DB2' user 'Vipin' belongs NORMAL Group or does not have Administrative Role.
Using Administrative API (iManAdmin.dll), user 'Vipin' will not be able to login to WorkSite 'TEST'.
Question:
1) Is this limitation of Adminstrative API (iManAdmin.dll) based on above scenario.
Using Manage API (iManage.dll) user 'Vipin' will be able to login to WorkSite 'TEST'.
2) What is difference between iManAdmin.dll and iManage.dll?
vipinpc
I have few questions.
Using Administrative API (iManAdmin.dll), user cannot login into to WorkSite Server having multiple database with identical user having different roles.
WorkSite: TEST
Databases: DB1, DB2
User: Vipin
There are two databases 'DB1' and 'DB2' in WorkSite Server 'TEST'.
Identical user 'Vipin' is created in both databases 'DB1' and 'DB2'.
In database 'DB1' user 'Vipin' belongs NRTADMIN Group or Adminstrative Role (Administrative Operations is not checked).
BUt in other database 'DB2' user 'Vipin' belongs NORMAL Group or does not have Administrative Role.
Using Administrative API (iManAdmin.dll), user 'Vipin' will not be able to login to WorkSite 'TEST'.
Question:
1) Is this limitation of Adminstrative API (iManAdmin.dll) based on above scenario.
Using Manage API (iManage.dll) user 'Vipin' will be able to login to WorkSite 'TEST'.
2) What is difference between iManAdmin.dll and iManage.dll?
jny
I believe you need to be an admin user in all of those databases to consume the IManAdmin.dll; the API's exposed by this DLL are admin tasks thus they should only be performed by Administrators.
The imanage.dll is not used for admin task-oriented services thus anyone who can connect through WorkSite Clients should be able to connect via this DLL.