1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

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>
This commit is contained in:
Andreas Schneider 2017-04-04 08:10:52 +02:00 committed by Andreas Schneider
parent 09f84d0fe5
commit 18917d28a9

View File

@ -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 }
};