diff options
Diffstat (limited to 'src/responder/ifp/ifp_users.h')
-rw-r--r-- | src/responder/ifp/ifp_users.h | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/src/responder/ifp/ifp_users.h b/src/responder/ifp/ifp_users.h new file mode 100644 index 000000000..a0a079f48 --- /dev/null +++ b/src/responder/ifp/ifp_users.h @@ -0,0 +1,57 @@ +/* + Authors: + Pavel Březina <pbrezina@redhat.com> + + Copyright (C) 2015 Red Hat + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. +*/ + +#ifndef IFP_USERS_H_ +#define IFP_USERS_H_ + +#include "responder/ifp/ifp_iface_generated.h" +#include "responder/ifp/ifp_private.h" + +#define IFP_PATH_USERS "/org/freedesktop/sssd/infopipe/Users" +#define IFP_PATH_USERS_TREE IFP_PATH_USERS SBUS_SUBTREE_SUFFIX + +/* Utility functions */ + +char * ifp_users_build_path_from_msg(TALLOC_CTX *mem_ctx, + struct sss_domain_info *domain, + struct ldb_message *msg); + +/* org.freedesktop.sssd.infopipe.Users */ + +int ifp_users_find_by_name(struct sbus_request *sbus_req, + void *data, + const char *name); + +int ifp_users_find_by_id(struct sbus_request *sbus_req, + void *data, + uint32_t id); + +int ifp_users_list_by_name(struct sbus_request *sbus_req, + void *data, + const char *filter, + uint32_t limit); + +int ifp_users_list_by_domain_and_name(struct sbus_request *sbus_req, + void *data, + const char *domain, + const char *filter, + uint32_t limit); + +#endif /* IFP_USERS_H_ */ |