On 02/14/2014 12:42 PM, Pavel Březina wrote:
https://fedorahosted.org/sssd/ticket/2203
Also for 1.11.
From 6d7106aaabeccaca36eeb4d32c9bcea156877e28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20B=C5=99ezina?= <[email protected]> Date: Fri, 14 Feb 2014 12:39:13 +0100 Subject: [PATCH] sysdb: warn to syslog when removing object with same uid/gid Resolves: https://fedorahosted.org/sssd/ticket/2203 --- src/db/sysdb_ops.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/db/sysdb_ops.c b/src/db/sysdb_ops.c index a5dfd443c84b87609881f9042b3e82958c3b0e5f..cff50cac2f9c3ff56fd5c1ca621b05bd6bfea98d 100644 --- a/src/db/sysdb_ops.c +++ b/src/db/sysdb_ops.c @@ -1811,6 +1811,9 @@ int sysdb_store_user(struct sysdb_ctx *sysdb, DEBUG(SSSDBG_MINOR_FAILURE, ("A user with the same UID [%llu] was removed from the " "cache\n", (unsigned long long) uid)); + sss_log(SSS_LOG_WARNING, "A user with the same UID [%llu] was " + "removed from the cache\n", (unsigned long long) uid); + ret = sysdb_add_user(sysdb, domain, name, uid, gid, gecos, homedir, shell, orig_dn, attrs, cache_timeout, now); } @@ -1968,6 +1971,9 @@ int sysdb_store_group(struct sysdb_ctx *sysdb, DEBUG(SSSDBG_MINOR_FAILURE, ("A group with the same GID [%llu] was removed from the " "cache\n", (unsigned long long) gid)); + sss_log(SSS_LOG_WARNING, "A group with the same GID [%llu] was " + "removed from the cache\n", (unsigned long long) gid); + ret = sysdb_add_group(sysdb, domain, name, gid, attrs, cache_timeout, now); } -- 1.7.11.7
From 48ede856df611eca2337b7715b018eae1c5b3b97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20B=C5=99ezina?= <[email protected]> Date: Fri, 14 Feb 2014 12:39:13 +0100 Subject: [PATCH] sysdb: warn to syslog when removing object with same uid/gid Resolves: https://fedorahosted.org/sssd/ticket/2203 --- src/db/sysdb_ops.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/db/sysdb_ops.c b/src/db/sysdb_ops.c index 3065be6444070a8d1fceddb323cff883434eacf4..57616209b76ccc43ff2776594a61c2be44ed06d7 100644 --- a/src/db/sysdb_ops.c +++ b/src/db/sysdb_ops.c @@ -1795,6 +1795,9 @@ int sysdb_store_user(struct sss_domain_info *domain, DEBUG(SSSDBG_MINOR_FAILURE, "A user with the same UID [%llu] was removed from the " "cache\n", (unsigned long long) uid); + sss_log(SSS_LOG_WARNING, "A user with the same UID [%llu] was " + "removed from the cache\n", (unsigned long long) uid); + ret = sysdb_add_user(domain, name, uid, gid, gecos, homedir, shell, orig_dn, attrs, cache_timeout, now); } @@ -1951,6 +1954,9 @@ int sysdb_store_group(struct sss_domain_info *domain, DEBUG(SSSDBG_MINOR_FAILURE, "A group with the same GID [%llu] was removed from the " "cache\n", (unsigned long long) gid); + sss_log(SSS_LOG_WARNING, "A group with the same GID [%llu] was " + "removed from the cache\n", (unsigned long long) gid); + ret = sysdb_add_group(domain, name, gid, attrs, cache_timeout, now); } -- 1.7.11.7
_______________________________________________ sssd-devel mailing list [email protected] https://lists.fedorahosted.org/mailman/listinfo/sssd-devel
