summaryrefslogtreecommitdiffstats
path: root/src/util/util.h
diff options
context:
space:
mode:
authorPavel Březina <pbrezina@redhat.com>2013-09-12 12:55:44 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-09-17 16:13:32 +0200
commit73cb76c52cbe678bb17eb07e23539cda4873a991 (patch)
tree6f8c8041ec413fd904637692d52440a538f92418 /src/util/util.h
parent1110ac9c5739ca19dd71917ddb4012110ff64469 (diff)
downloadsssd-73cb76c52cbe678bb17eb07e23539cda4873a991.tar.gz
sssd-73cb76c52cbe678bb17eb07e23539cda4873a991.tar.xz
sssd-73cb76c52cbe678bb17eb07e23539cda4873a991.zip
util: add find_subdomain_by_object_name()
This function will parse object name into name and domain name part and return appropriate sss domain. Resolves: https://fedorahosted.org/sssd/ticket/2034
Diffstat (limited to 'src/util/util.h')
-rw-r--r--src/util/util.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util/util.h b/src/util/util.h
index 3a1da2dcf..18ec4176b 100644
--- a/src/util/util.h
+++ b/src/util/util.h
@@ -548,6 +548,10 @@ struct sss_domain_info *find_subdomain_by_name(struct sss_domain_info *domain,
bool match_any);
struct sss_domain_info *find_subdomain_by_sid(struct sss_domain_info *domain,
const char *sid);
+struct sss_domain_info *
+find_subdomain_by_object_name(struct sss_domain_info *domain,
+ const char *object_name);
+
bool subdomain_enumerates(struct sss_domain_info *parent,
const char *sd_name);