diff options
author | Rich Megginson <rmeggins@redhat.com> | 2009-08-25 11:44:58 -0600 |
---|---|---|
committer | Rich Megginson <rmeggins@redhat.com> | 2009-08-25 13:18:50 -0600 |
commit | 66aa2197b7de316f540fe924ea3435c9275a82d7 (patch) | |
tree | 1e96f3d672174781acef2659748beb09ccd84bd8 | |
parent | 5d5ce8ed4a3e37e49f4cc0fb3da17bb2d248d61a (diff) | |
download | ds-66aa2197b7de316f540fe924ea3435c9275a82d7.tar.gz ds-66aa2197b7de316f540fe924ea3435c9275a82d7.tar.xz ds-66aa2197b7de316f540fe924ea3435c9275a82d7.zip |
Fails to start if attrcrypt can't unwrap keys
https://bugzilla.redhat.com/show_bug.cgi?id=519065
Resolves: 519065
Bug Description: Fails to start if attrcrypt can't unwrap keys
Reviewed by: nhosoi (Thanks!)
Fix Description: If not using the attrcrypt feature, just return success
if the keys could not be unwrapped.
Platforms tested: RHEL5 x86_64
Flag Day: no
Doc impact: no
-rw-r--r-- | ldap/servers/slapd/back-ldbm/ldbm_attrcrypt.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ldap/servers/slapd/back-ldbm/ldbm_attrcrypt.c b/ldap/servers/slapd/back-ldbm/ldbm_attrcrypt.c index 763bd2c9..6a935496 100644 --- a/ldap/servers/slapd/back-ldbm/ldbm_attrcrypt.c +++ b/ldap/servers/slapd/back-ldbm/ldbm_attrcrypt.c @@ -473,6 +473,10 @@ attrcrypt_init(ldbm_instance *li) ret = attrcrypt_cipher_init(li, ace, private_key, public_key, acs); if (ret) { LDAPDebug(LDAP_DEBUG_ANY,"Failed to initialize cipher %s in attrcrypt_init\n", ace->cipher_display_name, 0, 0); + if (!li->attrcrypt_configured) { + /* if not using attrcrypt, just return success */ + ret = 0; + } slapi_ch_free((void **)&acs); } else { /* Since we succeeded, add the acs to the backend instance list */ |