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
Volker Lendecke
968a006555
Factor out generation of an info3 struct from a serversupplied_info
...
(This used to be commit e60faccc1bdd2b80e039ec8c93683be10752f937)
2008-05-17 23:17:40 +02:00
Volker Lendecke
2c00ff5407
Fix two uninitialized variable warnings
...
(This used to be commit 48fd7b3635137e2fe77c0b0413965869194421ff)
2008-05-05 11:17:19 +02:00
Volker Lendecke
9de291e671
Attempt to fix the non-krb build
...
(This used to be commit 31d80a476701c89bf236997f2ab68bd2765579bd)
2008-04-25 12:36:39 +02:00
Volker Lendecke
79fae5082a
Add basic ncacn_ip_tcp client infrastructure
...
(This used to be commit 11072ccc7aeb6e087e78cea83959a2f6e0b2f837)
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 3433f430b0c1f7d350a40eac783385a2d30d905c)
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 83892d51de0dcdaeae18bc34d03eefefc95ff601)
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 6f08128cf2722618e74b603e180e7e2a83d7d07a)
2008-04-25 11:12:52 +02:00
Volker Lendecke
324e92ea67
Make use of rpccli_xxx_bind_data
...
(This used to be commit f9bc336affd2ce21a3c62880ecea2622f35653d1)
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 630b9c241cb6db758f8290420a38af452569e903)
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 42de50d2cd43e760d776694f7b5f003ba51d7f84)
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 f665afaaa3eff9ef54112e08ed034a6e1bb30edc)
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 3d8c2a47e677a4c4aacf4abf148b1bd8163c3351)
2008-04-21 23:36:05 +02:00
Volker Lendecke
712e40dad2
Fix some empty lines with just spaces
...
(This used to be commit f8fb9b7e3759bec7fbcf93b27438ca6b03202ddb)
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 c56e1c08cef107ff33a34346ceeca3475a102b19)
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 99fc3283c4ecc791f5a242bd1983b4352ce3e6cf)
2008-04-20 14:08:16 +02:00
Volker Lendecke
33592bdcb9
Refactoring: Move stuff around for creating a pipe
...
(This used to be commit 45be749ed69f8c1ad3ebe8ea1f35c806db2ed5d0)
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 4840febcd481563c3d9b2fabc1fe1b2ae5a76cf6)
2008-04-20 11:47:33 +02:00
Volker Lendecke
ff8aa642f3
Remove some unused code referencing pipe_names[]
...
(This used to be commit d8a04b798c44c26a91a37fa7090dd071a1909166)
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 3f6c5b99664a75a6f490ee3b6980b89cacf7f579)
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 2e4c1ba38963cffe4c3f25ab24bc28975f2fc291)
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 a9061e52e1ff8e31aa480f4a30cda64c9d93214e)
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 783afab9c891dd7bcb78895b2a639b6f3a0edf5b)
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 a6d74a5a562b54f0b36934965f545fdeb1e8b34a)
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 b90062e33cbde7de4961414fd35a3a588760d002)
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 428654b473ba44b2f5340eefef0d4fcd51aff558)
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 7bea00dca1ee08ef731dfa73110ef9c190a29919)
2008-04-15 20:26:52 +02:00
Günther Deschner
29f44dc144
Move rpccli_try_samr_connects out of rpcclient.
...
Guenther
(This used to be commit f550cdb6f240830ee1e3a2dfe5f4128bca0cf836)
2008-04-04 01:40:29 +02:00
Günther Deschner
dc2274819e
Fix rpccli_lsa_lookup_sids_noalloc.
...
When looking up e.g. a trusted doamin account, there is just no name.
Michael, please check.
Guenther
(This used to be commit ea3cfadc2504c891b4784719bd8e6debcc38c879)
2008-04-03 00:27:02 +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 0970369ca0cb9ae465cff40e5c75739824daf1d0)
2008-04-02 11:12:47 +02:00
Günther Deschner
a3991c9ef4
Fix SRVSVC ShareInfo level 502 server side handling.
...
Guenther
(This used to be commit 776facabf6f09f643d6dc526aa83f8db517465f9)
2008-04-01 00:26:32 +02:00
Günther Deschner
9afc225b37
Fix SRVSVC ShareInfo max_users handling server side.
...
Guenther
(This used to be commit b4d944e724f7ae2a97ba788b185aba7b7308b475)
2008-04-01 00:26:32 +02:00