summaryrefslogtreecommitdiff
path: root/auth/credentials
diff options
context:
space:
mode:
authorGary Lockyer <gary@catalyst.net.nz>2017-04-28 10:16:39 +1200
committerAndrew Bartlett <abartlet@samba.org>2017-05-25 02:25:12 +0200
commit68ccebfa59e2fc8b717c93224594f49af556ec6e (patch)
tree18fe8ac6f5fbc92d3e97cb062830ed52af9eb77d /auth/credentials
parent64199090940cad9f3b4c3f5781426e61418dde9b (diff)
downloadsamba-68ccebfa59e2fc8b717c93224594f49af556ec6e.tar.gz
auth_log: Add test that execises the SamLogon python bindings
Signed-off-by: Gary Lockyer <gary@catalyst.net.nz> Reviewed-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'auth/credentials')
-rw-r--r--auth/credentials/pycredentials.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/auth/credentials/pycredentials.c b/auth/credentials/pycredentials.c
index 283a73fcd72..7c9b5b579cb 100644
--- a/auth/credentials/pycredentials.c
+++ b/auth/credentials/pycredentials.c
@@ -581,6 +581,20 @@ static PyObject *py_creds_get_gensec_features(PyObject *self, PyObject *args)
return PyInt_FromLong(gensec_features);
}
+static PyObject *py_creds_set_secure_channel_type(PyObject *self, PyObject *args)
+{
+ unsigned int channel_type;
+
+ if (!PyArg_ParseTuple(args, "I", &channel_type))
+ return NULL;
+
+ cli_credentials_set_secure_channel_type(
+ PyCredentials_AsCliCredentials(self),
+ channel_type);
+
+ Py_RETURN_NONE;
+}
+
static PyMethodDef py_creds_methods[] = {
{ "get_username", py_creds_get_username, METH_NOARGS,
@@ -683,6 +697,8 @@ static PyMethodDef py_creds_methods[] = {
{ "set_forced_sasl_mech", py_creds_set_forced_sasl_mech, METH_VARARGS,
"S.set_forced_sasl_mech(name) -> None\n"
"Set forced SASL mechanism." },
+ { "set_secure_channel_type", py_creds_set_secure_channel_type,
+ METH_VARARGS, NULL },
{ NULL }
};