Quick one today 🏃♂️
When you work on multiple tenants, you’ll probably have to manage a whole lot of different logins. Now – as this is just a quick lifehack – let’s not go into why you should be using a password manager, I’ll assume that you know that already.
This posts looks at how to improve the experience when using KeePass to manage your accounts.
For my everyday it is perfect to be able to create a different database for every customer and store service-account credentials, logins and/or other sensitive information in one place. I can then store the file in SharePoint or OneDrive to able to access it from anywhere.
You can take a look at KeePass and download it for free here: https://keepass.info/
KeePass is distributed under the GNU General Public License version 2 or later.
(I’m in no way associated with KeePass.)
KeyPass has a super helpful feature called “Auto-Type”: You can have it automatically type in your username and password in a login mask by typing Ctrl + V.
Why is typing it in so cool? Well, mostly because it also works through a remote connection!
This has saved me from severe headache in many a SharePoint migration…
KeePass AutoType is designed for Windows System-Dialogues, so it does the following:
Wonderful for local and domain accounts – not suitable for AAD login prompts.
The AAD login prompt
The TAB-order on an AAD prompt looks different:
- TAB takes you to the link to create a new account.
- TAB takes you to the link to reset your access.
- TAB takes you to the “Next” button – this is where we want to go.
So if you use Auto-Type
-> the username is entered correctly
-> the focus jumps to the first link
-> the password is typed into Nirvana
-> the link to create a new account is clicked
Luckily, KeePass allows us to set a custom Auto-Type sequence for every entry! This is the guide for doing it in KeePass 2 – if you’re on an older version: why?
I’ve tried the following sequence and it works like a charm:
This new sequence will
-> enter the username
-> jump to the first link
-> jump to the second link
-> jump to the “Next” button and click it
-> wait for 2 seconds to allow AAD to go to the next login step
-> enter the password
-> jump to first link
-> jump to the “Sign in” button and click it
To set it up like this, follow these steps:
- Right click your entry.
- Click “Edit entry”.
- Switch to the “Auto-Type” tab.
- Select “Override default sequence:”.
- Enter the sequence described above.
- Select “OK.
If anything is unclear or you are interested in one of the things I left out here, let me know. You might be just the motivation I need to write another article 😉
I’m going to be honest – comments on blogs are not really on my radar usually. I’d recommend trying Twitter: @considerITman