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 b243a03602
)
2008-05-24 01:29:13 +02:00
Volker Lendecke
34104dfc21
Fix a (bogus) uninitialized variable warning
...
(This used to be commit 6106d48a5c
)
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 9971118c23
)
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 f7db445c82
)
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 a0bdd56c75
)
2008-05-21 23:35:26 +02:00
Volker Lendecke
e8d25443c1
Add client support for NCACN_UNIX_STREAM
...
(This used to be commit 24ac40518f
)
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 be5d54a363
)
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 2ff908a902
)
2008-05-21 23:35:24 +02:00
Volker Lendecke
9a6b1f4b5f
Fix a comment
...
(This used to be commit 8ae39c1339
)
2008-05-21 23:35:24 +02:00
Volker Lendecke
2c00ff5407
Fix two uninitialized variable warnings
...
(This used to be commit 48fd7b3635
)
2008-05-05 11:17:19 +02:00
Volker Lendecke
9de291e671
Attempt to fix the non-krb build
...
(This used to be commit 31d80a4767
)
2008-04-25 12:36:39 +02:00
Volker Lendecke
79fae5082a
Add basic ncacn_ip_tcp client infrastructure
...
(This used to be commit 11072ccc7a
)
2008-04-25 11:12:52 +02:00
Volker Lendecke
63e0884df5
Introduce a redirection for ncacn_np and ncacn_ip_tcp in rpc_pipe_client
...
Should be no functional change, just a change in the data structure
(This used to be commit 3433f430b0
)
2008-04-25 11:12:52 +02:00
Volker Lendecke
cf182c0a76
Introduce rpccli_pipe_txt(), describing a pipe for debug messages
...
(This used to be commit 83892d51de
)
2008-04-25 11:12:52 +02:00
Volker Lendecke
eb5582d28a
cli_rpc_pipe_open_noauth must take the user/domain from the smb session
...
(This used to be commit 6f08128cf2
)
2008-04-25 11:12:52 +02:00
Volker Lendecke
324e92ea67
Make use of rpccli_xxx_bind_data
...
(This used to be commit f9bc336aff
)
2008-04-25 11:12:51 +02:00
Volker Lendecke
253b0b8868
Create rpccli_xxx_bind_data functions
...
These functions create the auth data for the later bind
(This used to be commit 630b9c241c
)
2008-04-25 11:12:51 +02:00
Volker Lendecke
862d7e32b9
Move user/domain from rpc_pipe_client to cli_pipe_auth_data
...
(This used to be commit 42de50d2cd
)
2008-04-25 11:12:50 +02:00
Volker Lendecke
9e9d40d097
Refactoring: Make cli_pipe_auth_data a pointer off rpc_pipe_client
...
(This used to be commit f665afaaa3
)
2008-04-25 11:12:50 +02:00
Volker Lendecke
b78453326b
Remove the "pwd" struct from rpc_pipe_client
...
The only user of this was decrypt_trustdom_secret, and this only needs the NT
hash anyway.
(This used to be commit 3d8c2a47e6
)
2008-04-21 23:36:05 +02:00
Volker Lendecke
712e40dad2
Fix some empty lines with just spaces
...
(This used to be commit f8fb9b7e37
)
2008-04-20 16:23:48 +02:00
Volker Lendecke
b9cc055062
Introduce rpc_pipe_np_smb_conn()
...
This abstracts away all references to rpc_pipe_client->cli, the only reference
is now in cli_pipe.c.
(This used to be commit c56e1c08ce
)
2008-04-20 14:08:16 +02:00
Volker Lendecke
e73e8297f5
Replace cli_rpc_pipe_close by a talloc destructor on rpc_pipe_struct
...
(This used to be commit 99fc3283c4
)
2008-04-20 14:08:16 +02:00
Volker Lendecke
33592bdcb9
Refactoring: Move stuff around for creating a pipe
...
(This used to be commit 45be749ed6
)
2008-04-20 14:08:10 +02:00
Volker Lendecke
f56eedb95c
Remove the pipe_idx variable from rpc_pipe_client
...
(This used to be commit 4840febcd4
)
2008-04-20 11:47:33 +02:00
Volker Lendecke
ff8aa642f3
Remove some unused code referencing pipe_names[]
...
(This used to be commit d8a04b798c
)
2008-04-20 11:27:24 +02:00
Volker Lendecke
cf2442bdcb
Use rpc_pipe_client->user_name instead of rpc_pipe_client->cli->user_name
...
Also make sure that rpc_pipe_client->user_name is always talloced.
(This used to be commit 3f6c5b9966
)
2008-04-20 00:14:40 +02:00
Volker Lendecke
e1102b8f48
Introduce rpccli_set_timeout()
...
Reduce dependency on "cli" member of rpc_pipe_client struct
(This used to be commit 2e4c1ba389
)
2008-04-20 00:14:26 +02:00
Volker Lendecke
9048cafbea
Move srv_name_slash from cli_state to rpc_pipe_client
...
(This used to be commit a9061e52e1
)
2008-04-20 00:14:13 +02:00
Volker Lendecke
2a2188591b
Add "desthost" to rpc_pipe_client
...
This reduces the dependency on cli_state
(This used to be commit 783afab9c8
)
2008-04-20 00:13:09 +02:00
Volker Lendecke
b46d340fd5
Refactoring: Make struct rpc_pipe_client its own talloc parent
...
(This used to be commit a6d74a5a56
)
2008-04-20 00:12:52 +02:00
Volker Lendecke
fb73de3b92
Set the right domain\user in cli_rpc_pipe_open_ntlmssp_internal
...
This probably does not matter in current code, but without this it's not
possible to do the bind as a different user than the underlying smb user.
Jeremy, please check!
Thanks,
Volker
(This used to be commit b90062e33c
)
2008-04-19 23:54:01 +02:00
Jelmer Vernooij
a4c60b2696
rpc_parse: Use UUIDs from librpc/gen_ndr/ when possible to reduce
...
duplication.
(This used to be commit 428654b473
)
2008-04-17 17:54:32 +02:00
Jelmer Vernooij
28fd4f6fcb
Reconcile ndr_syntax_id used by pidl-generated code and Samba3's RFC_IFACE.
...
(This used to be commit 7bea00dca1
)
2008-04-15 20:26:52 +02:00
Günther Deschner
99d3590455
Fix NETLOGON credential chain with Windows 2008 all over the place.
...
In order to avoid receiving NT_STATUS_DOWNGRADE_DETECTED from a w2k8
netr_ServerAuthenticate2 reply, we need to start with the AD netlogon negotiate
flags everywhere (not only when running in security=ads). Only for NT4 we need
to do a downgrade to the returned negotiate flags.
Tested with w2k8, w2ksp4, w2k3r2 and nt4sp6.
Guenther
(This used to be commit 0970369ca0
)
2008-04-02 11:12:47 +02:00
Marc VanHeyningen
e06aa46b9f
Coverity fixes
...
(This used to be commit 3fc85d2259
)
2008-03-17 20:52:25 +01:00
Steven Danneman
6fb37ae672
Closed memory leak on error path.
...
(This used to be commit 376de8a0e4
)
2008-02-27 07:23:28 +01:00
Günther Deschner
05ff7fd46e
Use generated DSSETUP client & server rpc functions and remove the hand-written ones.
...
Guenther
(This used to be commit d5ebfccebb
)
2008-01-25 15:30:43 +01:00
Andreas Schneider
691c4b1a41
Windows 2008 (Longhorn) auth2 flag fixes.
...
Interop fixes for AD specific flags. Original patch from Todd Stetcher.
(This used to be commit 5aadfcdaac
)
2008-01-23 14:55:22 -08:00
Michael Adam
68e65b2981
Fix a debug message: add missing space.
...
Michael
(This used to be commit 6a7f2a59fc
)
2007-12-18 07:58:37 +01:00
Michael Adam
d9682dfb59
Do not close netlogon pipe in get_schannel_session_key_common().
...
This removes one forgotten call of cli_rpc_pipe_close(netlogon_pipe).
Correction of e77c4022cf
.
Michael
(This used to be commit 7f6593cdde
)
2007-12-17 23:27:53 +01:00
Michael Adam
7cf5c17f12
Refactoring out get_schannel_session_key logic.
...
Refactor the actual retrieval of the session key through the
established netlogon pipe out of get_schannel_session_key()
and get_schannel_session_key_auth_ntlmssp() into a new
function get_schannel_session_key_common().
(To avoid code duplication.)
Michael
(This used to be commit e77c4022cf
)
2007-12-13 10:15:19 +01:00
Michael Adam
31f221ed93
Rename get_trust_pw() to get_trust_pw_hash().
...
Michael
(This used to be commit 0cde7ac9cb
)
2007-12-13 10:15:19 +01:00
Michael Adam
f793c99ca5
Let get_trust_pw() determine the machine_account_name to use.
...
Up to now each caller used its own logic.
This eliminates code paths where there was a special treatment
of the following situation: the domain given is not our workgroup
(i.e. our own domain) and we are not a DC (i.e. it is not a typical
trusted domain situation). In situation the given domain name was
previously used as the machine account name, resulting in an account
name of DOMAIN\\DOMAIN$, which does not seem very reasonable to me.
get_trust_pw would not have obtained a password in this situation
anyways.
I hope I have not missed an important point here!
Michael
(This used to be commit 6ced4a7f88
)
2007-12-13 10:15:17 +01:00
Jeremy Allison
7faee02d0d
Remove the char[1024] strings from dynconfig. Replace
...
them with malloc'ing accessor functions. Should save a
lot of static space :-).
Jeremy.
(This used to be commit 52dc5eaef2
)
2007-12-10 11:30:37 -08:00
Jeremy Allison
d2cf97aeba
Remove the explicit TALLOC_CTX * from cli_struct.
...
Make us very explicit about how long a talloc ctx
should last.
Jeremy.
(This used to be commit ba9e2be2b5
)
2007-11-29 13:24:54 -08:00
Jeremy Allison
66298d8080
More pstring elimination.
...
Jeremy.
(This used to be commit 15074de938
)
2007-11-20 17:18:16 -08:00
Jeremy Allison
30191d1a57
RIP BOOL. Convert BOOL -> bool. I found a few interesting
...
bugs in various places whilst doing this (places that assumed
BOOL == int). I also need to fix the Samba4 pidl generation
(next checkin).
Jeremy.
(This used to be commit f35a266b3c
)
2007-10-18 17:40:25 -07:00
Gerald Carter
5221ebb299
r25407: Revert Longhorn join patch as it is not correct for the 3.2 tree.
...
The translate_name() used by cli_session_setup_spnego() cann rely
Winbindd since it is needed by the join process (and hence before
Winbind can be run).
(This used to be commit 00a93ed336
)
2007-10-10 12:31:03 -05:00
Gerald Carter
3529156971
r25400: Windows 2008 (Longhorn) Interop fixes for AD specific auth2 flags,
...
and client fixes. Patch from Todd Stetcher <todd.stetcher@isilon.com>.
(This used to be commit 8304ccba73
)
2007-10-10 12:31:02 -05:00