diff options
author | Simo Sorce <ssorce@redhat.com> | 2010-02-28 01:44:42 -0500 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2010-04-12 09:22:12 -0400 |
commit | 1c733ece101ca43b84c59a8dc7953346312dbf64 (patch) | |
tree | 672ba8c8fed42fefe8a4f3fa67a8ff38397e874a /src/db/sysdb.h | |
parent | 0995e4cc173577122bea5a1d4698262fd0e9c200 (diff) | |
download | sssd-1c733ece101ca43b84c59a8dc7953346312dbf64.tar.gz sssd-1c733ece101ca43b84c59a8dc7953346312dbf64.tar.xz sssd-1c733ece101ca43b84c59a8dc7953346312dbf64.zip |
sysdb: convert sysdb_search_user_by_name/uid
Diffstat (limited to 'src/db/sysdb.h')
-rw-r--r-- | src/db/sysdb.h | 30 |
1 files changed, 13 insertions, 17 deletions
diff --git a/src/db/sysdb.h b/src/db/sysdb.h index b7c53e1d0..9e638f500 100644 --- a/src/db/sysdb.h +++ b/src/db/sysdb.h @@ -352,23 +352,19 @@ int sysdb_search_entry(TALLOC_CTX *mem_ctx, struct ldb_message ***msgs); /* Search User (by uid or name) */ -struct tevent_req *sysdb_search_user_by_name_send(TALLOC_CTX *mem_ctx, - struct tevent_context *ev, - struct sysdb_ctx *sysdb, - struct sysdb_handle *handle, - struct sss_domain_info *domain, - const char *name, - const char **attrs); -struct tevent_req *sysdb_search_user_by_uid_send(TALLOC_CTX *mem_ctx, - struct tevent_context *ev, - struct sysdb_ctx *sysdb, - struct sysdb_handle *handle, - struct sss_domain_info *domain, - uid_t uid, - const char **attrs); -int sysdb_search_user_recv(struct tevent_req *req, - TALLOC_CTX *mem_ctx, - struct ldb_message **msg); +int sysdb_search_user_by_name(TALLOC_CTX *mem_ctx, + struct sysdb_ctx *ctx, + struct sss_domain_info *domain, + const char *name, + const char **attrs, + struct ldb_message **msg); + +int sysdb_search_user_by_uid(TALLOC_CTX *mem_ctx, + struct sysdb_ctx *ctx, + struct sss_domain_info *domain, + uid_t uid, + const char **attrs, + struct ldb_message **msg); /* Search Group (gy gid or name) */ struct tevent_req *sysdb_search_group_by_name_send(TALLOC_CTX *mem_ctx, |