I'm writing an LDAP Browser app using SwiftUI. I tested my LDAP code using a command line app that uses the exact same libraries and it successfully connects to my LDAP server over a TLS connection. I did need to install the CA cert into the system keychain.
The SwiftUI version, using the exact same code and parameters returns an "Unknown CA" error. It works fine without TLS. Can anyone explain why certificate validation is different for a GUI app?
If you build OpenLDAP from source then it’s like any other open source library:
-
You can dig into the code yourself to find out what’s going wrong.
-
Or you can seek help via the support resources for that library.
While I have played around with OpenLDAP myself in the past, that experience was so minimal that I don’t have any insight to share on this issue.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"