From 34f378f48095419d11137b0719fdaeaaba5591c7 Mon Sep 17 00:00:00 2001 From: Joseph Sutton Date: Fri, 29 Apr 2022 11:51:18 +1200 Subject: auth/credentials: Allow resetting bind DN on Credentials object Passing None into set_bind_dn() now resets it. Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- auth/credentials/pycredentials.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'auth') diff --git a/auth/credentials/pycredentials.c b/auth/credentials/pycredentials.c index 013d2958ea2..41a9d597435 100644 --- a/auth/credentials/pycredentials.c +++ b/auth/credentials/pycredentials.c @@ -389,7 +389,7 @@ static PyObject *py_creds_set_bind_dn(PyObject *self, PyObject *args) PyErr_Format(PyExc_TypeError, "Credentials expected"); return NULL; } - if (!PyArg_ParseTuple(args, "s", &newval)) + if (!PyArg_ParseTuple(args, "z", &newval)) return NULL; return PyBool_FromLong(cli_credentials_set_bind_dn(creds, newval)); -- cgit v1.2.1