diff options
author | Simo Sorce <ssorce@redhat.com> | 2009-11-04 17:04:49 -0500 |
---|---|---|
committer | Simo Sorce <ssorce@redhat.com> | 2009-11-06 17:26:09 -0500 |
commit | 4bca21e23e0b0e2df610d7edb4b205698e8224c0 (patch) | |
tree | 72cb99d54107064d3bedb5e6f0b4da6f35fa54fd /server/providers/ldap/sdap.h | |
parent | 213b08986ee7ad623320761c51f9791b95d68679 (diff) | |
download | sssd-4bca21e23e0b0e2df610d7edb4b205698e8224c0.tar.gz sssd-4bca21e23e0b0e2df610d7edb4b205698e8224c0.tar.xz sssd-4bca21e23e0b0e2df610d7edb4b205698e8224c0.zip |
Unify parse routines, use maps in generic searches
This remove redundant code and also allows the generic search to be used to use
maps to convert attributes.
Diffstat (limited to 'server/providers/ldap/sdap.h')
-rw-r--r-- | server/providers/ldap/sdap.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/server/providers/ldap/sdap.h b/server/providers/ldap/sdap.h index 7e5c4b7b6..fec9eefaa 100644 --- a/server/providers/ldap/sdap.h +++ b/server/providers/ldap/sdap.h @@ -205,6 +205,11 @@ int sdap_get_map(TALLOC_CTX *memctx, int num_entries, struct sdap_attr_map **_map); +int sdap_parse_entry(TALLOC_CTX *memctx, + struct sdap_handle *sh, struct sdap_msg *sm, + 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); @@ -213,11 +218,6 @@ 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); -int sdap_parse_generic_entry(TALLOC_CTX *memctx, - struct sdap_handle *sh, - struct sdap_msg *sm, - struct sysdb_attrs **_attrs); - int sdap_get_msg_dn(TALLOC_CTX *memctx, struct sdap_handle *sh, struct sdap_msg *sm, char **_dn); |