diff options
author | Rob Crittenden <rcritten@redhat.com> | 2011-08-26 10:42:40 -0400 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2011-08-25 20:38:11 -0400 |
commit | a750ccb5a2c525e9c117f6139583a710ec4fb656 (patch) | |
tree | 7c599d56a35b9e0fa867ac1d93bb09b58d0661df /ipa-client/ipa-getkeytab.c | |
parent | 9dd689ff9d4e167f00802b39bea390b763a5a7e9 (diff) | |
download | freeipa-a750ccb5a2c525e9c117f6139583a710ec4fb656.tar.gz freeipa-a750ccb5a2c525e9c117f6139583a710ec4fb656.tar.xz freeipa-a750ccb5a2c525e9c117f6139583a710ec4fb656.zip |
Disable reverse lookups in ipa-join and ipa-getkeytab
This prevents broken DNS from causing enrollment problems.
https://fedorahosted.org/freeipa/ticket/1693
Diffstat (limited to 'ipa-client/ipa-getkeytab.c')
-rw-r--r-- | ipa-client/ipa-getkeytab.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ipa-client/ipa-getkeytab.c b/ipa-client/ipa-getkeytab.c index 166f46e63..5a521d041 100644 --- a/ipa-client/ipa-getkeytab.c +++ b/ipa-client/ipa-getkeytab.c @@ -577,6 +577,13 @@ static int ldap_set_keytab(krb5_context krbctx, goto error_out; } + /* Don't do DNS canonicalization */ + ret = ldap_set_option(ld, LDAP_OPT_X_SASL_NOCANON, LDAP_OPT_ON); + if (ret != LDAP_SUCCESS) { + fprintf(stderr, _("Unable to set LDAP_OPT_X_SASL_NOCANON\n")); + goto error_out; + } + version = LDAP_VERSION3; ret = ldap_set_option(ld, LDAP_OPT_PROTOCOL_VERSION, &version); if (ret != LDAP_SUCCESS) { |