#endif
}
+static PyObject *py_is_ad_dc_built(PyObject *self,
+ PyObject *Py_UNUSED(ignored))
+{
+#ifdef AD_DC_BUILD_IS_ENABLED
+ Py_RETURN_TRUE;
+#else
+ Py_RETURN_FALSE;
+#endif
+}
+
/*
return the list of interface IPs we have configured
takes an loadparm context, returns a list of IPs in string form
METH_VARARGS,
"generate_random_bytes(len) -> bytes\n"
"Generate random bytes with specified length." },
+ { "is_ad_dc_built", (PyCFunction)py_is_ad_dc_built, METH_NOARGS,
+ "is Samba built with AD DC?" },
{0}
};
strstr_m = _glue.strstr_m
is_ntvfs_fileserver_built = _glue.is_ntvfs_fileserver_built
is_heimdal_built = _glue.is_heimdal_built
+is_ad_dc_built = _glue.is_ad_dc_built
NTSTATUSError = _glue.NTSTATUSError
HRESULTError = _glue.HRESULTError