1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-17 02:05:21 +03:00

799 Commits

Author SHA1 Message Date
Günther Deschner
258f7b50dc r19340: Wait longer then 10 seconds for a samr_query_groupmem lookup to succeed.
Guenther
(This used to be commit 37dd019e21cab2f0df314b0b741f79422fc10d1b)
2007-10-10 12:15:29 -05:00
Günther Deschner
7b84b133fe 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
(This used to be commit 6091c8152a3998d2503cb0911a217ee904509633)
2007-10-10 12:15:18 -05:00
Günther Deschner
adc299bd08 r19143: getdcname on the NETLOGON pipe returns WERROR, not NTSTATUS.
Guenther
(This used to be commit 44e228ac796fca2db8509915067511ed705032bf)
2007-10-10 12:15:16 -05:00
Volker Lendecke
bb5c820542 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
(This used to be commit 4a5d11e194ebdfb6c21586d1cf902f8ed2478e45)
2007-10-10 12:15:02 -05:00
Günther Deschner
efffbc9036 r18935: Make "netshareenum" work again. There is most probably a better way to
do this... Any pointers?

Guenther
(This used to be commit 1f09e54fec9ac2e6173272d83d8c96d33636f1a0)
2007-10-10 12:14:48 -05:00
Volker Lendecke
323b724ce9 r18874: Fix some NTSTATUS/WERROR mixups
(This used to be commit ecac9b59594ef14a65091591c258b000036575fc)
2007-10-10 12:14:40 -05:00
Andrew Tridgell
0c3194816b 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)
(This used to be commit 8438a6a7d4506d395c8b4bd0e99f9c100e5e3c4e)
2007-10-10 12:01:06 -05:00
Jelmer Vernooij
7ba2554d88 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.
(This used to be commit ef10672399c4b82700dc431b4d93431ffdd42d98)
2007-10-10 12:00:59 -05:00
Gerald Carter
05ba38f754 r18747: replace rpccli_lsa_close() with rpccli_lsa_Close()
(This used to be commit 50d74ce0488a9bd0980cdc6d523a210f6238ef74)
2007-10-10 12:00:54 -05:00
Jelmer Vernooij
4db7642caa 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.
(This used to be commit b41c52b9db5fc4a553b20a7a5a051a4afced9366)
2007-10-10 12:00:54 -05:00
Günther Deschner
5cadb91622 r18732: Fix build warning as pointed out by Volker.
Guenther
(This used to be commit fccaff37132de499002b9be484055a4fbf722d0d)
2007-10-10 12:00:53 -05:00
Gerald Carter
a6ddf9bf5d 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
(This used to be commit c4788f0c1398feb098f131aa5c4d0398d7489527)
2007-10-10 12:00:51 -05:00
Jim McDonough
47bb2e1839 r18702: re-enable non-decimal specification of rid
(This used to be commit f3ff07404650e4b9846367ba981764b1a879bca9)
2007-10-10 12:00:49 -05:00
Günther Deschner
7eca40ba3e r18681: Although we have commandline completion in rpcclient, just also allow
"debug" to be set instead of "debuglevel" - just for convenience.

