summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-01-24 17:39:29 +0100
committerGünther Deschner <gd@samba.org>2008-01-24 17:40:35 +0100
commit6b1c45a5c2e5e3f0a3e2b7772cd55079ebe3133e (patch)
tree9fef0981eeab1f8caf8166ff81b2a08817d7af64 /source3
parent1eb484d4b471c2c040df42a6566cc0805efc071a (diff)
downloadsamba-6b1c45a5c2e5e3f0a3e2b7772cd55079ebe3133e.tar.gz
samba-6b1c45a5c2e5e3f0a3e2b7772cd55079ebe3133e.tar.bz2
samba-6b1c45a5c2e5e3f0a3e2b7772cd55079ebe3133e.zip
Fix winbindd build w/o ADS.
Guenther (This used to be commit 40daef4c3d822a28467ff521efca6a55a0370050)
Diffstat (limited to 'source3')
-rw-r--r--source3/winbindd/winbindd_ndr.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/source3/winbindd/winbindd_ndr.c b/source3/winbindd/winbindd_ndr.c
index 145d11913d..842c915c5f 100644
--- a/source3/winbindd/winbindd_ndr.c
+++ b/source3/winbindd/winbindd_ndr.c
@@ -74,7 +74,9 @@ void ndr_print_winbindd_methods(struct ndr_print *ndr,
const char *name,
const struct winbindd_methods *r)
{
+#ifdef HAVE_ADS
extern struct winbindd_methods ads_methods;
+#endif
extern struct winbindd_methods msrpc_methods;
extern struct winbindd_methods passdb_methods;
extern struct winbindd_methods reconnect_methods;
@@ -89,10 +91,12 @@ void ndr_print_winbindd_methods(struct ndr_print *ndr,
return;
}
- if (r == &ads_methods) {
- ndr_print_string(ndr, name, "ads_methods");
- } else if (r == &msrpc_methods) {
+ if (r == &msrpc_methods) {
ndr_print_string(ndr, name, "msrpc_methods");
+#ifdef HAVE_ADS
+ } else if (r == &ads_methods) {
+ ndr_print_string(ndr, name, "ads_methods");
+#endif
} else if (r == &passdb_methods) {
ndr_print_string(ndr, name, "passdb_methods");
} else if (r == &reconnect_methods) {