diff options
author | Lukas Slebodnik <lslebodn@redhat.com> | 2013-05-14 17:59:34 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-05-23 11:45:38 +0200 |
commit | b0ab39364df453d4ec65d7d6e05a6530895ce3a6 (patch) | |
tree | 0ff37e7e293cbf1e88f1b8f693b8685f16ac2d48 /src/providers/ldap | |
parent | 4188968d18f31806da808d922bcd48501a02f92d (diff) | |
download | sssd-b0ab39364df453d4ec65d7d6e05a6530895ce3a6.tar.gz sssd-b0ab39364df453d4ec65d7d6e05a6530895ce3a6.tar.bz2 sssd-b0ab39364df453d4ec65d7d6e05a6530895ce3a6.zip |
Removing unused functions.
This patch remove unused functions sdap_parse_user and sdap_parse_group
Diffstat (limited to 'src/providers/ldap')
-rw-r--r-- | src/providers/ldap/sdap.c | 28 | ||||
-rw-r--r-- | src/providers/ldap/sdap.h | 8 |
2 files changed, 0 insertions, 36 deletions
diff --git a/src/providers/ldap/sdap.c b/src/providers/ldap/sdap.c index 288d2d59..3a820f62 100644 --- a/src/providers/ldap/sdap.c +++ b/src/providers/ldap/sdap.c @@ -300,34 +300,6 @@ done: return ret; } -/* This function converts an ldap message into a sysdb_attrs structure. - * It converts only known user attributes, the rest are ignored. - * If the entry is not that of an user an error is returned. - * The original DN is stored as an attribute named originalDN */ - -int sdap_parse_user(TALLOC_CTX *memctx, struct sdap_options *opts, - struct sdap_handle *sh, struct sdap_msg *sm, - struct sysdb_attrs **_attrs, char **_dn) -{ - - return sdap_parse_entry(memctx, sh, sm, opts->user_map, - SDAP_OPTS_USER, _attrs, _dn); -} - -/* This function converts an ldap message into a sysdb_attrs structure. - * It converts only known group attributes, the rest are ignored. - * If the entry is not that of an user an error is returned. - * The original DN is stored as an attribute named originalDN */ - -int sdap_parse_group(TALLOC_CTX *memctx, struct sdap_options *opts, - struct sdap_handle *sh, struct sdap_msg *sm, - struct sysdb_attrs **_attrs, char **_dn) -{ - - return sdap_parse_entry(memctx, sh, sm, opts->group_map, - SDAP_OPTS_GROUP, _attrs, _dn); -} - /* Parses an LDAPDerefRes into sdap_deref_attrs structure */ errno_t sdap_parse_deref(TALLOC_CTX *mem_ctx, struct sdap_attr_map_info *minfo, diff --git a/src/providers/ldap/sdap.h b/src/providers/ldap/sdap.h index 8dbf3849..4c9023fe 100644 --- a/src/providers/ldap/sdap.h +++ b/src/providers/ldap/sdap.h @@ -435,14 +435,6 @@ int sdap_parse_entry(TALLOC_CTX *memctx, struct sdap_attr_map *map, int attrs_num, struct sysdb_attrs **_attrs, char **_dn); -int sdap_parse_user(TALLOC_CTX *memctx, struct sdap_options *opts, - struct sdap_handle *sh, struct sdap_msg *sm, - struct sysdb_attrs **_attrs, char **_dn); - -int sdap_parse_group(TALLOC_CTX *memctx, struct sdap_options *opts, - struct sdap_handle *sh, struct sdap_msg *sm, - struct sysdb_attrs **_attrs, char **_dn); - errno_t sdap_parse_deref(TALLOC_CTX *mem_ctx, struct sdap_attr_map_info *minfo, size_t num_maps, |