summaryrefslogtreecommitdiffstats
path: root/src/providers/ad/ad_subdomains.h
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2013-05-02 20:28:30 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-05-07 14:12:06 +0200
commit4cdaf239d4504966bed8ecd5e3fa07def74c7302 (patch)
tree34ceec2ae3c01723e4337e09718569d786d8ed13 /src/providers/ad/ad_subdomains.h
parent41bfa213a0994cebcef5f69fd2c353136c803ae4 (diff)
downloadsssd-4cdaf239d4504966bed8ecd5e3fa07def74c7302.tar.gz
sssd-4cdaf239d4504966bed8ecd5e3fa07def74c7302.tar.xz
sssd-4cdaf239d4504966bed8ecd5e3fa07def74c7302.zip
AD: read flat name and SID of the AD domain
For various features either the flat/short/NetBIOS domain name or the domain SID is needed. Since the responders already try to do a subdomain lookup when and known domain name is encountered I added a subdomain lookup to the AD provider which currently only reads the SID from the base DN and the NetBIOS name from a reply of a LDAP ping. The results are written to the cache to have them available even if SSSD is started in offline mode. Looking up trusted domains can be added later. Since all the needed responder code is already available from the corresponding work for the IPA provider this patch fixes https://fedorahosted.org/sssd/ticket/1468
Diffstat (limited to 'src/providers/ad/ad_subdomains.h')
-rw-r--r--src/providers/ad/ad_subdomains.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/providers/ad/ad_subdomains.h b/src/providers/ad/ad_subdomains.h
new file mode 100644
index 000000000..b1a418f13
--- /dev/null
+++ b/src/providers/ad/ad_subdomains.h
@@ -0,0 +1,37 @@
+/*
+ SSSD
+
+ AD Subdomains Module
+
+ Authors:
+ Sumit Bose <sbose@redhat.com>
+
+ Copyright (C) 2013 Red Hat
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+
+#ifndef _IPA_SUBDOMAINS_H_
+#define _IPA_SUBDOMAINS_H_
+
+#include "providers/dp_backend.h"
+#include "providers/ad/ad_common.h"
+
+int ad_subdom_init(struct be_ctx *be_ctx,
+ struct ad_id_ctx *id_ctx,
+ const char *ad_domain,
+ struct bet_ops **ops,
+ void **pvt_data);
+
+#endif /* _IPA_SUBDOMAINS_H_ */