summaryrefslogtreecommitdiffstats
path: root/source3/rpcclient/cmd_lsarpc.c
Commit message (Collapse)AuthorAgeFilesLines
* s3:rpcclient: remove unused code from cmd_lsa_get_username()Stefan Metzmacher2014-01-161-10/+0
| | | | | | | lsa_GetUserName() doesn't require a policy handle. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
* CVE-2013-4408:s3:Ensure LookupNames replies arrays are range checked.Jeremy Allison2013-12-091-1/+5
| | | | | | | Bug: https://bugzilla.samba.org/show_bug.cgi?id=10185 Signed-off-by: Stefan Metzmacher <metze@samba.org> Signed-off-by: Jeremy Allison <jra@samba.org>
* CVE-2013-4408:s3:Ensure LookupSids replies arrays are range checked.Jeremy Allison2013-12-091-2/+5
| | | | | | | Bug: https://bugzilla.samba.org/show_bug.cgi?id=10185 Signed-off-by: Stefan Metzmacher <metze@samba.org> Signed-off-by: Jeremy Allison <jra@samba.org>
* rpcclient: fix output of lsalookupsids for sids of type DOMAINMichael Adam2013-11-131-3/+10
| | | | | | | For domain sids, don't print NAME\*unknown* but print NAME instead. Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* s3-rpcclient: pass struct ndr_interface_table downAndrew Bartlett2012-01-181-32/+32
| | | | | | | | | 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>
* s3-rpcclient: add tool to call lsa_SetInformationTrustedDomain.Günther Deschner2011-11-291-0/+71
| | | | | | | | "lsasettrustdominfo S-1-5-21-123456-123456-123456 13 1" currently you only can set the encryption type field. Guenther
* s3-ntlmssp Remove rpccli_get_pwd_hash and auth_ntlmssp_get_nt_hashAndrew Bartlett2011-08-031-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>
* s3-talloc Change TALLOC_ARRAY() to talloc_array()Andrew Bartlett2011-06-091-3/+3
| | | | | Using the standard macro makes it easier to move code into common, as TALLOC_ARRAY isn't standard talloc.
* s3-talloc Change TALLOC_REALLOC_ARRAY() to talloc_realloc()Andrew Bartlett2011-06-091-2/+2
| | | | | | | Using the standard macro makes it easier to move code into common, as TALLOC_REALLOC_ARRAY isn't standard talloc. Andrew Bartlett
* s3-rpcclient: include rpc_client/cli_pipe.h globally in rpcclient.hGünther Deschner2011-03-311-1/+0
| | | | Guenther
* s3-rpc_client: Move client pipe functions to own header.Andreas Schneider2011-02-281-0/+1
|
* s3-rpcclient: prefer dcerpc_lsa_X functions.Günther Deschner2011-02-021-176/+390
| | | | Guenther
* s3-rpcclient: use status variable.Günther Deschner2011-02-021-182/+182
| | | | Guenther
* libcli/security Provide a common, top level libcli/security/security.hAndrew Bartlett2010-10-121-0/+1
| | | | | | | | | | | | | | This will reduce the noise from merges of the rest of the libcli/security code, without this commit changing what code is actually used. This includes (along with other security headers) dom_sid.h and security_token.h Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Tue Oct 12 05:54:10 UTC 2010 on sn-devel-104
* s3-lsa: separate out init_lsa headers.Günther Deschner2010-08-251-0/+1
| | | | Guenther
* s3:rpcclient: we also need some ndr_pull functionsStefan Metzmacher2010-08-081-0/+1
| | | | metze
* s3-security: use shared SECINFO_DACL define.Günther Deschner2010-06-031-1/+1
| | | | Guenther
* s3:dom_sid Global replace of DOM_SID with struct dom_sidAndrew Bartlett2010-05-211-15/+15
| | | | | | | | | | This matches the structure that new code is being written to, and removes one more of the old-style named structures, and the need to know that is is just an alias for struct dom_sid. Andrew Bartlett Signed-off-by: Günther Deschner <gd@samba.org>
* s3-rpc_client: move protos to cli_lsarpc.hGünther Deschner2010-05-181-0/+1
| | | | Guenther
* s3-secdesc: remove "typedef struct sec_desc_buf SEC_DESC_BUF".Günther Deschner2010-05-181-1/+1
| | | | Guenther
* s3: Remove a call to string_sid_tallocVolker Lendecke2010-01-231-2/+6
|
* s3: Fix sending NULL sids to lookupsids3Volker Lendecke2010-01-231-2/+2
|
* s3: Remove some pointless uses of string_sid_tallocVolker Lendecke2010-01-231-1/+3
|
* s3: Fix some nonempty blank linesVolker Lendecke2010-01-231-7/+7
|
* s3-rpc: Avoid including every pipe's client and server stubs everywhere in ↵Günther Deschner2009-11-261-0/+1
| | | | | | samba. Guenther
* Revert "s3: Do not directly reference the ndr_table_* in rpcclient"Volker Lendecke2009-11-081-92/+32
| | | | This reverts commit 70c698fd547c4bc19cf77693608bbb34acac40b5.
* s3: Do not directly reference the ndr_table_* in rpcclientVolker Lendecke2009-11-081-32/+92
|
* s3-rpcclient: add deletetrustdom command.Günther Deschner2009-10-301-0/+89
| | | | Guenther
* s3-rpcclient: add createtrustdom command.Günther Deschner2009-10-301-0/+45
| | | | Guenther
* s3-rpcclient: Fix Coverity #935: UNINIT.Günther Deschner2009-09-161-1/+1
| | | | Guenther
* s3-rpcclient: add lookupsids3 command.Günther Deschner2009-09-111-0/+70
| | | | Guenther
* s3-rpcclient: add lookupnames4 command.Günther Deschner2009-09-111-0/+52
| | | | Guenther
* s3-rpcclient: add LSA storeprivatedata command.Günther Deschner2009-07-171-0/+56
| | | | Guenther
* s3-rpcclient: add LSA retrieveprivatedata command.Günther Deschner2009-07-171-0/+60
| | | | Guenther
* s3-rpcclient: add LSA setsecret command.Günther Deschner2009-07-171-0/+71
| | | | Guenther
* s3-rpcclient: add LSA querysecret command.Günther Deschner2009-07-171-0/+86
| | | | Guenther
* s3-rpcclient: add LSA deletesecret command.Günther Deschner2009-07-171-0/+50
| | | | Guenther
* s3-rpcclient: add LSA createsecret command.Günther Deschner2009-07-171-0/+43
| | | | Guenther
* s3-secdesc: use SEC_FLAG_MAXIMUM_ALLOWED instead of SEC_RIGHTS_MAXIMUM_ALLOWED.Günther Deschner2009-04-211-24/+24
| | | | Guenther
* Rework Samba3 to use new libcli/auth code (partial)Andrew Bartlett2009-04-141-13/+9
| | | | | | | | | | | This commit is mostly to cope with the removal of SamOemHash (replaced by arcfour_crypt()) and other collisions (such as changed function arguments compared to Samba3). We still provide creds_hash3 until Samba3 uses the credentials code in netlogon server Andrew Bartlett
* s3: remove POLICY_HND.Günther Deschner2009-03-181-24/+24
| | | | Guenther
* Fix bug 5840: Segfault in "rpcclient lsaaddacctrights"Volker Lendecke2008-10-221-1/+1
|
* s3-lsa-server: fix _lsa_GetUserName.Günther Deschner2008-10-211-1/+2
| | | | Guenther
* s3-rpcclient: fix cmd_lsa build.Günther Deschner2008-10-201-3/+1
| | | | Guenther
* Use GUID_string rather than smb_uuid_string().Jelmer Vernooij2008-10-141-2/+2
|
* Refactoring: rpcclient uses ndr_syntax_id instead of pipe_idxVolker Lendecke2008-07-211-21/+21
| | | | (This used to be commit 85db87c451dacf80e9575c04e9e08c625b3f1199)
* Remove the "pwd" struct from rpc_pipe_clientVolker Lendecke2008-04-211-8/+27
| | | | | | The only user of this was decrypt_trustdom_secret, and this only needs the NT hash anyway. (This used to be commit 3d8c2a47e677a4c4aacf4abf148b1bd8163c3351)
* Add "desthost" to rpc_pipe_clientVolker Lendecke2008-04-201-1/+1
| | | | | This reduces the dependency on cli_state (This used to be commit 783afab9c891dd7bcb78895b2a639b6f3a0edf5b)
* Fix lsa_QueryTrustedDomainInfo caller.Günther Deschner2008-04-081-2/+2
| | | | | Guenther (This used to be commit 9f148daaf2e240002914183655c2b2cc9067759f)
* Fix lsa_TrustedDomainInfo callers.Günther Deschner2008-04-081-4/+4
| | | | | Guenther (This used to be commit e0eae3901750c7b76560bbab9a86f24a64d42c8b)