Book a Demo

Author Topic: Turned Off Windows Security and now model is unaccessible  (Read 4711 times)

gbolton

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Turned Off Windows Security and now model is unaccessible
« on: April 27, 2023, 11:47:52 pm »
I accidentally turned off windows authentication and now no one can access the model.  I believe I need to login as admin but the login as another user option is not activated because I am not in the model.  Any suggestion on how I can turn Windows Authentication back on or bypass it?  I get the user authentication screen but I don't know what password EA thinks is setup for me.  The repository is setup by procloud but even connecting directly to the database (SQL Server) repository gives me the same authentication challenge.  How can I get into the model to turn Windows Authentication back on?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Turned Off Windows Security and now model is unaccessible
« Reply #1 on: April 28, 2023, 12:07:31 am »
Use an SQL client to open your model and execute the following SQL

Code: [Select]
update t_secpolicies set [Value] = 'Disabled' where Property = 'UserSecurity'
This disables security alltogether.

Geert

gbolton

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: Turned Off Windows Security and now model is unaccessible
« Reply #2 on: May 01, 2023, 11:47:22 am »
Do you have a sql statement that will just let me turn on Windows Authentication globally?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Turned Off Windows Security and now model is unaccessible
« Reply #3 on: May 01, 2023, 05:07:23 pm »
IIRC you just replace "Dis" with "En" and you have it restored. But then you're probably at square 1 too, right?

q.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Turned Off Windows Security and now model is unaccessible
« Reply #4 on: May 01, 2023, 05:15:41 pm »
Do you have a sql statement that will just let me turn on Windows Authentication globally?
Don't do anything more with SQL then absolutely necesarry.

If you disable security, you can open the model yourself, and set the options using the GUI.

Geert

gbolton

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: Turned Off Windows Security and now model is unaccessible
« Reply #5 on: May 02, 2023, 01:04:46 am »
I ran the SQL and renabled security including windows authentication.  Users are able to get into the model either through a cloud connection or connect to server in EA or through WebEA.
« Last Edit: May 02, 2023, 02:43:53 am by gbolton »