Can I use multiple URLs in the URL field of KeePass?

65

18

I am using KeePass version 2.19. What I would like to do is have more than just one URL address associated with a given user name and password.

The entry for a given website might look something like this...

Title
google

User Name
email

Password
pass

URL
https://accounts.google.com/ServiceLogin?hl=en&continue=https://www.google.com/
https://accounts.google.com/ServiceLogin?hl=sv&continue=https://www.google.com/
https://accounts.google.com/ServiceLogin?hl=de&continue=https://www.google.com/

As you can see the ?hl=en changes into ?hl=sv and then to ?hl=de for the three different languages in which I wish to view the Google log-in page.

But this of course could be something completely different, like different web services from the same provider like YouTube and Gmail by Google. Very much like SE where you have several websites but only use one user name and password.

I imagine something along the lines of having multiple entries for one and the same website, where KeePass would actually prompt you to choose which one you want to use. So you have several user names and passwords that use the same URL. But is it possible to have several URLs using the same user name and password, so that KeePass asks me "to which of the following three URLs do you want to auto-log into with this password"?

Samir

Posted 2012-06-07T21:28:59.793

Reputation: 17 919

4For this case you could just use accounts.google.com/ServiceLogin as the URL and it will match all the above cases – Zero – 2015-10-14T02:12:24.540

This happens much more often for ssh:// and scp:// – kubanczyk – 2018-02-25T22:45:35.957

Answers

85

You can create a copy of a password entry:

enter image description here

And then only use references for username and password in the new entry:

enter image description here

Then, adjust the URL in the new entry.

Der Hochstapler

Posted 2012-06-07T21:28:59.793

Reputation: 77 228

2I'm wondering if there is another option, since the menu entry says URL(s) > implying that it should be possible to have multiple URLs. – kapex – 2014-08-05T13:39:45.260

@kapep Very good observation. Maybe it could be worth examining the source or having a closer look at the documentation. – Der Hochstapler – 2014-08-05T20:24:58.797

3@kapep After inspecting the source, it is my understanding that the label says "URL(s)" because the actions in it can apply to all currently selected password entries. I didn't see anything that would indicate multiple URLs being supported in a single password entry. – Der Hochstapler – 2014-08-08T14:41:39.067

Perfect! So when I want to change the password I can only change it in the original entry? I'm thinking what if I have different titles for all the three, how to find the original one. But I guess that's only a matter of getting used to this and having some meaningful titles that are easy to find. – Samir – 2012-06-07T21:58:45.950

@Sammy: I actually don't use this feature myself. I mostly rely on Auto-Type for everything. You can even define custom attributes in an entry and reference those in the Auto-Type pattern. The possibilities are endless :D – Der Hochstapler – 2012-06-07T22:19:38.420

28

The answer from Oliver Salzburg is very good.

Complementing it, if you already have an entry and want to link another entry, go to the entry, properties, then tools, insert field reference and link to the type you need.

See an example here:
enter image description here

alvaro

Posted 2012-06-07T21:28:59.793

Reputation: 381

0

Switch to KeePassXC. As of the 2.5.0 release, this now works as you would expect.

colan

Posted 2012-06-07T21:28:59.793

Reputation: 439