ldapsearch
ldapsearch fails, unable to contact server.
Ever since I began using OS X Sierra, I have not been able to search LDAP servers using ldapsearch. I get the following error in the terminal:
ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)
I also see the following two errors in the console:
/usr/bin/ldapsearch (/usr/lib/system/libsystem_trace.dylib)
subsystem: com.apple.securityd, category: secpref, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 2, enable_private_data: 0
/usr/bin/ldapsearch (/usr/lib/system/libsystem_trace.dylib)
subsystem: com.apple.network, category: , enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 2, enable_private_data: 0
I have tried disabling the firewall, that doesn't help. I have seen this in two MBPs, one was an older 2012 that had a clean install of Sierra. The second is my new 😎 MBP, with a factory OS install.
Is this a bug? Any debugging help would be appreciated.
Thanks in advance,
Erik
MacBook Pro with Retina display, macOS Sierra (10.12.3)