diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2010-06-07 17:21:25 +0200 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2010-06-09 08:29:47 -0400 |
commit | 6c09ee80f927c46ad8546f5603f0a94ec52a0e15 (patch) | |
tree | a18a094f199c71babb6c0ccbd7d08549e2c5c232 | |
parent | ea17887efffe046bfc018d375b28562d5e5d425a (diff) | |
download | sssd-6c09ee80f927c46ad8546f5603f0a94ec52a0e15.tar.gz sssd-6c09ee80f927c46ad8546f5603f0a94ec52a0e15.tar.xz sssd-6c09ee80f927c46ad8546f5603f0a94ec52a0e15.zip |
Skip empty attributes with warning
Fixes: #488
-rw-r--r-- | src/confdb/confdb_setup.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/confdb/confdb_setup.c b/src/confdb/confdb_setup.c index 1e9200e52..b2ac7e163 100644 --- a/src/confdb/confdb_setup.c +++ b/src/confdb/confdb_setup.c @@ -203,6 +203,10 @@ static int confdb_create_ldif(TALLOC_CTX *mem_ctx, const char *value = get_const_string_config_value(attr, &ret); if (ret != EOK) goto error; + if (value && value[0] == '\0') { + DEBUG(1, ("Attribute '%s' has empty value, ignoring\n", attrs[j])); + continue; + } ldif_attr = talloc_asprintf(tmp_ctx, "%s: %s\n", attrs[j], value); |