summaryrefslogtreecommitdiff
path: root/auth
diff options
context:
space:
mode:
authorJoseph Sutton <josephsutton@catalyst.net.nz>2022-04-29 11:51:18 +1200
committerAndrew Bartlett <abartlet@samba.org>2023-05-05 02:54:30 +0000
commit34f378f48095419d11137b0719fdaeaaba5591c7 (patch)
treeaefe12a4d4e26f71dc12831799ad7b5016bb0e59 /auth
parent963688b3a5acbf0714377b4b17e5cbbbd31e50d9 (diff)
downloadsamba-34f378f48095419d11137b0719fdaeaaba5591c7.tar.gz
auth/credentials: Allow resetting bind DN on Credentials object
Passing None into set_bind_dn() now resets it. Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'auth')
-rw-r--r--auth/credentials/pycredentials.c2
1 files changed, 1 insertions, 1 deletions
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));