Book a Demo

Author Topic: Security Setup on old Model  (Read 10234 times)

RTNMK

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Security Setup on old Model
« on: January 30, 2014, 11:01:58 am »
I have an old model created in 2006 (v. 9) that has security invoked on it. I was the admin at that time but I left the company shortly after and now have returned. Noone knows any of the passwords and this model is no longer in use. I want a piece of the this model for a new one I am building but have no way of determining the password to get into it. Are there any back door abilities to look at the model and copy the portion I need? Can Sparx do it for me based on the EA keys and user identification we have? :-/

VKN

  • EA User
  • **
  • Posts: 187
  • Karma: +9/-1
    • View Profile
Re: Security Setup on old Model
« Reply #1 on: January 30, 2014, 11:17:38 am »
You can disable the security and access the model if you have the EA key.

RTNMK

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Security Setup on old Model
« Reply #2 on: January 30, 2014, 11:19:39 am »
How do you get to where you enter the EA key? If I try to open the model it asks me for the login. Do I use  the registered login?

VKN

  • EA User
  • **
  • Posts: 187
  • Karma: +9/-1
    • View Profile
Re: Security Setup on old Model
« Reply #3 on: January 30, 2014, 11:30:13 am »
I guess you can:
Cancel the login window then select Project->Security->Disable Security

RTNMK

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Security Setup on old Model
« Reply #4 on: January 30, 2014, 11:33:05 am »
That is grayed out as long as I don't have a model open.  :(

VKN

  • EA User
  • **
  • Posts: 187
  • Karma: +9/-1
    • View Profile
Re: Security Setup on old Model
« Reply #5 on: January 30, 2014, 11:59:08 am »
If you can't get help to crack it here, send an email to [email protected] (along with the .eap if your model is in it).

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Security Setup on old Model
« Reply #6 on: January 30, 2014, 06:23:26 pm »
Open an sql session to the .eap (= MS Access db) with your favorite SQL client and clear the password field for the Admin user in t_secuser
Then login with user admin and empty password.

Geert

SomersetGraham

  • EA User
  • **
  • Posts: 376
  • Karma: +1/-0
    • View Profile
Re: Security Setup on old Model
« Reply #7 on: January 30, 2014, 07:07:44 pm »
I can confirm that what Geert suggests works
I have had a similar problem in the past and simply cleared the password field
Using V12

RTNMK

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Security Setup on old Model
« Reply #8 on: January 31, 2014, 03:24:26 am »
Thanks for the feedback, but still not working for me. Using MS Access and it does not list a password attribute for t_secuser. One, I get an error that this is a really old database. I tried to update to MS Access 2010, but didn't work. Secondly, I just opened as the old type of DB and it lists the following attributes.

s_Generation, s_GUID, s_Lineage, UserID, UserLogin, Name, Blank column.

Regardless, it won't let me update anything since it is an old database.

Will try to find a DB Admin to help, but this forum has been pretty helpful so far. Thank you!

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Security Setup on old Model
« Reply #9 on: January 31, 2014, 04:04:11 am »
Try a VB sciprt inside EA and place this inside
Code: [Select]
option explicit

!INC Local Scripts.EAConstants-VBScript

'
' Script Name:
' Author:
' Purpose:
' Date:
'
sub main
      Repository.Execute("UPDATE t_secuser SET password = ''")
end sub

main
Let it run once. Then you can login with any user int t_secuser with a blank password.

q.

RTNMK

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Security Setup on old Model
« Reply #10 on: January 31, 2014, 05:22:33 am »
how is that going to work if I can't open the model file in EA in the first place? Getting frustrated, think I may need to get Sparx to do it.

VKN

  • EA User
  • **
  • Posts: 187
  • Karma: +9/-1
    • View Profile
Re: Security Setup on old Model
« Reply #11 on: January 31, 2014, 09:25:00 am »
Quote
I tried to update to MS Access 2010, but didn't work. Secondly, I just opened as the old type of DB and it lists the following attributes.
s_Generation, s_GUID, s_Lineage, UserID, UserLogin, Name, Blank column.
You shouldn't upgrade anything later to Access 2003 format, for the purpose. Then in t_secpolicies if you can find a record where Properties='UserSecurity',  delete it.

« Last Edit: January 31, 2014, 09:27:09 am by VKN »

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Security Setup on old Model
« Reply #12 on: January 31, 2014, 09:27:27 am »
Oops  :-[

What you might do is a transfer to a RDBMS (Tools/Data Management/Transfer) where you have a usable client to perform the SQL. Then you can transfer it back to EAP.

q.

Dermot

  • EA Administrator
  • EA User
  • *****
  • Posts: 591
  • Karma: +7/-0
    • View Profile
Re: Security Setup on old Model
« Reply #13 on: January 31, 2014, 03:07:33 pm »
Quote
Using MS Access and it does not list a password attribute for t_secuser. One, I get an error that this is a really old database.
Regardless, it won't let me update anything since it is an old database.

The MS Access message "You can't make changes to the Database Object .." applies to changing Queries and Table structures - it does not apply to data. Just Press OK. Then  clear the entry as stated by VKN.
This works regardless of the the .eap age.
« Last Edit: January 31, 2014, 03:22:17 pm by Dermot »

HowardB

  • EA Administrator
  • EA User
  • *****
  • Posts: 55
  • Karma: +0/-0
  • I love YaBBies!
    • View Profile
Re: Security Setup on old Model
« Reply #14 on: January 31, 2014, 03:21:39 pm »
The columns s_Generation, s_xxx,  indicate that your EAP file is part of a replicated database set.  For this reason, it may be prudent to avoid deleting records from the tables, but instead jsut change the values in the table.

I suggest that you update the table "t_secpolicies", with something like;

UPDATE t_secpolicies
SET Value = 'Disabled'
WHERE Property = 'UserSecurity'


You should be able to use Access 2003 or Access 2007 to perform this.
If you get error/warning messages when you try to open the EAP file, I believe you can just click OK and carry on.  The warning message may be telling you that you cannot change the structure of the table, as opposed to changing values in the table.

If all else fails, send the EAP file to Sparx and ask them to reset it for you.