I have a corporate macOS computer where the password is managed by a Network Access Server for Active Directory. If an admin changes my password on their system and my computer is connected to the network, then my password changes. I have admin rights on that computer.

I am unable to query the keychain with

sudo -u username /usr/bin/security -v find-internet-password -g account -s server /Users/username/Library/Keychains/login.keychain

The command returns:

"acct"<blob>="No user account"

I have that internet password in my keychain and the same command works for a colleague whose computer is not managed by the network access server.

How can I query the keychain for a certain password?

You must log in to answer this question.

Browse other questions tagged .