diff options
author | Deryck Hodge <deryck@samba.org> | 2006-04-27 20:52:04 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:16:32 -0500 |
commit | 2720db90c110908c3d077028b82c4a6a5f8c2c51 (patch) | |
tree | cefeab1143df0c4dc1cba1ce32f85d238f8345e0 /source3/python/py_common.c | |
parent | ec8b810a16e1f08ceb64486be7447e6cf703261d (diff) | |
download | samba-2720db90c110908c3d077028b82c4a6a5f8c2c51.tar.gz samba-2720db90c110908c3d077028b82c4a6a5f8c2c51.tar.xz samba-2720db90c110908c3d077028b82c4a6a5f8c2c51.zip |
r15299: Fix import of Python modules. Fixes Bug #3567.
The REGVAL_CTR part is taken from Daniel Jarboe's
patch he filed with the bug report.
deryck
(This used to be commit 7ca24b996628707b7e8a05041d173f046f428413)
Diffstat (limited to 'source3/python/py_common.c')
-rw-r--r-- | source3/python/py_common.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/python/py_common.c b/source3/python/py_common.c index 70d478b979..14c3b83e54 100644 --- a/source3/python/py_common.c +++ b/source3/python/py_common.c @@ -45,6 +45,8 @@ void py_samba_init(void) if (initialised) return; + load_case_tables(); + /* Load configuration file */ if (!lp_load(dyn_CONFIGFILE, True, False, False, True)) @@ -212,6 +214,7 @@ struct cli_state *open_pipe_creds(char *server, PyObject *creds, { char *username, *password, *domain; struct cli_state *cli; + struct rpc_pipe_client *pipe_hnd; NTSTATUS result; /* Extract credentials from the python dictionary */ @@ -230,7 +233,8 @@ struct cli_state *open_pipe_creds(char *server, PyObject *creds, return NULL; } - if (!cli_nt_session_open(cli, pipe_idx)) { + pipe_hnd = cli_rpc_pipe_open_noauth(cli, pipe_idx, &result); + if (!pipe_hnd) { cli_shutdown(cli); asprintf(errstr, "error opening pipe index %d", pipe_idx); return NULL; |