diff options
author | Sumit Bose <sbose@redhat.com> | 2012-10-11 12:35:32 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2012-10-12 16:42:17 +0200 |
commit | 70eaade10feedd7845e39170d0b7eebf3a030af1 (patch) | |
tree | 5c78acb29cdbc356ec5621210400dbe3661a411e /src/providers/ipa/ipa_subdomains_id.c | |
parent | 1774ee9a61b9d691dadd1a0538f32bcdcc84f72f (diff) | |
download | sssd-70eaade10feedd7845e39170d0b7eebf3a030af1.tar.gz sssd-70eaade10feedd7845e39170d0b7eebf3a030af1.tar.xz sssd-70eaade10feedd7845e39170d0b7eebf3a030af1.zip |
Allow extdom exop to return flat domain name as well
There are case where the extdom extended operation will return the flat
or NetBIOS name of a domain instead of the DNS domain name. If this name
is available for the current domain we accept it as well.
Related to https://fedorahosted.org/sssd/ticket/1561
Diffstat (limited to 'src/providers/ipa/ipa_subdomains_id.c')
-rw-r--r-- | src/providers/ipa/ipa_subdomains_id.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/providers/ipa/ipa_subdomains_id.c b/src/providers/ipa/ipa_subdomains_id.c index eed8170c9..5a4ab40b2 100644 --- a/src/providers/ipa/ipa_subdomains_id.c +++ b/src/providers/ipa/ipa_subdomains_id.c @@ -30,6 +30,7 @@ #include "providers/ldap/ldap_common.h" #include "providers/ldap/sdap_async.h" #include "providers/ipa/ipa_id.h" +#include "providers/ipa/ipa_subdomains.h" struct ipa_user_get_state { struct tevent_context *ev; @@ -74,7 +75,8 @@ struct tevent_req *ipa_get_subdomain_account_info_send(TALLOC_CTX *memctx, } state->domain = new_subdomain(state, state->ctx->be->domain, ar->domain, - NULL, NULL); + get_flat_name_from_subdomain_name(ctx->be,ar->domain), + NULL); if (state->domain == NULL) { DEBUG(SSSDBG_OP_FAILURE, ("new_subdomain failed.\n")); ret = ENOMEM; |