dpward / rpms / sssd

Forked from rpms/sssd 3 years ago
Clone
Blob Blame History Raw
From 4ec714f1681355d95420733a40e3c37cd0bfe6ee Mon Sep 17 00:00:00 2001
From: Sumit Bose <sbose@redhat.com>
Date: Thu, 23 Jun 2016 11:58:30 +0200
Subject: [PATCH 22/27] IPA: read ipaNTAdditionalSuffixes for master and
 trusted domains

Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
(cherry picked from commit 39f21d2b61685362642d42bc2f94f829671cd5ef)
---
 src/providers/ipa/ipa_subdomains.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/providers/ipa/ipa_subdomains.c b/src/providers/ipa/ipa_subdomains.c
index a02a65d97dde68f1da900b9fdca05c54035ce005..263d6207960c232d08114bd0163b3fd03a690685 100644
--- a/src/providers/ipa/ipa_subdomains.c
+++ b/src/providers/ipa/ipa_subdomains.c
@@ -40,6 +40,7 @@
 #define IPA_SID "ipaNTSecurityIdentifier"
 #define IPA_TRUSTED_DOMAIN_SID "ipaNTTrustedDomainSID"
 #define IPA_RANGE_TYPE "ipaRangeType"
+#define IPA_ADDITIONAL_SUFFIXES "ipaNTAdditionalSuffixes"
 
 #define IPA_BASE_ID "ipaBaseID"
 #define IPA_ID_RANGE_SIZE "ipaIDRangeSize"
@@ -788,7 +789,8 @@ ipa_subdomains_master_send(TALLOC_CTX *mem_ctx,
     struct tevent_req *subreq;
     struct tevent_req *req;
     errno_t ret;
-    const char *attrs[] = { IPA_CN, IPA_FLATNAME, IPA_SID, NULL };
+    const char *attrs[] = { IPA_CN, IPA_FLATNAME, IPA_SID,
+                            IPA_ADDITIONAL_SUFFIXES, NULL };
 
     req = tevent_req_create(mem_ctx, &state,
                             struct ipa_subdomains_master_state);
@@ -939,7 +941,8 @@ ipa_subdomains_slave_send(TALLOC_CTX *mem_ctx,
     struct tevent_req *req;
     errno_t ret;
     const char *attrs[] = { IPA_CN, IPA_FLATNAME, IPA_TRUSTED_DOMAIN_SID,
-                            IPA_TRUST_DIRECTION, NULL };
+                            IPA_TRUST_DIRECTION, IPA_ADDITIONAL_SUFFIXES,
+                            NULL };
 
     req = tevent_req_create(mem_ctx, &state,
                             struct ipa_subdomains_slave_state);
-- 
2.4.11