diff options
author | Andreas Schneider <asn@samba.org> | 2017-04-04 08:10:52 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2017-04-29 23:31:11 +0200 |
commit | 18917d28a90a6a15216ca05dab94553fa7faa448 (patch) | |
tree | c81ed249f15aaae60a1bbf9e815f196a5ec589de | |
parent | 09f84d0fe5ff48b53b70a1d984d9ad4b0c5b661f (diff) | |
download | samba-18917d28a90a6a15216ca05dab94553fa7faa448.tar.gz |
python: Add py_is_heimdal_built() to pyglue
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlet <abartlet@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
-rw-r--r-- | python/pyglue.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/python/pyglue.c b/python/pyglue.c index 2bb6247fdeb..07cde49e16b 100644 --- a/python/pyglue.c +++ b/python/pyglue.c @@ -152,6 +152,15 @@ static PyObject *py_is_ntvfs_fileserver_built(PyObject *self) #endif } +static PyObject *py_is_heimdal_built(PyObject *self) +{ +#ifdef SAMBA4_USES_HEIMDAL + 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 @@ -307,6 +316,8 @@ static PyMethodDef py_misc_methods[] = { "(for testing) find one string in another with Samba's strstr_m()"}, { "is_ntvfs_fileserver_built", (PyCFunction)py_is_ntvfs_fileserver_built, METH_NOARGS, "is the NTVFS file server built in this installation?" }, + { "is_heimdal_built", (PyCFunction)py_is_heimdal_built, METH_NOARGS, + "is Samba built with Heimdal Kerberbos?" }, { NULL } }; |