diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2012-01-21 12:37:36 -0500 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2012-01-27 09:02:01 -0500 |
commit | aec5785126354bd8b192f63fe04ea08dae9c0705 (patch) | |
tree | 817ba377568db20761ce0f26865a48624a278268 /src/providers/proxy/proxy.h | |
parent | 8c3a4809b3420657289b42f028a1c9019b112991 (diff) | |
download | sssd-aec5785126354bd8b192f63fe04ea08dae9c0705.tar.gz sssd-aec5785126354bd8b192f63fe04ea08dae9c0705.tar.xz sssd-aec5785126354bd8b192f63fe04ea08dae9c0705.zip |
PROXY: add support for service lookups (non-enumeration)
Diffstat (limited to 'src/providers/proxy/proxy.h')
-rw-r--r-- | src/providers/proxy/proxy.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/providers/proxy/proxy.h b/src/providers/proxy/proxy.h index 41981fd85..d94846133 100644 --- a/src/providers/proxy/proxy.h +++ b/src/providers/proxy/proxy.h @@ -70,6 +70,17 @@ struct proxy_nss_ops { enum nss_status (*getnetgrent_r)(struct __netgrent *result, char *buffer, size_t buflen, int *errnop); enum nss_status (*endnetgrent)(struct __netgrent *result); + + /* Services */ + enum nss_status (*getservbyname_r)(const char *name, + const char *protocol, + struct servent *result, + char *buffer, size_t buflen, + int *errnop); + enum nss_status (*getservbyport_r)(int port, const char *protocol, + struct servent *result, + char *buffer, size_t buflen, + int *errnop); }; struct authtok_conv { @@ -145,4 +156,17 @@ errno_t get_netgroup(struct proxy_id_ctx *ctx, struct sss_domain_info *dom, const char *name); +errno_t get_serv_byname(struct proxy_id_ctx *ctx, + struct sysdb_ctx *sysdb, + struct sss_domain_info *dom, + const char *name, + const char *protocol); + +errno_t +get_serv_byport(struct proxy_id_ctx *ctx, + struct sysdb_ctx *sysdb, + struct sss_domain_info *dom, + const char *be_filter, + const char *protocol); + #endif /* __PROXY_H__ */ |