1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
Commit Graph

278 Commits

Author SHA1 Message Date
Günther Deschner
a3353677d3 netapi: use NetGroupSetInfo() for "net rpc group rename".
Guenther
(This used to be commit 8a4577ebb0)
2008-06-06 13:59:09 +02:00
Günther Deschner
2bad004f8a net: Use NetGroupAdd() for adding domain groups.
Guenther
(This used to be commit 3f0ce34c62)
2008-06-03 01:27:41 +02:00
Jeremy Allison
5e4d4c8ace A few cleanups from Chere Zhou <chere.zhou@isilon.com>.
Jeremy.

Conflicts:

	source/utils/net_rap.c
	source/utils/net_rpc.c
(This used to be commit ac0c2fb6e8)
2008-05-27 13:56:55 -07:00
Kai Blin
0210f7af91 net: The top level help function for net cmd is always net_cmd_usage
(This used to be commit f7d0903a58)
2008-05-20 14:28:12 +02:00
Kai Blin
1634bd92ea net: Move printer help to net_rpc where it's used.
(This used to be commit 2ee3d1aefa)
2008-05-20 14:28:03 +02:00
Kai Blin
f9a6d1f264 net: Split out "net share"
(This used to be commit 25d4c6f692)
2008-05-20 14:28:01 +02:00
Kai Blin
c9ca6092fe net: Split out "net file"
(This used to be commit 84a116be9c)
2008-05-20 14:27:47 +02:00
Kai Blin
007f0e19dc net: Split out "net group"
(This used to be commit 3ddd9c09e3)
2008-05-20 14:27:40 +02:00
Kai Blin
572de942c7 net: Split out "net user"
(This used to be commit 4ca08a5acc)
2008-05-20 14:27:27 +02:00
Kai Blin
16938883e6 net: Use true/false instead of True/False.
(This used to be commit a8b567aac3)
2008-05-20 14:27:08 +02:00
Kai Blin
4206d97544 net: more whitespace cleanup
(This used to be commit ef0184d580)
2008-05-10 09:22:31 +02:00
Kai Blin
f576910944 net: Remove globals
(This used to be commit 1e9319cf88)
2008-05-10 09:22:27 +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
Günther Deschner
ba0bf87d96 net: Add libnetapi context to net's impressive list of globals.
Guenther
(This used to be commit 8a5fadf6a1)
2008-04-21 20:21:40 +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
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
Günther Deschner
409e093334 net: Remove unused rpc_user_add/del_internals code.
Guenther
(This used to be commit e68daef0ee)
2008-04-16 10:09:07 +02:00
Günther Deschner
004c2beef4 net: Use NetUserAdd for "net rpc user add".
Guenther
(This used to be commit 4868b4ea1a)
2008-04-16 02:41:52 +02:00
Günther Deschner
cd87be5ba2 net: use NetUserDel for "net rpc user delete".
Guenther
(This used to be commit 0105770c15)
2008-04-16 02:39:41 +02:00
Karolin Seeger
a8124367b4 Fix typos.
Karolin
(This used to be commit 6cee347035)
2008-04-09 16:14:04 +02:00
Günther Deschner
8d0ad6413e Fix parameters string for rpc_trustdom_add_internals().
Guenther
(This used to be commit e161bb64a8)
2008-04-09 13:18:46 +02:00
Günther Deschner
81579895a6 Fix lsa_TrustedDomainInfo callers.
Guenther
(This used to be commit e0eae39017)
2008-04-08 22:55:52 +02:00
Stefan Metzmacher
74325d79ad net_rpc: let get_user_sids() use wbcLookupName(), wbcGidToSid() and wbcGetGroups()
metze
(This used to be commit 31375c0263)
2008-04-06 13:43:28 +02:00
Stefan Metzmacher
1e39a6196c net_rpc: let get_user_tokens() use wbcListUsers()
metze
(This used to be commit 4f712452e9)
2008-04-06 13:43:28 +02:00
Günther Deschner
832adaa5ab Fix "net rpc trustdom establish" for win2k8 trusts.
When establishing trusts to a windows 2008 dc, the NetServerEnum2 RAP call fails
with some exotic RAP failure. Let's just try a netlogon getdcname call in
that case to convince ourselve we're talking to a proper machine.

Rafael, looks ok?