Guenther
(This used to be commit ffec64730b04076264045841ccfd0ed7fce43c2f)
2007-10-10 12:00:47 -05:00
Günther Deschner
5864fb9fc5 r18677: quickly add samr_GetDisplayEnumerationIndex for debugging to rpcclient.
Guenther
(This used to be commit bd546edc482d42c6d783f474eeffa8a8086efd83)
2007-10-10 12:00:46 -05:00
Günther Deschner
a812e2d7db r18619: Add rpcclient helper for samr_querydispinfo2|3 for testing.
Guenther
(This used to be commit 1a307954e5ddc1441524eb6d22258be387cca9d4)
2007-10-10 11:52:00 -05:00
Gerald Carter
ab91674753 r18617: fix unixinfo call after change to IDL (change from pointer)
(This used to be commit fd0579b9638260309721a71fbc07e60da0a23ea0)
2007-10-10 11:52:00 -05:00
Jelmer Vernooij
e5db7fee0f r18572: Use the autogenerated client and server for the echo interface and implement
some of the missing functions. RPC-ECHO now passes against Samba3.
(This used to be commit 9e9a05366176454cc1779acc6c2b6070743f5939)
2007-10-10 11:51:51 -05:00
Gerald Carter
c4013df0c1 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
(This used to be commit 23a882861311d9d6ca45af1bfcc90d05846ba3a9)
2007-10-10 11:51:50 -05:00
Jelmer Vernooij
8be112a81b r18469: Use new pidl-generated DFS client code.
(This used to be commit e277fb067b1a12d816c8a066839751c1824d27bb)
2007-10-10 11:51:43 -05:00
Gerald Carter
85e4a7a5b3 r18394: get the lsa client code to link
(This used to be commit 96e412a04cedc4c361c08e0ed1d141f3b018728b)
2007-10-10 11:51:21 -05:00
Gerald Carter
2b27c93a9a 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.
(This used to be commit 3da9f80c28b1e75ef6d46d38fbb81ade6b9fa951)
2007-10-10 11:51:18 -05:00
Jelmer Vernooij
1779e3f104 r18233: Use the autogenerated cli_unixinfo rather than the old one.
(This used to be commit eec8b915d1bf6e62c45d309579a4f93380aa43a8)
2007-10-10 11:51:17 -05:00
Jelmer Vernooij
995205fc60 r18188: merge 3.0-libndr branch
(This used to be commit 1115745caed3093c25d6be01ffee21819fb0a675)
2007-10-10 11:43:56 -05:00
Günther Deschner
72c605b4fc r17454: Adding dfs_EnumEx for rpcclient (Samba4 IDL to follow).
Guenther
(This used to be commit 8c1198c1592e7c07904b448ed7a54b9b23c941df)
2007-10-10 11:38:35 -05:00
Günther Deschner
11673dc07a 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
(This used to be commit f9bef1f08f7d2a4c95c28329ac73e8646f033998)
2007-10-10 11:38:34 -05:00
Volker Lendecke
e23781b3b3 r17316: More C++ warnings -- 456 left
(This used to be commit 1e4ee728df7eeafc1b4d533240acb032f73b4f5c)
2007-10-10 11:38:25 -05:00
Jeremy Allison
fbdcf2663b 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.
(This used to be commit 9dafb7f48ca3e7af956b0a7d1720c2546fc4cfb8)
2007-10-10 11:19:14 -05:00
Jeremy Allison
3c9a5c7b58 r16654: Fix bug #3893 reported by jason@ncac.gwu.edu.
Jeremy.
(This used to be commit 787539489897e79d43eb1833db6f5969b130c934)
2007-10-10 11:19:06 -05:00
Jeremy Allison
2b8abc030b r16644: Fix bug #3887 reported by jason@ncac.gwu.edu
by converting the lookup_XX functions to correctly
return SID_NAME_TYPE enums.
Jeremy.
(This used to be commit ee2b2d96b60c668e37592c79e86c2fd851e15f69)
2007-10-10 11:19:05 -05:00
Volker Lendecke
8961048d24 r16339: Fix Klocwork ID
277 278     (cmd_*)

485 487 488 (ldap.c)

