diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2015-05-26 12:41:36 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2015-06-14 21:47:11 +0200 |
commit | 05d935cc9d04f03522d0bb44598d22d99b085926 (patch) | |
tree | 7cc82e7037293d8ef9f037f837db52d266416376 /src/providers/ipa/ipa_subdomains.h | |
parent | 89ddc9ed474e9ac2b1e7bccb0a58610babf26cf8 (diff) | |
download | sssd-05d935cc9d04f03522d0bb44598d22d99b085926.tar.gz sssd-05d935cc9d04f03522d0bb44598d22d99b085926.tar.xz sssd-05d935cc9d04f03522d0bb44598d22d99b085926.zip |
IPA: Include ipaNTTrustDirection in the attribute set for trusted domains
Allows to distinguish the trust directions for trusted domains. For
domains where we don't know the direction in server mode, we assume
two-way trusts.
Member domains do not have the direction, but rather the forest root
direction is used.
Reviewed-by: Sumit Bose <sbose@redhat.com>
Diffstat (limited to 'src/providers/ipa/ipa_subdomains.h')
-rw-r--r-- | src/providers/ipa/ipa_subdomains.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/providers/ipa/ipa_subdomains.h b/src/providers/ipa/ipa_subdomains.h index 94027c091..3c5161d14 100644 --- a/src/providers/ipa/ipa_subdomains.h +++ b/src/providers/ipa/ipa_subdomains.h @@ -59,6 +59,15 @@ void ipa_ad_subdom_remove(struct be_ctx *be_ctx, int ipa_ad_subdom_init(struct be_ctx *be_ctx, struct ipa_id_ctx *id_ctx); +errno_t ipa_server_get_trust_direction(struct sysdb_attrs *sd, + struct ldb_context *ldb_ctx, + uint32_t *_direction); + +const char *ipa_trust_dir2str(uint32_t direction); + +/* Utilities */ +#define IPA_TRUST_DIRECTION "ipaNTTrustDirection" + struct ldb_dn *ipa_subdom_ldb_dn(TALLOC_CTX *mem_ctx, struct ldb_context *ldb_ctx, struct sysdb_attrs *attrs); |