diff options
author | Joseph Sutton <josephsutton@catalyst.net.nz> | 2021-04-28 10:55:13 +1200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2021-05-19 01:32:34 +0000 |
commit | 2d05268aa0904221c452fc650fcdfb680efc20bb (patch) | |
tree | f0f88a628ed0d44f29d3f90ed82a8a3c24673bd0 /auth | |
parent | 1ea2de561839ad948efab5112fbe4c1eae44d9ee (diff) | |
download | samba-2d05268aa0904221c452fc650fcdfb680efc20bb.tar.gz |
auth:creds: Fix parameter in creds.set_named_ccache()
Use the passed-in value for 'obtained' rather than always using
CRED_SPECIFIED.
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Diffstat (limited to 'auth')
-rw-r--r-- | auth/credentials/pycredentials.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/auth/credentials/pycredentials.c b/auth/credentials/pycredentials.c index 10190926c83..566405a08ee 100644 --- a/auth/credentials/pycredentials.c +++ b/auth/credentials/pycredentials.c @@ -798,6 +798,7 @@ static PyObject *py_creds_set_named_ccache(PyObject *self, PyObject *args) if (!PyArg_ParseTuple(args, "s|iO", &newval, &_obt, &py_lp_ctx)) return NULL; + obt = _obt; mem_ctx = talloc_new(NULL); if (mem_ctx == NULL) { @@ -813,7 +814,7 @@ static PyObject *py_creds_set_named_ccache(PyObject *self, PyObject *args) ret = cli_credentials_set_ccache(creds, lp_ctx, - newval, CRED_SPECIFIED, + newval, obt, &error_string); if (ret != 0) { |