Guenther
(This used to be commit b12edbeffe)
2008-04-02 12:29:24 +02:00
Günther Deschner
003472ae23 Fix SRVSVC NetShareInfo level 502 client-side.
Guenther
(This used to be commit 8b4eac0ab1)
2008-04-01 00:26:32 +02:00
Volker Lendecke
c5356479c1 Some simplifications
(This used to be commit b59b436997)
2008-03-17 21:10:16 +01:00
Marc VanHeyningen
e06aa46b9f Coverity fixes
(This used to be commit 3fc85d2259)
2008-03-17 20:52:25 +01:00
Günther Deschner
cfa16eaca0 Use rpccli_srvsvc_NetFileEnum in net and rpcclient.
Guenther
(This used to be commit 348af272f7)
2008-03-10 17:08:55 +01:00
Günther Deschner
b7b89bf808 Convert "net" to use rpccli_srvsvc_NetShare* interfaces everywhere.
Guenther
(This used to be commit 3b21ee3738)
2008-03-10 16:19:25 +01:00
Günther Deschner
758ceaaaaf Use rpccli_srvsvc_NetShareAdd in net.
Guenther
(This used to be commit 6686d97617)
2008-03-10 14:46:27 +01:00
Günther Deschner
0f64ce0179 Use rpccli_srvsvc_NetShareGetInfo in 2 places in "net".
Guenther
(This used to be commit 2ce76ce2bc)
2008-03-10 05:17:09 +01:00
Günther Deschner
8e1fe6379d Use rpccli_srvsvc_NetShareDel in net.
Guenther
(This used to be commit 10d457152e)
2008-03-07 23:51:34 +01:00
Günther Deschner
7269a504fd Add my copyright.
Guenther
(This used to be commit d078a87571)
2008-02-27 19:38:48 +01:00
Karolin Seeger
79fa62a1bf Fix some typos.
Karolin
(This used to be commit 71f05a1f96)
2008-02-26 10:26:10 +01:00
Günther Deschner
a2c0ca84d5 Remove const on policy handle in net rpc.
Volker, are you ok with that?

Guenther
(This used to be commit f1c7fa19e4)
2008-02-13 14:17:29 +01:00
Günther Deschner
0ba3d44f73 Use rpccli_lsa_EnumTrustDom all over the place.
Guenther
(This used to be commit a25e7ffbca)
2008-02-13 00:29:37 +01:00
Günther Deschner
e2b3aad817 Collect all init_lsa_string varients in one place.
Guenther
(This used to be commit f4581e9f44)
2008-02-12 22:05:39 +01:00
Günther Deschner
68855a99d0 Use rpccli_samr_SetUserInfo2() in place of rpccli_samr_set_userinfo().
Guenther
(This used to be commit 1b48b9d73d)
2008-02-12 20:29:13 +01:00
Günther Deschner
bc742a06a2 Remove all callers of rpccli_samr_setuserinfo2 and replace with
rpccli_samr_SetUserInfo (see the opcode mixup in rpc_samr.h).

Guenther
(This used to be commit bdc4918503)
2008-02-12 18:53:59 +01:00
Günther Deschner
4c42f7999a Use rpccli_samr_QueryUserInfo in net and winbindd.
Guenther
(This used to be commit a9ff676090)
2008-02-12 18:16:56 +01:00
Günther Deschner
b88982a5c8 Use rpccli_samr_EnumDomainUsers in net and rpcclient.
Guenther
(This used to be commit bcf2cd324c)
2008-02-12 11:36:33 +01:00
Günther Deschner
cf20a28dd6 Use rpccli_samr_EnumDomainAliases() in net and rpcclient.
Guenther
(This used to be commit d034d34faa)
2008-02-12 11:10:59 +01:00
Volker Lendecke
885b16cd77 Remove a bogus comment
(This used to be commit 599bb7e470)
2008-02-12 11:09:54 +01:00
Günther Deschner
90631dd2c2 Removing unused ACCT_-flags.
Guenther
(This used to be commit d1e5a5a7f9)
2008-02-12 09:48:47 +01:00
Günther Deschner
7e4423288a Use rpccli_samr_LookupNames() in net rpc.
Guenther
(This used to be commit 38b6351534)
2008-02-08 15:30:35 +01:00
Karolin Seeger
1af4ee51ad Fix typo.
Karolin
(This used to be commit ae9d386bcc)
2008-02-08 14:08:49 +01:00
Günther Deschner
e3757bcd1b Use rpccli_samr_LookupRids() in net and rpcclient.
Guenther
(This used to be commit 72fc4ffa38)
2008-02-08 12:07:06 +01:00
Günther Deschner
7520439dca Use rpccli_lsa_QueryInfoPolicy() all over the place.
Guenther
(This used to be commit ce22abcea3)
2008-02-08 10:26:20 +01:00