LDAP fails to retrieve password from keychain

Number:rdar://FB7673464 Date Originated:2020-04-23
Status:Open Resolved:
Product:Contacts Product Version:various
Classification: Reproducible:Yes
I have configured a LDAP account with authentication. The account information is properly stored in the keychain. When I want to look up a contact in the Contacts.app or Mail.app I get 'No results'. Checking the logs I see 
Contacts: (LDAP) Could not get password: Error Domain=SecKeychain Code=-25300 "Password for USER@ldap.X.Y:port# not found"

I see the same behaviour under macOS 10.13.6, 10.15.4.


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!