Skip to main content
Solved

aunable to login to IAM and SF After migrating our dev/test to another database.


After migrating our dev/test to another database server and also upgrading IAM and SF. we are unable to login.

the web apps are responding okay, and the database users are there. it’s just that the login is not working. It’s like we’re locked out of the environment. I can’t even login to the Indicium back end to view logs.

Has anyone seen this before and fixed it? I tried some fixes that have to do with orphaned sql users and the like, but nothing has helped so far. i’ve attached screenshots of the errors we receive.

 

Best answer by rustie

In our case the mixed mode authentication in SQL was turned off. We had to turn it on enable the users for the IAM databases and logins were working again.

View original
Did this topic help you find an answer to your question?
This topic has been closed for replies.

9 replies

Mark Jongeling
Administrator
Forum|alt.badge.img+23

Hi,

It looks like your attached images have not uploaded successfully. Could you reupload them? You can paste the images inline with your topic/reply

When restoring a SF/IAM database on another server, most likely some information in the server table is incorrect. In IAM, could you check the server table using this query?:

select * from server

Here you can see all servers configured. The IAM application normally uses "current_server” but this may have changed. Hopefully this query shows the problem.


  • Author
  • Sidekick
  • 23 replies
  • October 28, 2022

i only get a message saying : Invalid object name 'server'

 


Mark Jongeling
Administrator
Forum|alt.badge.img+23
rustie wrote:

i only get a message saying : Invalid object name 'server'

 

select * from [IAM_DATABASE]..server

Replace the IAM_DATABASE placeholder with your IAM database name. That should do the trick.


  • Author
  • Sidekick
  • 23 replies
  • October 28, 2022

isorry, performed the statement wrong. this is hte result:

 


  • Author
  • Sidekick
  • 23 replies
  • October 28, 2022

okay so for another IAM database i see the old server name: 

 

 


  • Author
  • Sidekick
  • 23 replies
  • October 28, 2022

So as it is all my IAM databases are displaying the old server. all, except the iam for SF. which shows the current server. how do i fix the other ones?


Mark Jongeling
Administrator
Forum|alt.badge.img+23

Maybe your user is not the Main administrator. You can try adding yourself as Main administrator using this: 

insert into usr_root_admin (tenant_id, usr_id)
values ('1', '[YOUR_USER_NAME]')

This should allow the inserted user to access IAM


  • Author
  • Sidekick
  • 23 replies
  • October 28, 2022

running this statement on the IAM of software factory and this is the result:

Msg 2627, Level 14, State 1, Line 1
Violation of PRIMARY KEY constraint 'usr_root_admin_pk'. Cannot insert duplicate key in object 'dbo.usr_root_admin'. The duplicate key value is (1, duane). But my user was a main administrator as i recall


  • Author
  • Sidekick
  • 23 replies
  • Answer
  • October 28, 2022

In our case the mixed mode authentication in SQL was turned off. We had to turn it on enable the users for the IAM databases and logins were working again.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings