diff options
author | Volker Lendecke <vl@samba.org> | 2018-02-03 07:07:55 +0100 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2018-05-24 16:37:02 +0200 |
commit | 2fb77a2b736308c019b7560315ce78c017f6495c (patch) | |
tree | b4a9c5bfc9704c1d6dbb5cee03567ad3644b78d0 /libgpo/pygpo.c | |
parent | bcee54726fadd76ee1588c15b29066f66ad9c1c0 (diff) | |
download | samba-2fb77a2b736308c019b7560315ce78c017f6495c.tar.gz |
libgpo: Fix the build --without-ads
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
Autobuild-User(master): David Disseldorp <ddiss@samba.org>
Autobuild-Date(master): Tue Feb 6 15:36:01 CET 2018 on sn-devel-144
Bug: https://bugzilla.samba.org/show_bug.cgi?id=13331
(cherry picked from commit a222b7506b53e689708834237f18877231dca589)
Autobuild-User(v4-8-test): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(v4-8-test): Thu May 24 16:37:02 CEST 2018 on sn-devel-144
Diffstat (limited to 'libgpo/pygpo.c')
-rw-r--r-- | libgpo/pygpo.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libgpo/pygpo.c b/libgpo/pygpo.c index 7a02a0dc2aa..b6b53b76212 100644 --- a/libgpo/pygpo.c +++ b/libgpo/pygpo.c @@ -319,6 +319,7 @@ static PyObject *py_gpo_get_sysvol_gpt_version(PyObject * self, return result; } +#ifdef HAVE_ADS static ADS_STATUS find_samaccount(ADS_STRUCT *ads, TALLOC_CTX *mem_ctx, const char *samaccountname, uint32_t *uac_ret, const char **dn_ret) @@ -468,11 +469,15 @@ out: return ret; } +#endif + static PyMethodDef ADS_methods[] = { { "connect", (PyCFunction)py_ads_connect, METH_NOARGS, "Connect to the LDAP server" }, +#ifdef HAVE_ADS { "get_gpo_list", (PyCFunction)py_ads_get_gpo_list, METH_KEYWORDS, NULL }, +#endif { NULL } }; |