diff options
Diffstat (limited to 'src/providers/ldap')
-rw-r--r-- | src/providers/ldap/sdap_async_accounts.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/providers/ldap/sdap_async_accounts.c b/src/providers/ldap/sdap_async_accounts.c index bdaa9e9e..f949e46a 100644 --- a/src/providers/ldap/sdap_async_accounts.c +++ b/src/providers/ldap/sdap_async_accounts.c @@ -56,10 +56,12 @@ static int sdap_save_user(TALLOC_CTX *memctx, ret = sysdb_attrs_get_el(attrs, opts->user_map[SDAP_AT_USER_NAME].sys_name, &el); - if (ret) goto fail; if (el->num_values == 0) { ret = EINVAL; - goto fail; + } + if (ret) { + DEBUG(1, ("Failed to save the user - entry has no name attribute\n")); + return ret; } name = (const char *)el->values[0].data; |