mirror of
https://github.com/samba-team/samba.git
synced 2025-01-08 21:18:16 +03:00
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>
This commit is contained in:
parent
1ea2de5618
commit
2d05268aa0
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user