summaryrefslogtreecommitdiff
path: root/source3/rpcclient
AgeCommit message (Collapse)AuthorFilesLines
2012-05-10s3: Fix Coverity ID 242717 Uninitialized scalar variableVolker Lendecke1-1/+2
In an error path we are closing domain_pol without opening it
2012-05-10s3: Fix Coverity ID 242718 Uninitialized scalar variableVolker Lendecke1-1/+2
In an error path we are closing user_pol without opening it
2012-05-10s3: Fix Coverity ID 242719 Uninitialized scalar variableVolker Lendecke1-1/+2
In an error path we are closing domain_pol without opening it
2012-05-10s3: Fix Coverity ID 242720 Uninitialized scalar variableVolker Lendecke1-1/+2
In an error path we are closing domain_pol without opening it
2012-05-10s3: Fix Coverity ID 242721 Uninitialized scalar variableVolker Lendecke1-1/+2
In an error path we are closing domain_pol without opening it
2012-05-10s3: Fix Coverity ID 242722 Uninitialized scalar variableVolker Lendecke1-1/+1
In an error path we are closing domain_handle without opening it
2012-05-10s3: Fix Coverity ID 242723 Uninitialized scalar variableVolker Lendecke1-1/+1
In an error path we are closing hnd without opening it
2012-05-10s3: Fix Coverity ID 241961 Uninitialized scalar variableVolker Lendecke1-0/+2
2012-05-10s3: Fix Coverity ID 242724 Uninitialized scalar variableVolker Lendecke1-1/+1
In an error path we are closing pol without opening it
2012-04-25s3:registry: remove usage of reg_objects from cmd_spoolss.cGregor Beck1-29/+14
Signed-off-by: Andreas Schneider <asn@samba.org>
2012-03-02s3-rpcclient: Ensure interfaces are loaded after smb.confAndrew Bartlett1-2/+3
This ensures that the interfaces line in the smb.conf is honoured. Andrew Bartlett
2012-01-25s3-rpcclient: Remove debug_dsdcinfo_flags() call.Andreas Schneider1-6/+0
This gets rid of the DCUTIL dependency.
2012-01-18s3-librpc: pass struct ndr_interface_table down to ↵Andrew Bartlett1-2/+2
cli_pipe_open_generic/spnego() This allows the target service (as determined from the IDL) to be passed to GSSAPI (rather than the current, incorrect, "cifs"). Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-01-18s3-rpcclient: pass struct ndr_interface_table downAndrew Bartlett16-192/+187
This will allow the target service (as determined from the IDL) to be passed to GSSAPI (rather than the current, incorrect, "cifs"). Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-01-18s3-librpc Make cli_rpc_pipe_open_spnego_ntlmssp() genericAndrew Bartlett1-17/+17
This also avoids passing NULL as the server to gensec_set_target_hostname() in spnego_generic_init_client(). Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-01-18s3-librpc Call GSSAPI via the auth_generic layer and gensecAndrew Bartlett1-9/+1
This simplifies a lot of code, as we know we are always dealing with a struct gensec_security, and allows the gensec module being used to implement GSSAPI to be swapped when required for AD-server operation. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-01-11s3-rpcclient: add deldriverex flags argumentDavid Disseldorp1-7/+7
The spoolss DeletePrinterDriverEx command offers three flags for controlling how associated files and other versions of the driver are effected: DPD_DELETE_UNUSED_FILES (1), DPD_DELETE_SPECIFIC_VERSION (2) and DPD_DELETE_ALL_FILES (4). This commit adds an optional numeric flags argument to the rpcclient deldriverex command. Signed-off-by: David Disseldorp <ddiss@samba.org> Signed-off-by: Andreas Schneider <asn@samba.org> Autobuild-User: David Disseldorp <ddiss@samba.org> Autobuild-Date: Wed Jan 11 14:39:35 CET 2012 on sn-devel-104
2012-01-11s3-librpc Rename and rework cli_rpc_pipe_open_ntlmssp() to be genericAndrew Bartlett1-1/+3
This also includes renaming the helper function rpccli_ntlmssp_bind_data, and allows this function to operate on any gensec-supplied auth type. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-11-29s3-rpcclient: add tool to call lsa_SetInformationTrustedDomain.Günther Deschner1-0/+71
"lsasettrustdominfo S-1-5-21-123456-123456-123456 13 1" currently you only can set the encryption type field. Guenther
2011-08-03s3-ntlmssp Remove rpccli_get_pwd_hash and auth_ntlmssp_get_nt_hashAndrew Bartlett1-18/+20
The session key we want here (the only one that is availble to the encryption layer) is the one obtained by cli_get_session_key(), as NTLMSSP creates a per-session session key via key exchange and NTLMv2 negotiation. The key was never directly the NT hash anyway (this is simply a mistake, the extra MD4() was lost during my previous cleanup f28f113d8e76824b080359c90efd9c92de533740 in 2008), but was MD4(NT hash) in early implementations of NTLMSSP. However, regardless this call is not available on domain trusts between AD domains and Windows 2003 R2, making this less useful. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-07-28s3:rpcclient: use the lp_load_global() wrapper of lp_load()Michael Adam1-1/+1
2011-07-22s3:rpcclient: make use of cli_state_remote_name()Stefan Metzmacher1-2/+2
metze
2011-07-22s3:rpcclient: use rpc_pipe->desthost instead of cli->desthostStefan Metzmacher1-1/+1
metze
2011-06-09s3:rpcclient: remove unused new_workgroup variableStefan Metzmacher1-4/+0
new_workgroup was not initialized but used to overwrite the value of lp_workgroup(). metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu Jun 9 16:00:28 CEST 2011 on sn-devel-104
2011-06-09s3-param Remove special case for global_myname(), rename to lp_netbios_name()Andrew Bartlett3-10/+10
There is no reason this can't be a normal constant string in the loadparm system, now that we have lp_set_cmdline() to handle overrides correctly. Andrew Bartlett
2011-06-09s3-param Remove special case for lp_workgroup()Andrew Bartlett1-9/+1
There is no reason this can't be a normal constant string in the loadparm system, now that we have lp_set_cmdline() to handle overrides correctly. Andrew Bartlett
2011-06-09s3-talloc Change TALLOC_ZERO_ARRAY() to talloc_zero_array()Andrew Bartlett2-2/+2
Using the standard macro makes it easier to move code into common, as TALLOC_ZERO_ARRAY isn't standard talloc.
2011-06-09s3-talloc Change TALLOC_ARRAY() to talloc_array()Andrew Bartlett2-5/+5
Using the standard macro makes it easier to move code into common, as TALLOC_ARRAY isn't standard talloc.
2011-06-09s3-talloc Change TALLOC_REALLOC_ARRAY() to talloc_realloc()Andrew Bartlett1-2/+2
Using the standard macro makes it easier to move code into common, as TALLOC_REALLOC_ARRAY isn't standard talloc. Andrew Bartlett
2011-05-18s3-lib Replace StrCaseCmp() with strcasecmp_m()Andrew Bartlett3-5/+5
strcasecmp_m() never needs to call to talloc, and via next_codepoint() still has an ASCII fast-path bypassing iconv() calls. Andrew Bartlett
2011-05-06s3-libsmb: move protos to libsmb/proto.hGünther Deschner2-0/+2
Guenther
2011-05-05More simple const fixups.Jeremy Allison1-1/+1
2011-05-05s3-rpcclient: run minimal_includes.pl.Günther Deschner1-1/+0
Guenther
2011-05-02s3: remove various references to server side dcerpc structs (which are not ↵Günther Deschner1-1/+0
needed). Guenther
2011-03-31s3-rpcclient: include rpc_client/cli_pipe.h globally in rpcclient.hGünther Deschner8-7/+2
Guenther
2011-03-30s3-includes: only include ntdomain.h where needed.Günther Deschner1-0/+1
Guenther
2011-03-30s3-passdb: use passdb headers where needed.Günther Deschner1-0/+1
Guenther
2011-03-30registry: create and use shared libcli/registry/util_reg.h header.Günther Deschner1-0/+1
Guenther
2011-03-30s3-includes: no point in including all security headers globally.Günther Deschner1-0/+1
Guenther
2011-03-16libcli/security: move display_sec headers to own header file and add toGünther Deschner2-0/+2
security.h grouping header. Guenther
2011-03-15s3: Fix Coverity ID 2289: Uninitialized readVolker Lendecke1-1/+1
We passed the structure including the uninitialized elements to dcerpc_winreg_OpenKey.
2011-02-28Fix some typesJelmer Vernooij2-3/+3
Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Mon Feb 28 23:30:06 CET 2011 on sn-devel-104
2011-02-28s3-rpc_client: Move client pipe functions to own header.Andreas Schneider7-0/+7
2011-02-02s3-rpcclient: prefer dcerpc_lsa_X functions.Günther Deschner1-3/+10
Guenther
2011-02-02s3-rpcclient: prefer dcerpc_lsa_X functions.Günther Deschner1-5/+13
Guenther
2011-02-02s3-rpcclient: prefer dcerpc_lsa_X functions.Günther Deschner1-176/+390
Guenther
2011-02-02s3-rpcclient: use status variable.Günther Deschner1-182/+182
Guenther
2011-02-02s3: Remove superfluous ;Günther Deschner1-1/+1
Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Wed Feb 2 15:44:21 CET 2011 on sn-devel-104
2011-02-01s3:rpcclient/cmd_samr: remove useless ';'Stefan Metzmacher1-1/+1
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Feb 1 19:19:24 CET 2011 on sn-devel-104
2011-02-01s3:rpcclient/cmd_netlogon: fix netr_DELTA_* displayStefan Metzmacher1-11/+14
metze