From c9431749a0078df8bdf13490daac5f3467cc1c02 Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Thu, 10 Feb 2011 22:26:46 -0500 Subject: Let 389-ds start up even if Kerboros is not configured yet. The situation is if during installation /etc/krb5.conf either doesn't exist or configures no realms then 389-ds won't start up at all, causing the installation to fail. This will let the server start up in a degraded mode. Also need to make the sub_dict in ldapupdate.py handle no realm otherwise the installation will abort enabling the compat plugin. ticket 606 --- daemons/ipa-slapi-plugins/ipa-pwd-extop/ipa_pwd_extop.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'daemons/ipa-slapi-plugins/ipa-pwd-extop/ipa_pwd_extop.c') diff --git a/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipa_pwd_extop.c b/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipa_pwd_extop.c index 7a4591f8a..d76b7f7cd 100644 --- a/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipa_pwd_extop.c +++ b/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipa_pwd_extop.c @@ -1069,7 +1069,10 @@ static int ipapwd_start( Slapi_PBlock *pb ) krberr = krb5_init_context(&krbctx); if (krberr) { LOG_FATAL("krb5_init_context failed\n"); - return LDAP_OPERATIONS_ERROR; + /* Yes, we failed, but it is because /etc/krb5.conf doesn't exist + * or is misconfigured. Start up in a degraded mode. + */ + return LDAP_SUCCESS; } if (slapi_pblock_get(pb, SLAPI_TARGET_DN, &config_dn) != 0) { @@ -1079,8 +1082,8 @@ static int ipapwd_start( Slapi_PBlock *pb ) } if (ipapwd_getEntry(config_dn, &config_entry, NULL) != LDAP_SUCCESS) { - LOG_FATAL("No config Entry?\n"); - ret = LDAP_OPERATIONS_ERROR; + LOG_FATAL("No config Entry extop?\n"); + ret = LDAP_SUCCESS; goto done; } -- cgit