|
|
2fc102 |
From d34211137c7e70563b073b83d773ae18688efbbc Mon Sep 17 00:00:00 2001
|
|
|
2fc102 |
From: Sumit Bose <sbose@redhat.com>
|
|
|
2fc102 |
Date: Thu, 6 Mar 2014 15:37:57 +0100
|
|
|
2fc102 |
Subject: [PATCH 107/107] IPA: Use GC for AD initgroup requests
|
|
|
2fc102 |
|
|
|
2fc102 |
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
|
|
|
2fc102 |
---
|
|
|
2fc102 |
src/providers/ipa/ipa_subdomains_id.c | 21 +++++++++++++++------
|
|
|
2fc102 |
1 file changed, 15 insertions(+), 6 deletions(-)
|
|
|
2fc102 |
|
|
|
2fc102 |
diff --git a/src/providers/ipa/ipa_subdomains_id.c b/src/providers/ipa/ipa_subdomains_id.c
|
|
|
2fc102 |
index 00993c496c1d100b37a780828c81492c2fac6157..978ccc261d7525662e835b867044b6a5238a29df 100644
|
|
|
2fc102 |
--- a/src/providers/ipa/ipa_subdomains_id.c
|
|
|
2fc102 |
+++ b/src/providers/ipa/ipa_subdomains_id.c
|
|
|
2fc102 |
@@ -307,13 +307,22 @@ ipa_get_ad_acct_send(TALLOC_CTX *mem_ctx,
|
|
|
2fc102 |
/* Currently only LDAP port for AD is used because POSIX
|
|
|
2fc102 |
* attributes are not replicated to GC by default
|
|
|
2fc102 |
*/
|
|
|
2fc102 |
- clist = talloc_zero_array(req, struct sdap_id_conn_ctx *, 2);
|
|
|
2fc102 |
- if (clist == NULL) {
|
|
|
2fc102 |
- ret = ENOMEM;
|
|
|
2fc102 |
- goto fail;
|
|
|
2fc102 |
+
|
|
|
2fc102 |
+ if ((state->ar->entry_type & BE_REQ_TYPE_MASK) == BE_REQ_INITGROUPS) {
|
|
|
2fc102 |
+ clist = ad_gc_conn_list(req, ad_id_ctx, state->user_dom);
|
|
|
2fc102 |
+ if (clist == NULL) {
|
|
|
2fc102 |
+ ret = ENOMEM;
|
|
|
2fc102 |
+ goto fail;
|
|
|
2fc102 |
+ }
|
|
|
2fc102 |
+ } else {
|
|
|
2fc102 |
+ clist = talloc_zero_array(req, struct sdap_id_conn_ctx *, 2);
|
|
|
2fc102 |
+ if (clist == NULL) {
|
|
|
2fc102 |
+ ret = ENOMEM;
|
|
|
2fc102 |
+ goto fail;
|
|
|
2fc102 |
+ }
|
|
|
2fc102 |
+ clist[0] = ad_id_ctx->ldap_ctx;
|
|
|
2fc102 |
+ clist[1] = NULL;
|
|
|
2fc102 |
}
|
|
|
2fc102 |
- clist[0] = ad_id_ctx->ldap_ctx;
|
|
|
2fc102 |
- clist[1] = NULL;
|
|
|
2fc102 |
|
|
|
2fc102 |
/* Now we already need ad_id_ctx in particular sdap_id_conn_ctx */
|
|
|
2fc102 |
sdom = sdap_domain_get(sdap_id_ctx->opts, state->user_dom);
|
|
|
2fc102 |
--
|
|
|
2fc102 |
1.8.5.3
|
|
|
2fc102 |
|