Volker
(This used to be commit 5b1eba76b3ec5cb9b896a9a5641b4d83bdbdd4cf)
2007-10-10 11:17:36 -05:00
Jeremy Allison
a041b6b672 r15556: Better fix for leading // or \\ from "David R. Linn"
<drl@vuse.vanderbilt.edu>.
Jeremy.
(This used to be commit 502f3e911a2e9e3e0e4a4eae34885329e0624dd5)
2007-10-10 11:16:59 -05:00
Günther Deschner
c8baac2fd6 r15553: minor rpcclient cleanup: length is already set in data_blob.
Guenther
(This used to be commit a80f3660573872e7a1c9e4d37262c830d68415e1)
2007-10-10 11:16:59 -05:00
Jeremy Allison
2dd8857dcb r15537: Ignore // or \\ in //server or \\server.
Jeremy.
(This used to be commit 45cfba12cfd87bebd3876087cac0575f586e395f)
2007-10-10 11:16:56 -05:00
Günther Deschner
0fe21ac560 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
(This used to be commit 41b72e77ae70c96de4659af6b4b6bd842dd67981)
2007-10-10 11:16:44 -05:00
Günther Deschner
655b04e4f8 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
(This used to be commit 0fed66926f4b72444abfc8ffb8c46cca8d0600aa)
2007-10-10 11:15:59 -05:00
Jeremy Allison
4f53350b43 r14833: Fix resource leak on error code path. Coverity #280.
Jeremy.
(This used to be commit b985bdcb87eeb70725f2d625a4ea5ec39bda1b94)
2007-10-10 11:15:50 -05:00
Günther Deschner
20204ab040 r14646: Adding samr querygroup infolevels 2 & 5.
Guenther
(This used to be commit 6c4fe819c69f281915ad0f4c3bde4dfb194aa33a)
2007-10-10 11:15:42 -05:00
Günther Deschner
736ba57efe r14579: Add REJECT_REASON_OTHER in the rpcclient chgpasswd3.
Guenther
(This used to be commit 9de3e9e6b26bebc580b771f9020fc7934e44d51c)
2007-10-10 11:15:38 -05:00
Günther Deschner
99a3f68eb5 r14495: Allow to play with the logon_param flag when testing samlogons.
Guenther
(This used to be commit 52d721b6384cf6f94e1ebb59d21bf09737a539b5)
2007-10-10 11:15:34 -05:00
Jeremy Allison
568f28284a r14399: Fix deadcode coverity bug #3.
Jeremy.
(This used to be commit 3799f18b356934592206679310e6e409c0d1ca0f)
2007-10-10 11:15:28 -05:00
Jeremy Allison
abafc0d887 r14340: Fix coverity #78, resource leak in error path.
Jeremy.
(This used to be commit 76c4f2c4dc6fcd91a350985b16f4a6a321ac4bf6)
2007-10-10 11:15:26 -05:00
Volker Lendecke
8790a2e257 r14245: We've dereferenced argv before, no point in checking.
Fix Coverity bug # 144.

Volker
(This used to be commit d47ee82f068f1dfbae4a1c81e6bd765d5d36f09f)
2007-10-10 11:15:20 -05:00
Volker Lendecke
e6f82d5c36 r14217: Fix Coverity Bug # 7
(This used to be commit b3cfa292cf204a87acde073e2f800123ee474e40)
2007-10-10 11:15:17 -05:00
Volker Lendecke
0fcd3e1095 r14216: Fix Coverity bug # 8
(This used to be commit e4c9cba2f94043fe3c3e85e5640cfa6bd340b92f)
2007-10-10 11:15:17 -05:00
Günther Deschner
c34e73cfcf r14146: Just some typos.
Guenther
(This used to be commit ade86cc787e266850fee982b008a9caf2c8ed7e7)
2007-10-10 11:15:13 -05:00
Günther Deschner
e443866f76 r14144: allow to set sec_info in rpcclients lsa_query_secobj.
Guenther
(This used to be commit 18ee669c604b344910308fef81c2544e208ef62c)
2007-10-10 11:15:13 -05:00
Günther Deschner
7aa07a4832 r13945: Move display_sec.c to lib/ (as suggested by Volker).
Guenther
(This used to be commit 7e80d5358eb181c3515acb732a3594e80391261b)
2007-10-10 11:11:00 -05:00
Günther Deschner
9f2e29799e r13864: Some cleanup and the samr set security object function client-side.
Guenther
(This used to be commit 0ae3fddf95a95ec8a2f4d52e1276c1721b33ddfd)
2007-10-10 11:10:57 -05:00
Günther Deschner
e54786b535 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
(This used to be commit 5b89e8bc24f0fdc8b52d5c9e849aba723df34ea7)
2007-10-10 11:10:25 -05:00