summaryrefslogtreecommitdiffstats
path: root/daemons/ipa-slapi-plugins/ipa-extdom-extop/ipa_extdom_extop.c
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2013-07-03 14:27:14 +0200
committerAlexander Bokovoy <abokovoy@redhat.com>2013-07-11 12:39:27 +0300
commit18c5e483db719442de2965754ce912d0e4a02f61 (patch)
tree89c02721f1d09774ebfcd2d96345edeedd1a11d5 /daemons/ipa-slapi-plugins/ipa-extdom-extop/ipa_extdom_extop.c
parentcf97590e979b680ee34ecbdb504d601ad45fb50a (diff)
downloadfreeipa-18c5e483db719442de2965754ce912d0e4a02f61.tar.gz
freeipa-18c5e483db719442de2965754ce912d0e4a02f61.tar.xz
freeipa-18c5e483db719442de2965754ce912d0e4a02f61.zip
extdom: replace winbind calls with POSIX/SSSD calls
With the new ipa_server_mode SSSD is able to read user and group data from trusted AD domains directly and makes this data available via the NSS responder. With this mode enabled winbind is not needed anymore to lookup users and groups of trusted domains. This patch removed the calls to winbind from the extdom plugin and replaces them with standard POSIX calls like getpwnam() and calls from libsss_nss_idmap to lookup SIDs. Fixes https://fedorahosted.org/freeipa/ticket/3637 because now the extdom plugin does not need to handle idranges anymore, but everything is done inside SSSD.
Diffstat (limited to 'daemons/ipa-slapi-plugins/ipa-extdom-extop/ipa_extdom_extop.c')
-rw-r--r--daemons/ipa-slapi-plugins/ipa-extdom-extop/ipa_extdom_extop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/daemons/ipa-slapi-plugins/ipa-extdom-extop/ipa_extdom_extop.c b/daemons/ipa-slapi-plugins/ipa-extdom-extop/ipa_extdom_extop.c
index 37a4b1dce..9315da260 100644
--- a/daemons/ipa-slapi-plugins/ipa-extdom-extop/ipa_extdom_extop.c
+++ b/daemons/ipa-slapi-plugins/ipa-extdom-extop/ipa_extdom_extop.c
@@ -138,8 +138,8 @@ static int ipa_extdom_extop(Slapi_PBlock *pb)
rc = LDAP_SUCCESS;
done:
- free(req);
- free(res);
+ free_req_data(req);
+ free_resp_data(res);
if (err_msg != NULL) {
LOG("%s", err_msg);
}