1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-07 01:58:28 +03:00

798 Commits

Author SHA1 Message Date
Günther Deschner
6091c8152a r19161: Add NET_GETANYDCNAME (getdcname only gives the PDC while getanydcname
gives just any DC), also make sure to set timeouts in rpcclient
accordingly so that we actually get the DC's reply.

Guenther
2007-10-10 12:15:18 -05:00
Günther Deschner
44e228ac79 r19143: getdcname on the NETLOGON pipe returns WERROR, not NTSTATUS.
Guenther
2007-10-10 12:15:16 -05:00
Volker Lendecke
4a5d11e194 r19013: Fix some 64-bit warnings.
Jelmer, Jerry, in cmd_unixinfo.c:159 there is still the warning that "info" is
being used uninitialized which I don't really know how to fix.

Any hints?

Volker
2007-10-10 12:15:02 -05:00
Günther Deschner
1f09e54fec r18935: Make "netshareenum" work again. There is most probably a better way to
do this... Any pointers?

Guenther
2007-10-10 12:14:48 -05:00
Volker Lendecke
ecac9b5959 r18874: Fix some NTSTATUS/WERROR mixups 2007-10-10 12:14:40 -05:00
Andrew Tridgell
8438a6a7d4 r18865: fixed some of the most obvious NTSTATUS/WERROR mixups in Samba3. It
still doesn't compile with immediate structures and the
NTSTATUS/WERROR separation, as there are still several places where
the two error types are mixed up. I haven't fixed those as they
require decisions about the rpcclient code that I really don't want to
get into (the error handling there is a mess)

So samba3 compiles now, but only becaise HAVE_IMMEDIATE_STRUCTURES is
not used (look for HAVE_IMMEDIATE_STRUCTURES_XX_DISABLED)
2007-10-10 12:01:06 -05:00
Jelmer Vernooij
ef10672399 r18802: Use the pidl-generated code for the srvsvc interface, both client and server code.
This has had some basic testing. I'll do more during the next couple of days and hopefully also
make RPC-SRVSVC from Samba4 pass against it.
2007-10-10 12:00:59 -05:00
Gerald Carter
50d74ce048 r18747: replace rpccli_lsa_close() with rpccli_lsa_Close() 2007-10-10 12:00:54 -05:00
Jelmer Vernooij
b41c52b9db r18745: Use the Samba4 data structures for security descriptors and security descriptor
buffers.

Make security access masks simply a uint32 rather than a structure
with a uint32 in it.
2007-10-10 12:00:54 -05:00
Günther Deschner
fccaff3713 r18732: Fix build warning as pointed out by Volker.
Guenther
2007-10-10 12:00:53 -05:00
Gerald Carter
c4788f0c13 r18711: Replace the following hand code client routines:
* rpccli_reg_abort_shutdown()
* rpccli_reg_flush_key()
Remove the cmd_reg.c from rpcclient since the entire file
was unused
2007-10-10 12:00:51 -05:00
Jim McDonough
f3ff074046 r18702: re-enable non-decimal specification of rid 2007-10-10 12:00:49 -05:00
Günther Deschner
ffec64730b r18681: Although we have commandline completion in rpcclient, just also allow
"debug" to be set instead of "debuglevel" - just for convenience.

Guenther
2007-10-10 12:00:47 -05:00
Günther Deschner
bd546edc48 r18677: quickly add samr_GetDisplayEnumerationIndex for debugging to rpcclient.
Guenther
2007-10-10 12:00:46 -05:00
Günther Deschner
1a307954e5 r18619: Add rpcclient helper for samr_querydispinfo2|3 for testing.
Guenther
2007-10-10 11:52:00 -05:00
Gerald Carter
fd0579b963 r18617: fix unixinfo call after change to IDL (change from pointer) 2007-10-10 11:52:00 -05:00
Jelmer Vernooij
9e9a053661 r18572: Use the autogenerated client and server for the echo interface and implement
some of the missing functions. RPC-ECHO now passes against Samba3.
2007-10-10 11:51:51 -05:00
Gerald Carter
23a8828613 r18560: * Add in the winreg and initshutdown IDL files
* rename PI_SHUTDOWN from include/smb.h to PI_INITSHUTDOWN
  for compatibility with pidl libndr output
2007-10-10 11:51:50 -05:00
Jelmer Vernooij
e277fb067b r18469: Use new pidl-generated DFS client code. 2007-10-10 11:51:43 -05:00
Gerald Carter
96e412a04c r18394: get the lsa client code to link 2007-10-10 11:51:21 -05:00
Gerald Carter
3da9f80c28 r18271: Big change:
* autogenerate lsa ndr code
* rename 'enum SID_NAME_USE' to 'enum lsa_SidType'
* merge a log more security descriptor functions from
  gen_ndr/ndr_security.c in SAMBA_4_0

The most embarassing thing is the "#define strlen_m strlen"
We need a real implementation in SAMBA_3_0 which I'll work on
after this code is in.
2007-10-10 11:51:18 -05:00
Jelmer Vernooij
eec8b915d1 r18233: Use the autogenerated cli_unixinfo rather than the old one. 2007-10-10 11:51:17 -05:00
Jelmer Vernooij
1115745cae r18188: merge 3.0-libndr branch 2007-10-10 11:43:56 -05:00
Günther Deschner
8c1198c159 r17454: Adding dfs_EnumEx for rpcclient (Samba4 IDL to follow).
Guenther
2007-10-10 11:38:35 -05:00
Günther Deschner
f9bef1f08f r17453: Fix msdfs RPC management (this broke with the autogenerated dfs rpcs).
* Remove "unknown" from dfs_Enum (samba4 dfs IDL updates to follow).

