Book a Demo

Author Topic: View shortcut connection string  (Read 7950 times)

OpenIT Solutions

  • EA User
  • **
  • Posts: 555
  • Karma: +9/-1
    • View Profile
View shortcut connection string
« on: January 23, 2014, 09:15:12 pm »
Hi,

I created a shortcut eap file sometime ago that connects to our SQL Server repository. I need to check the connection string being used. Is there a way to check a shortcuts connection string ?

Thanks,

Jon.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: View shortcut connection string
« Reply #1 on: January 23, 2014, 09:35:51 pm »
In that case the EAP is a text file containing the connection string.

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: View shortcut connection string
« Reply #2 on: January 23, 2014, 09:40:14 pm »
Quote
In that case the EAP is a text file containing the connection string.

q.
If you are lucky and the connection string hasn't been encrypted when saving the shortcut file.

Geert

OpenIT Solutions

  • EA User
  • **
  • Posts: 555
  • Karma: +9/-1
    • View Profile
Re: View shortcut connection string
« Reply #3 on: January 23, 2014, 10:38:49 pm »
Thanks both. It wasn't encrypted ! So don't have to fess up to the DBAs that i'd forgotten the password :-)

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: View shortcut connection string
« Reply #4 on: January 24, 2014, 01:31:59 am »
Quote
Quote
In that case the EAP is a text file containing the connection string.

q.
If you are lucky and the connection string hasn't been encrypted when saving the shortcut file.

Geert
I have never seen it "encrypted" (probably obfuscated would be more correct). Do you know when that happens?

q.

OpenIT Solutions

  • EA User
  • **
  • Posts: 555
  • Karma: +9/-1
    • View Profile
Re: View shortcut connection string
« Reply #5 on: January 24, 2014, 09:09:46 pm »
I beleive you can check Encrypt password when you create the shortcut...

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: View shortcut connection string
« Reply #6 on: January 24, 2014, 10:31:32 pm »
There's no such question. When you create a shortcut file it contains the EAConnectString (file name of the real EAP) and some OpenActions. You need to know the password of the real EAP if it has security turned on.

q.

OpenIT Solutions

  • EA User
  • **
  • Posts: 555
  • Karma: +9/-1
    • View Profile
Re: View shortcut connection string
« Reply #7 on: January 25, 2014, 03:27:30 am »
Yep sorry the question is 'Encrypt connection string'.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: View shortcut connection string
« Reply #8 on: January 25, 2014, 05:50:06 pm »
I've seen it encrypted.
It looks like a bunch of random characters.

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: View shortcut connection string
« Reply #9 on: January 25, 2014, 10:23:59 pm »
Yet another secret to be unveiled.

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: View shortcut connection string
« Reply #10 on: January 27, 2014, 06:40:40 pm »
My bet is that base64 encoding has something to do with it  :D

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: View shortcut connection string
« Reply #11 on: January 27, 2014, 09:19:41 pm »
You can easily proof that: select the text in Notepad++ and try Mime Tools/base64 decode.

The question still stays open: when do they encode it?

q.
« Last Edit: January 27, 2014, 09:20:12 pm by qwerty »

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: View shortcut connection string
« Reply #12 on: January 27, 2014, 10:43:22 pm »
When you do Save Shortcut on a DBMS model and select the encrypt connectionstring.

On second thought, probably no base64 encoding as it contains all these special characters
Code: [Select]
EAConnectString:EA_Horizon --- DBType=1;ConnectEx=Mo0XR2;w%'IVnO#HM:PcM..U\)lKm4-lM{z80?LvWvM;>m-C[+)VE-h0uCZZQ^AOgjf0:jt\$fY11KL&KC}jbn5v(0{)gJ%6(+wiDt,KJD1"e5S_8-hp'wGDTZ+t?dPgu>gr[.-k_wN$d#[':TIXQ`u`?9
Geert

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: View shortcut connection string
« Reply #13 on: January 27, 2014, 11:20:18 pm »
Definitely not base64. Its length is not a multiple of 4. Further (IIRC) it uses chars which are not part of base64. I'll try once I've setup a local RDBMS.

Thanks.

q.