Günther Deschner
84bc4ff546
rpc_client: Bug 5616 - fix session keys also in rpccli_netr_LogonSamLogonEx wrapper.
...
Guenther
(This used to be commit fef58091408cce0d7870c86f28f78cf9400cf2b6)
2008-07-30 19:14:00 +02:00
Günther Deschner
21a8177ed2
rpc_client: add init_samr_CryptPasswordEx and init_samr_CryptPassword.
...
Guenther
(This used to be commit 87b6aac13598a2ac28054de5ab90d63bef65f1fe)
2008-07-30 16:42:23 +02:00
Volker Lendecke
91df5551a4
Attempt to fix bug 5616
...
We were calculating the session key but did not return it to the caller...
(cherry picked from commit 8ab79b1d009d53e414b90e4a0ab8fc7a4889b6df)
(This used to be commit b63a6a1fd6a96bbafd88cacb9493bfea9944d404)
2008-07-28 18:07:01 +02:00
Volker Lendecke
da6e4248ee
Make idl: cli_do_rpc_ndr does not use pipe_idx anymore
...
(This used to be commit ffd2ff5325ef24f08dcb63e4561f5f62bffef6d3)
2008-07-21 14:36:31 +02:00
Volker Lendecke
a20c498310
Remove unused function rpccli_is_pipe_idx
...
(This used to be commit 287ffc17a072d5e1a5b0e1ecae089faf67b814b7)
2008-07-21 14:36:31 +02:00
Volker Lendecke
86bb746406
Refactoring: CLI_DO_RPC_* uses interface instead of pipe_idx
...
(This used to be commit 6d2209ba5da0937ce17e71951a1628ff1f5deacb)
2008-07-21 14:36:31 +02:00
Volker Lendecke
bd479ced46
Remove a reference to pipe_idx
...
(This used to be commit e949b9d11f439c32c85a3cd9ae4c1a859a4c284a)
2008-07-21 14:36:31 +02:00
Volker Lendecke
abce3cdf56
Remove some unused code
...
(This used to be commit b60a681dd09349426aa522d697abacf62ebfdaf2)
2008-07-21 14:36:31 +02:00
Volker Lendecke
d460ead468
Remove one reference to PI_NETLOGON
...
(This used to be commit e89bbab1b875a0b55b70913dcc1e3e73137c8b90)
2008-07-21 14:36:31 +02:00
Volker Lendecke
41525152f5
Remove some fully outdated sample code
...
(This used to be commit 0df0e81784362c36a79954c6b9e3b341ea59fb6d)
2008-07-21 14:36:30 +02:00
Volker Lendecke
303f98af2f
Remove now unused cli_get_pipe_name
...
(This used to be commit ed4a447103cd9ada59222d79f5784818fe033209)
2008-07-21 14:36:30 +02:00
Volker Lendecke
346a8d1bdc
Remove now unused cli_get_pipe_idx
...
(This used to be commit e02a550527307f7b300d3fe13631e2d29dbc5e06)
2008-07-21 14:36:29 +02:00
Volker Lendecke
9664f24ecf
Remove now unused cli_get_iface
...
(This used to be commit 2e60701e8d41132f90e64a86bccd99cc188d38c9)
2008-07-21 14:36:28 +02:00
Volker Lendecke
798b56edae
Refactoring: libnetapi_open_pipe takes an interface instead of pipe_idx
...
(This used to be commit 726e56c72fdb685ab5eddefd2fd8b043dc38d6ad)
2008-07-21 14:36:27 +02:00
Volker Lendecke
55f84c05bd
Refactoring: Change calling conventions for cli_rpc_pipe_open_krb5
...
Pass in ndr_syntax_id instead of pipe_idx, return NTSTATUS
(This used to be commit f2656e5c2e700523ead7a62734d203ad0caaff0c)
2008-07-20 17:37:14 +02:00
Volker Lendecke
99526d391d
Refactoring: Change calling conventions for cli_rpc_pipe_open_schannel
...
Pass in ndr_syntax_id instead of pipe_idx, return NTSTATUS
(This used to be commit 1fcfca007f33a2c4e979abf30c2ea0db65bac718)
2008-07-20 17:37:14 +02:00
Volker Lendecke
52ff49600e
Refactoring: Change calling conventions for cli_rpc_pipe_open_ntlmssp_auth_schannel
...
Pass in ndr_syntax_id instead of pipe_idx, return NTSTATUS
(This used to be commit ff87127baf1d1bd62bb9c1be4a50c2ab2642b33d)
2008-07-20 17:37:13 +02:00
Volker Lendecke
ba2cb35ca5
Refactoring: Change calling conventions for cli_rpc_pipe_open_schannel_with_key
...
Pass in ndr_syntax_id instead of pipe_idx, return NTSTATUS
(This used to be commit 78e9c937ff2d2e1b70cfed4121e17feb6efafda1)
2008-07-20 17:37:13 +02:00
Volker Lendecke
44bdc98823
Refactoring: Make get_schannel_session_key_auth_ntlmssp return NTSTATUS
...
(This used to be commit ab3d80d476d8264030fa71d974324c6dcf6fe6e1)
2008-07-20 17:37:12 +02:00
Volker Lendecke
b8fc15be95
Refactoring: Make get_schannel_session_key return NTSTATUS
...
(This used to be commit a0793cc853d3bd43df2fc49df193a5fead6b01ab)
2008-07-20 17:37:12 +02:00
Volker Lendecke
1f854d1db7
Refactoring: Make get_schannel_session_key_common return NTSTATUS
...
(This used to be commit 513e69507676fc2227424362d24d8ea9615ea758)
2008-07-20 17:37:12 +02:00
Volker Lendecke
e0be03d8d5
Refactoring: Change calling conventions for cli_rpc_pipe_open_ntlmssp
...
Pass in ndr_syntax_id instead of pipe_idx, return NTSTATUS
(This used to be commit a13f0599551609394904b99e4014d580ec65c506)
2008-07-20 17:37:11 +02:00
Volker Lendecke
1335da2a7c
Refactoring: Change calling conventions for cli_rpc_pipe_open_noauth
...
Pass in ndr_syntax_id instead of pipe_idx, return NTSTATUS
(This used to be commit 9abc9dc4dc13bd3e42f98eff64eacf24b51f5779)
2008-07-20 17:37:11 +02:00
Volker Lendecke
18fb7e0977
Refactoring: Change calling conventions for cli_rpc_pipe_open
...
Pass in ndr_syntax_id instead of pipe_idx, return NTSTATUS
(This used to be commit 6c122457ff3f22e20dbb595dc6d5fb49689f4d61)
2008-07-20 17:06:22 +02:00
Volker Lendecke
eb68e95d9a
Refactoring: Change calling conventions for rpc_pipe_open_np
...
Pass in ndr_syntax_id instead of pipe_idx, return NTSTATUS
(This used to be commit 9249fe9e917982c8b9ca25933b716e8ac0aa40cd)
2008-07-20 17:06:22 +02:00
Volker Lendecke
2e905d2cd1
Allocate rpc_cli->dc in rpccli_netlogon_setup_creds()
...
The general cli_pipe routines should not have to know about this NETLOGON
speciality.
(This used to be commit d30237598d0c55b73e202c1de3a020194b67a7e6)
2008-07-20 17:06:21 +02:00
Volker Lendecke
65dfc40a4a
Store copies of the syntax ids in rpc_pipe_client
...
(This used to be commit 848a3497e385090b4b21837c8d0e0313f5c062e5)
2008-07-20 17:06:21 +02:00
Volker Lendecke
66669bad43
Simplify pipe_names: we only do ndr_transfer_syntax anyway
...
(This used to be commit b808403af55a37f2ec0e87e60450505ddfc2edda)
2008-07-20 17:06:21 +02:00
Volker Lendecke
867b61d0a1
The PIPE_ pipename macros are only used in cli_pipe.c
...
(This used to be commit 03f7af26f255476d84a375a95fbccfce24db9de8)
2008-07-19 21:07:14 +02:00
Volker Lendecke
bf6c11fea3
Make the pipe_names[] array static to cli_pipe.c
...
(This used to be commit ab7ab350591bf16717744a0c252d3a9d185bcb77)
2008-07-19 20:40:27 +02:00
Volker Lendecke
ad91d960d0
Fix some uninitialized variable references via ndr_print
...
(This used to be commit 26fb3fea812867f8b0dfe6a1be59e4922ed86e45)
2008-07-10 18:24:54 +02:00
Jeremy Allison
f083c1f57e
Fix bug #5568 net rpc trustdom add broken !
...
net rpc trustdom add was broken. The default 10second timeout can be too short
to create an account on a Samba DC (calling out to a script), error message
reporting was poor, and more importantly the new marshalling code for
user_info23 was broken (maps onto a user_info21 but doesn't clear the
user_info23 struct before marshalling, leaving an uninitialized size field -
give "alloc failure").
Jeremy.
(This used to be commit e072b3667e590ba6dd1d9a47fb616a53753fa83e)
2008-06-27 17:26:41 -07:00
Jeremy Allison
799252f635
Fix the non-LDAP, non-krb5 build, fix gcc -O3 warnings.
...
Jeremy.
(This used to be commit 9e2ab30d3cf6950fc79152b2169e7aeae8d6a366)
2008-06-26 19:46:18 -07:00
Günther Deschner
402733b518
rpc_client: add rpccli_samr_chgpasswd_user() call.
...
Guenther
(This used to be commit 10fd2baa8320f96286d53b677cf38f3ca3aa88a7)
2008-06-25 23:58:50 +02:00
Günther Deschner
14d500c0e7
rename rpccli_samr_chgpasswd3 to rpccli_samr_chgpasswd_user3.
...
Guenther
(This used to be commit b1209a039b45985e0b28777e04cba5bcc3de061e)
2008-06-25 23:58:50 +02:00
Günther Deschner
059293cbf4
rename rpccli_samr_chgpasswd_user to rpccli_samr_chgpasswd_user2.
...
Guenther
(This used to be commit 5b4650d56c04be0c498413f17afb2cf6d0e7d548)
2008-06-25 23:58:50 +02:00
Günther Deschner
92bd665aea
rpc_client: let cli_get_session_key() return talloced session key.
...
Thanks, Volker, for pointing this out.
Guenther
(This used to be commit b47899195e0c190445953243fe80da4e92994dd1)
2008-06-25 09:51:31 +02:00
Günther Deschner
07f06eec21
rpc_client: add cli_get_session_key().
...
Guenther
(This used to be commit 93b56755f739889da3a67b18a6430b14306d84f7)
2008-06-24 23:47:58 +02:00
Karolin Seeger
1178287eeb
rpc_client: Avoid warning in builds without krb5 headers.
...
warning: ‘cli_auth_kerberos_data_destructor’ defined but not used
Karolin
(This used to be commit b5f9176b6ca8c137d5c065abed943fa437b5531f)
2008-06-24 16:30:32 +02:00
Günther Deschner
95a1f88d93
rpc_client: fix some valgrind warnings.
...
Guenther
(This used to be commit 0352682a355b42ced7628a720a6889d8453e7946)
2008-06-11 10:47:21 +02:00
Volker Lendecke
f1d160f333
Fix a const warning
...
Jelmer, would it be possible to make the rpc client functions take const
pointers for pure [in] arguments?
(This used to be commit d893b2ea13d2e64f1c13aa3984f77baa91a2c658)
2008-05-25 13:53:44 +02:00
Günther Deschner
1a16a2cf97
drsuapi: always use tcp for drsuapi.
...
cli_rpc_pipe_open() now uses tcp transport for drsuapi and named pipe
transport for all other pipes.
This finally allows rpcclient to call dscracknames on windows
(don't forget to call "seal" in advance).
Guenther
(This used to be commit b243a036026e79b8d3fb75bf7f7d59a27cb813af)
2008-05-24 01:29:13 +02:00
Volker Lendecke
34104dfc21
Fix a (bogus) uninitialized variable warning
...
(This used to be commit 6106d48a5c94e7c1f3a7234807e43aca0a51fa62)
2008-05-23 15:37:05 +02:00
Michael Adam
a8045b1339
rpc_client: make rpc_pipe_open_tcp_port and rpc_pipe_get_tcp_port static.
...
Slim the interface...
Michael
(This used to be commit 9971118c23900d81e885a013e738a67df790c90c)
2008-05-22 11:30:04 +02:00
Michael Adam
b398a96b09
rpc_client: use endpoint mapper to get the port for rpc_pipe_open_tcp().
...
Michael
(This used to be commit f7db445c828c0eef2c08b538bd07d485dc248689)
2008-05-22 11:29:57 +02:00
Volker Lendecke
36e94197d0
rpc_client: add a destructor to close the socket for pipes over tcp.
...
used in rpc_pipe_open_tcp() and rpc_pipe_open_ncalrpc().
(This used to be commit a0bdd56c75ca6f6c6068995647c0dc1ba89aef12)
2008-05-21 23:35:26 +02:00
Volker Lendecke
e8d25443c1
Add client support for NCACN_UNIX_STREAM
...
(This used to be commit 24ac40518f79fd480baaedc1d42f3b6fe8ea1c94)
2008-05-21 23:35:25 +02:00
Volker Lendecke
78022953e7
rpccli_schannel_bind_data only needs the schannel key
...
(This used to be commit be5d54a363a57113e494202a2d22dd9bbcf13b41)
2008-05-21 23:35:25 +02:00
Volker Lendecke
ec70996fc7
Rename rpc_pipe_client.tcp.sock to rpc_pipe_client.sock.fd
...
(This used to be commit 2ff908a902ec857856518eaddb5246dd5067063d)
2008-05-21 23:35:24 +02:00
Volker Lendecke
9a6b1f4b5f
Fix a comment
...
(This used to be commit 8ae39c1339758795a91c6a168e210357e7f29eae)
2008-05-21 23:35:24 +02:00