summaryrefslogtreecommitdiffstats
path: root/src/providers/proxy
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2011-01-12 16:41:26 -0500
committerStephen Gallagher <sgallagh@redhat.com>2011-01-21 16:34:54 -0500
commitc6257286e9a31dfd42d28c99a22a69e2c4717a61 (patch)
treeb51f2c14c4d916ca385c38d002d6fd8e136bebb3 /src/providers/proxy
parentc3a2e4aae7198a5ec2ac8ff028d2379668dc8aa1 (diff)
downloadsssd-c6257286e9a31dfd42d28c99a22a69e2c4717a61.tar.gz
sssd-c6257286e9a31dfd42d28c99a22a69e2c4717a61.tar.xz
sssd-c6257286e9a31dfd42d28c99a22a69e2c4717a61.zip
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
Diffstat (limited to 'src/providers/proxy')
-rw-r--r--src/providers/proxy/proxy_id.c12
1 files changed, 8 insertions, 4 deletions
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;
}