Commit 92b7275 SSSD fails to store users if any of the requested attribute is empty.

1 file Authored by mzidek 5 years ago , Committed by jhrozek 5 years ago ,
SSSD fails to store users if any of the requested attribute is empty.

https://fedorahosted.org/sssd/ticket/1440

    
 1 @@ -223,6 +223,12 @@
 2                       goto fail;
 3                   }
 4                   for (i = 0; vals[i]; i++) {
 5 +                     if (vals[i]->bv_len == 0) {
 6 +                         DEBUG(SSSDBG_MINOR_FAILURE,
 7 +                               ("Value of attribute [%s] is empty. "
 8 +                                "Skipping this value.\n", str));
 9 +                         continue;
10 +                     }
11                       if (base64) {
12                           v.data = (uint8_t *)sss_base64_encode(attrs,
13                                   (uint8_t *)vals[i]->bv_val, vals[i]->bv_len);