Discussion:
[iterm2-discuss] Is there any way to import a lot of passwords to the Password Manager?
Flare Han
2016-10-20 01:10:06 UTC
Permalink
My company's servers will update the passwords every few months .

Is there any way to import a lot of passwords to the Password Manager?
--
You received this message because you are subscribed to the Google Groups "iterm2-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iterm2-discuss+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
KellyC
2016-10-20 12:47:24 UTC
Permalink
Post by Flare Han
Is there any way to import a lot of passwords to the Password Manager?
While googling a similar topic a couple months ago, I found

Save the password in keychain, either by the GUI (see
https://www.netmeister.org/blog/keychain-passwords.html) or:

security add-generic-password -a ${USER} -s LDAPbindPW -w
'<your-password-goes-here>'

The thing I was playing with at the time would have used the above via
something like this in my .bashrc:

LDAP_PW=$(security find-generic-password -a ${USER} -s LDAPbindPW -w)

I also found you can use variations of the security command to list and see
what passwords iTerm2 has created.
From that, you can figure out how to use a security command to
create/update what iTerm2 uses.

security add-generic-password -U -s iTerm2 -T /Applications/iTerm.app -a
'<hostname> <userid>' -w '<userid's password>' -l 'a label'

iTerm2’s password manager shows the account name (the -a switch). So you
don’t really need the -l label. The -l label makes it easier to see in
Keychain Access.
--
You received this message because you are subscribed to the Google Groups "iterm2-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iterm2-discuss+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Flare Han
2016-10-20 14:25:06 UTC
Permalink
That's great! Thank you !
--
You received this message because you are subscribed to the Google Groups "iterm2-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iterm2-discuss+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...