Troubleshooting
Problem
When executing an LDAP Search command to query Microsoft Active Directory to list mailboxes on a Microsoft Exchange Server a Kerberos Unknown code krb5 7 error will be generated if no reverse DNS is established for the domain.
Symptom
Unknown code krb5 7 Kerboros error is produced during LDAP search from command line
Cause
The GSSAPI which is used with Kerberos requires that a reverse DNS be defined in the domain. GSSAPI resolves the reverse DNS of the IP address to which it's connecting and uses that.
Environment
Linux
Diagnosing The Problem
When executing an kinit and LDAP search command such as
#kinit user@example.com
#ldapsearch -Q -LLL -h <fully_qualified_Active_Directory_server_hostname> -b "dc=<domain>,dc=com" "(&(&(&(mailnickname=*)(mail=*))(&(objectCategory=person)(objectClass=user)))(msExchHomeServerName=*))" mail
the Unknown code krb5 7 Kerboros error is produced.
Resolving The Problem
Configure a Reverse DNS Lookup definition using the Active Directory DNS Manager application.
Was this topic helpful?
Document Information
Modified date:
17 December 2020
UID
swg21681940