diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2015-06-03 17:57:29 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2015-06-04 13:58:15 +0200 |
commit | e7e61c777e13e0bb07d29b5d1b53e21ca199bf0f (patch) | |
tree | 8df9ba7219d20459d7cfd2d267022acd2c32d545 /src/db | |
parent | 366c3020ca995563d2be1bb871a1164cca2f5427 (diff) | |
download | sssd-e7e61c777e13e0bb07d29b5d1b53e21ca199bf0f.tar.gz sssd-e7e61c777e13e0bb07d29b5d1b53e21ca199bf0f.tar.xz sssd-e7e61c777e13e0bb07d29b5d1b53e21ca199bf0f.zip |
LDAP: Do not print verbose DEBUG messages from providers that don't set UUID
https://fedorahosted.org/sssd/ticket/2666
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
Diffstat (limited to 'src/db')
-rw-r--r-- | src/db/sysdb_ops.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/db/sysdb_ops.c b/src/db/sysdb_ops.c index 9afb0d7d7..d34583787 100644 --- a/src/db/sysdb_ops.c +++ b/src/db/sysdb_ops.c @@ -3795,7 +3795,12 @@ errno_t sysdb_handle_original_uuid(const char *orig_name, struct ldb_message_element *el; char guid_str_buf[GUID_STR_BUF_SIZE]; - if (orig_name == NULL || src_attrs == NULL || src_name == NULL + if (orig_name == NULL) { + /* This provider doesn't handle UUIDs */ + return ENOENT; + } + + if (src_attrs == NULL || src_name == NULL || dest_attrs == NULL || dest_name == NULL) { return EINVAL; } |