diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2011-01-12 16:41:26 -0500 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2011-01-21 16:34:54 -0500 |
commit | c6257286e9a31dfd42d28c99a22a69e2c4717a61 (patch) | |
tree | b51f2c14c4d916ca385c38d002d6fd8e136bebb3 /src/providers/ldap/ldap_common.h | |
parent | c3a2e4aae7198a5ec2ac8ff028d2379668dc8aa1 (diff) | |
download | sssd_unused-c6257286e9a31dfd42d28c99a22a69e2c4717a61.tar.gz sssd_unused-c6257286e9a31dfd42d28c99a22a69e2c4717a61.tar.xz sssd_unused-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/ldap/ldap_common.h')
-rw-r--r-- | src/providers/ldap/ldap_common.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/providers/ldap/ldap_common.h b/src/providers/ldap/ldap_common.h index ba8d1303..3cbf3f60 100644 --- a/src/providers/ldap/ldap_common.h +++ b/src/providers/ldap/ldap_common.h @@ -142,4 +142,17 @@ int setup_child(struct sdap_id_ctx *ctx); errno_t string_to_shadowpw_days(const char *s, long *d); + +errno_t get_sysdb_attr_name(TALLOC_CTX *mem_ctx, + struct sdap_attr_map *map, + size_t map_size, + const char *ldap_name, + char **sysdb_name); + +errno_t list_missing_attrs(TALLOC_CTX *mem_ctx, + struct sdap_attr_map *map, + size_t map_size, + const char **expected_attrs, + struct sysdb_attrs *recvd_attrs, + char ***missing_attrs); #endif /* _LDAP_COMMON_H_ */ |