[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#64977: 29.1; `auth-source-macos-keychain-search' handles :user key i
From: |
LdBeth |
Subject: |
bug#64977: 29.1; `auth-source-macos-keychain-search' handles :user key incorrectly |
Date: |
Sat, 12 Aug 2023 07:55:21 -0500 |
User-agent: |
Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (Gojō) APEL-LB/10.8 EasyPG/1.0.0 Emacs/29.1 (x86_64-apple-darwin20.6.0) MULE/6.0 (HANACHIRUSATO) |
From man security(1):
-r protocol Specify protocol (optional four-character SecProtocolType,
e.g. "http", "ftp ")
https://www.unix.com/man-page/osx/1/security/
To test this function, first add password using:
$ security add-internet-password -s irc.libera.chat -a ldb -r 'irc ' -w 'passwd'
In emacs, use something like
(auth-source-search :user "ldb" :port "irc")
should about to retrieve the password.
ldb
>>>>> In <87leegqyk3.fsf@gmx.de>
>>>>> Michael Albinus <michael.albinus@gmx.de> wrote:
> Eli Zaretskii <eliz@gnu.org> writes:
> Hi Eli,
>>> Finally I get some time looking at this issue.
>>>
>>> I think the bug is caused by `auth-source-macos-keychain-search-items'
>>> forget the fact that :users can be a list of string instead of a string.
>>>
>>> The `auth-source-macos-keychain-search-items' also did
>>> not handle the protocol argument correctly. The `security' command
>>> needs the "-r" argument to be a string of 4 characters. This is also
>>> fixed in the patch attached.
>>
>> Michael, any comments to the problem and the patch?
> The change in :user seems to be OK. I cannot comment the change in
> :port, because I don't use macOS, and cannot test anything.
> Best regards, Michael.
- bug#64977: 29.1; `auth-source-macos-keychain-search' handles :user key incorrectly, J.P., 2023/08/02
- bug#64977: 29.1; `auth-source-macos-keychain-search' handles :user key incorrectly, LdBeth, 2023/08/08
- bug#64977: 29.1; `auth-source-macos-keychain-search' handles :user key incorrectly, Eli Zaretskii, 2023/08/12
- bug#64977: 29.1; `auth-source-macos-keychain-search' handles :user key incorrectly, Michael Albinus, 2023/08/12
- bug#64977: 29.1; `auth-source-macos-keychain-search' handles :user key incorrectly,
LdBeth <=
- bug#64977: 29.1; `auth-source-macos-keychain-search' handles :user key incorrectly, Michael Albinus, 2023/08/12
- bug#64977: 29.1; `auth-source-macos-keychain-search' handles :user key incorrectly, LdBeth, 2023/08/12
- bug#64977: 29.1; `auth-source-macos-keychain-search' handles :user key incorrectly, Michael Albinus, 2023/08/12
- bug#64977: 29.1; `auth-source-macos-keychain-search' handles :user key incorrectly, LdBeth, 2023/08/12
- bug#64977: 29.1; `auth-source-macos-keychain-search' handles :user key incorrectly, Michael Albinus, 2023/08/13