From c6257286e9a31dfd42d28c99a22a69e2c4717a61 Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Wed, 12 Jan 2011 16:41:26 -0500 Subject: Delete attributes that are removed from LDAP Sometimes, a value in LDAP will cease to exist (the classic example being shadowExpire). We need to make sure we purge that value from SSSD's sysdb as well. https://fedorahosted.org/sssd/ticket/750 --- src/providers/proxy/proxy_id.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/providers/proxy') diff --git a/src/providers/proxy/proxy_id.c b/src/providers/proxy/proxy_id.c index 4fd656fed..3df21063c 100644 --- a/src/providers/proxy/proxy_id.c +++ b/src/providers/proxy/proxy_id.c @@ -105,7 +105,8 @@ static int get_pw_name(TALLOC_CTX *mem_ctx, pwd->pw_gecos, pwd->pw_dir, pwd->pw_shell, - NULL, ctx->entry_cache_timeout); + NULL, NULL, + ctx->entry_cache_timeout); if (ret) { goto done; } @@ -219,7 +220,8 @@ static int get_pw_uid(TALLOC_CTX *mem_ctx, pwd->pw_gecos, pwd->pw_dir, pwd->pw_shell, - NULL, ctx->entry_cache_timeout); + NULL, NULL, + ctx->entry_cache_timeout); if (ret) { goto done; } @@ -358,7 +360,8 @@ again: pwd->pw_gecos, pwd->pw_dir, pwd->pw_shell, - NULL, ctx->entry_cache_timeout); + NULL, NULL, + ctx->entry_cache_timeout); if (ret) { /* Do not fail completely on errors. * Just report the failure to save and go on */ @@ -933,7 +936,8 @@ static int get_initgr(TALLOC_CTX *mem_ctx, pwd->pw_gecos, pwd->pw_dir, pwd->pw_shell, - NULL, ctx->entry_cache_timeout); + NULL, NULL, + ctx->entry_cache_timeout); if (ret) { goto done; } -- cgit