* When encountering an unsupported infolevel the rpc server must reply
with a dfs_info_0 structure and WERR_OK (observed from w2k3 when talking
to nt4).

Guenther
2007-10-10 11:38:34 -05:00
Volker Lendecke
1e4ee728df r17316: More C++ warnings -- 456 left 2007-10-10 11:38:25 -05:00
Jeremy Allison
9dafb7f48c r16945: Sync trunk -> 3.0 for 3.0.24 code. Still need
to do the upper layer directories but this is what
everyone is waiting for....

Jeremy.
2007-10-10 11:19:14 -05:00
Jeremy Allison
7875394898 r16654: Fix bug #3893 reported by jason@ncac.gwu.edu.
Jeremy.
2007-10-10 11:19:06 -05:00
Jeremy Allison
ee2b2d96b6 r16644: Fix bug #3887 reported by jason@ncac.gwu.edu
by converting the lookup_XX functions to correctly
return SID_NAME_TYPE enums.
Jeremy.
2007-10-10 11:19:05 -05:00
Volker Lendecke
5b1eba76b3 r16339: Fix Klocwork ID
277 278     (cmd_*)

485 487 488 (ldap.c)

Volker
2007-10-10 11:17:36 -05:00
Jeremy Allison
502f3e911a r15556: Better fix for leading // or \\ from "David R. Linn"
<drl@vuse.vanderbilt.edu>.
Jeremy.
2007-10-10 11:16:59 -05:00
Günther Deschner
a80f366057 r15553: minor rpcclient cleanup: length is already set in data_blob.
Guenther
2007-10-10 11:16:59 -05:00
Jeremy Allison
45cfba12cf r15537: Ignore // or \\ in //server or \\server.
Jeremy.
2007-10-10 11:16:56 -05:00
Günther Deschner
41b72e77ae r15442: Add some more client rpc for the querydominfo calls (from samba4 idl).
Also return the hostname for the level 6 call (to be consistent with the
server name in level 2).

Guenther
2007-10-10 11:16:44 -05:00
Günther Deschner
0fed66926f r15041: Adding rpc client calls to manipulate auditing policies on remote CIFS
servers. Also add a new "net rpc audit" tool. The lsa query infolevels
were taken from samb4 IDL, the lsa policy flags and categories are
partly documented on msdn. I need to cleanup the double
lsa_query_info_policy{2}{_new} calls next.

Guenther
2007-10-10 11:15:59 -05:00
Jeremy Allison
b985bdcb87 r14833: Fix resource leak on error code path. Coverity #280.
Jeremy.
2007-10-10 11:15:50 -05:00
Günther Deschner
6c4fe819c6 r14646: Adding samr querygroup infolevels 2 & 5.
Guenther
2007-10-10 11:15:42 -05:00
Günther Deschner
9de3e9e6b2 r14579: Add REJECT_REASON_OTHER in the rpcclient chgpasswd3.
Guenther
2007-10-10 11:15:38 -05:00
Günther Deschner
52d721b638 r14495: Allow to play with the logon_param flag when testing samlogons.
Guenther
2007-10-10 11:15:34 -05:00
Jeremy Allison
3799f18b35 r14399: Fix deadcode coverity bug #3.
Jeremy.
2007-10-10 11:15:28 -05:00
Jeremy Allison
76c4f2c4dc r14340: Fix coverity #78, resource leak in error path.
Jeremy.
2007-10-10 11:15:26 -05:00
Volker Lendecke
d47ee82f06 r14245: We've dereferenced argv before, no point in checking.
Fix Coverity bug # 144.

Volker
2007-10-10 11:15:20 -05:00
Volker Lendecke
b3cfa292cf r14217: Fix Coverity Bug # 7 2007-10-10 11:15:17 -05:00
Volker Lendecke
e4c9cba2f9 r14216: Fix Coverity bug # 8 2007-10-10 11:15:17 -05:00
Günther Deschner
ade86cc787 r14146: Just some typos.
Guenther
2007-10-10 11:15:13 -05:00
Günther Deschner
18ee669c60 r14144: allow to set sec_info in rpcclients lsa_query_secobj.
Guenther
2007-10-10 11:15:13 -05:00
Günther Deschner
7e80d5358e r13945: Move display_sec.c to lib/ (as suggested by Volker).
Guenther
2007-10-10 11:11:00 -05:00
Günther Deschner
0ae3fddf95 r13864: Some cleanup and the samr set security object function client-side.
Guenther
2007-10-10 11:10:57 -05:00
Günther Deschner
5b89e8bc24 r13711: * Correctly handle acb_info/acct_flags as uint32 not as uint16.
* Fix a couple of related parsing issues.
* in the info3 reply in a samlogon, return the ACB-flags (instead of
  returning zero)

Guenther
2007-10-10 11:10:25 -05:00
Gerald Carter
b65be8874a r13571: Replace all calls to talloc_free() with thye TALLOC_FREE()
macro which sets the freed pointer to NULL.
2007-10-10 11:10:14 -05:00