1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-10 13:57:47 +03:00

725 Commits

Author SHA1 Message Date
Günther Deschner
a8bc4bc902 r11852: Fill in samr_get_dom_pwinfo based on Samba4.
Guenther
2007-10-10 11:05:30 -05:00
Volker Lendecke
62d01ce7e6 r11706: Implement dsr_getdcname client code. It's handy: It not only gives you the IP
address but also the fqdn of the remote dc and site info.

Volker
2007-10-10 11:05:24 -05:00
Jeremy Allison
d1caef8663 r11573: Adding Andrew Bartlett's patch to make machine account
logons work if the client gives the MSV1_0_ALLOW_SERVER_TRUST_ACCOUNT
or MSV1_0_ALLOW_WORKSTATION_TRUST_ACCOUNT flags. This changes
the auth module interface to 2 (from 1). The effect of this is
that clients can access resources as a machine account if they
set these flags. This is the same as Windows (think of a VPN
where the vpn client authenticates itself to a VPN server
using machine account credentials - the vpn server checks
that the machine password was valid by performing a machine
account check with the PDC in the same was as it would a
user account check. I may add in a restriction (parameter)
to allow this behaviour to be turned off (as it was previously).
That may be on by default.
Andrew Bartlett please review this change carefully.
Jeremy.
2007-10-10 11:05:20 -05:00
Jeremy Allison
37e6ef9389 r11492: Fix bug #3224 (I hope). Correctly use machine_account_name
and client_name when doing netlogon credential setup.
Jeremy.
2007-10-10 11:05:18 -05:00
Jeremy Allison
5f10368ff0 r11454: Last 2 uninitialized warnings.
Jeremy.
2007-10-10 11:05:17 -05:00
Volker Lendecke
f4c310d556 r11286: Fix a potential segfault 2007-10-10 11:05:10 -05:00
Jeremy Allison
d720867a78 r11137: Compile with only 2 warnings (I'm still working on that code) on a gcc4
x86_64 box.
Jeremy.
2007-10-10 11:05:02 -05:00
Gerald Carter
939c3cb5d7 r10656: BIG merge from trunk. Features not copied over
* \PIPE\unixinfo
* winbindd's {group,alias}membership new functions
* winbindd's lookupsids() functionality
* swat (trunk changes to be reverted as per discussion with Deryck)
2007-10-10 11:04:48 -05:00
Gerald Carter
ef721333ab r9739: conver the reg_objects (REGSUBKEY_CTR & REGVAL_CTR) to use
the new talloc() features:

 Note that the REGSUB_CTR and REGVAL_CTR objects *must* be talloc()'d
 since the methods use the object pointer as the talloc context for
 internal private data.

 There is no longer a regXXX_ctr_intit() and regXXX_ctr_destroy()
 pair of functions.  Simply TALLOC_ZERO_P() and TALLOC_FREE() the
 object.

Also had to convert the printer_info_2->NT_PRINTER_DATA field
to be talloc()'d as well.  This is just a stop on the road to
cleaning up the printer memory management.
2007-10-10 11:03:25 -05:00
Volker Lendecke
9e94ba54b0 r9200: Add support for REG_BINARY to rpcclient getdata and setprinterdata.
Volker
2007-10-10 11:00:27 -05:00
Volker Lendecke
c7d10e2c83 r9198: Convert hex_encode and strhex_to_data_blob to take a talloc context.
Volker
2007-10-10 11:00:27 -05:00
Volker Lendecke
df85b41462 r9189: Add the capability to set different registry value types (string, dword and
multistring) using setprinterdata. In multistring zero-length strings need to
be specified by "NULL", which is a bit crappy. But poptParseArgvString seems
to eat '' strings. Fix that in getdata as well.

Volker
2007-10-10 11:00:27 -05:00
Günther Deschner
db8fce2e05 r9076: fix two other issues invented along the
cli_spoolss_enumprinterkey-changes.

Guenther
2007-10-10 11:00:24 -05:00
Günther Deschner
624b1c2208 r8938: fix querydispinfo search semantics.
Just in case some uses rpcclient for code-testing...

Guenther
2007-10-10 11:00:21 -05:00
Günther Deschner
c0f3f12a62 r8937: allow to use non-default smb.conf in rpcclient
Guenther
2007-10-10 11:00:21 -05:00
Gerald Carter
0b9faafe40 r8900: fix typo thyat broke compile in my last commit 2007-10-10 11:00:19 -05:00
Gerald Carter
d8ae9f2b3e r8899: various compiler warning fixes reported by Jason Mader <jason@ncac.gwu.edu> 2007-10-10 11:00:19 -05:00
Gerald Carter
cd961e50a3 r8654: merging cli_spoolss_XX() updates from trunk 2007-10-10 11:00:14 -05:00
Günther Deschner
97097497ae r7632: Cleanup "net share migrate"-code.
* Allow to copy share security descriptors to already existing shares
  separatly.

* Added abstraction function to enum all or a single share info

Guenther
2007-10-10 10:57:17 -05:00
Günther Deschner
f3bdc20ba3 r7537: Print passwords in display charset.
Guenther
2007-10-10 10:57:11 -05:00
Günther Deschner
08d124079f r7534: Add missing cli_srvsvc_net_share_set_info-function and
rpcclient-testers.

Needed in preparation of share-ACL migration in net.

Guenther
2007-10-10 10:57:11 -05:00
Gerald Carter
a0ac9a8ffd r7415: * big change -- volker's new async winbindd from trunk 2007-10-10 10:57:08 -05:00
Günther Deschner
5125852939 r7391: - Added client-support for various lsa_query_trust_dom_info-calls and a
rpcclient-tester for some info-levels.

  Jerry, I tried to adopt to prs_pointer() where possible and to not
  interfere with your work for usrmgr.

- Add "net rpc trustdom vampire"-tool.

  This allows to retrieve Interdomain Trust(ed)-Relationships from
  NT4-Servers including cleartext-passwords (still stored in the local
  secrets.tdb).

  The net-hook was done in cooperation with Lars Mueller
  <lmuelle@suse.de>.

  To vampire trusted domains simply call:

        net rpc trustdom vampire -S nt4dc -Uadmin%pass

Guenther
2007-10-10 10:57:07 -05:00
Volker Lendecke
61d40ac60d r6445: Make us survive the PARANOID_MALLOC_CHECKER. Should we enable that for
--enable-developer=yes?

Volker
2007-10-10 10:56:41 -05:00
Volker Lendecke
3493d9f383 r6263: Get rid of generate_wellknown_sids, they are const static and initializable
statically.

Volker
2007-10-10 10:56:33 -05:00
Gerald Carter
28d433351c r6232: more cleanups; remove BUFFER3; rename BUFFER4 -> RPC_DATA_BLOB; rename REG_CREATE_VALE -> REG_SET_VALUE 2007-10-10 10:56:30 -05:00
Günther Deschner
f41f1437e7 r6117: Close handles after group-creation as well.
Guenther
2007-10-10 10:56:23 -05:00
Volker Lendecke
1a56a4fd3e r6110: Close handles on user creation. This allows easy mass creation of users with
rpcclient.

Volker
2007-10-10 10:56:22 -05:00
Volker Lendecke
3a67865169 r6080: Port some of the non-critical changes from HEAD to 3_0. The main one is the
change in pdb_enum_alias_memberships to match samr.idl a bit closer.

Volker
2007-10-10 10:56:20 -05:00
Gerald Carter
4e0ac63c36 r6014: rather large change set....
pulling back all recent rpc changes from trunk into
3.0.  I've tested a compile and so don't think I've missed
any files.  But if so, just mail me and I'll clean backup
in a couple of hours.

Changes include \winreg, \eventlog, \svcctl, and
general parse_misc.c updates.

I am planning on bracketing the event code with an
#ifdef ENABLE_EVENTLOG until I finish merging Marcin's
changes (very soon).
2007-10-10 10:56:15 -05:00
Gerald Carter
9e77da9320 r5961: final round of compiler warning fixes based on feedback from Jason Mader 2007-10-10 10:56:13 -05:00
Gerald Carter
8f87d9c5b6 r5944: cleaning up compiler warnings reported by Jason Mader 2007-10-10 10:56:10 -05:00
Günther Deschner
dec1ab3606 r5891: Make enum- and getform use the same form_display-function.
Guenther
2007-10-10 10:56:07 -05:00
Günther Deschner
0f25c35fb9 r5760: Be more verbose on listing forms.
Guenther
2007-10-10 10:56:00 -05:00
Gerald Carter
277203b535 r5726: merge LsaLookupPrivValue() code from trunk 2007-10-10 10:55:57 -05:00
Jim McDonough
ec78c3f2a2 r5593: More reversal of accidental commit. 2007-10-10 10:55:49 -05:00
Jim McDonough
a5fe34ca7d r5592: Oops, accidentally committed test version of rpcclient. Reverting changes. 2007-10-10 10:55:49 -05:00
Jim McDonough
8360695fc0 r5591: Implement "net rpc trustdom del", including client side of
samr_remove_sid_from_foreign_domain.
2007-10-10 10:55:49 -05:00
Volker Lendecke
03ec1bd9e5 r5471: In cli_samr_lookup_rids, flags is not a flags but an array size. W2k3 rejects
everything but 1000 here, so there's no point in exposing that to the caller.

Thanks,

Volker
2007-10-10 10:55:42 -05:00
Volker Lendecke
43dcf0f5cb r5469: Fix error codes of samr_lookup_rids: There's also STATUS_SOME_UNMAPPED.
Thanks,

Volker
2007-10-10 10:55:42 -05:00
Günther Deschner
61ec0b4cf0 r5379: Build-Fix (#2343)
Guenther
2007-10-10 10:55:39 -05:00
Günther Deschner
6cdf3b97de r5262: Fix server_role in the samr_query_dom_info calls. When we are a BDC we
should not say we are a PDC.

Guenther
2007-10-10 10:55:34 -05:00
Gerald Carter
0a1f9703a1 r5162: BUG 2264: remove shutdown and abortshurn commands from rpcclient since they are stable in 'net rpc' (to avoid fixing portability bugs) 2007-10-10 10:55:30 -05:00
Gerald Carter
558525abf1 r5140: (a) fix problem with enumerating domain trusts in security = ads; (b) fix a segfault in rpcclient's dsenumdomtrusts 2007-10-10 10:55:29 -05:00
Gerald Carter
c488ce9934 r4966: don't enumerate the drivers for the same architecture string more than once 2007-10-10 10:55:09 -05:00
Volker Lendecke
9ca6cfcf1e r4933: List not only the first 10 trusts with rpcclient -c enumtrust.
Volker
2007-10-10 10:55:08 -05:00
Günther Deschner
30e808ca07 r4869: Display sam_user_info_7 in rpcclient.
Guenther
2007-10-10 10:55:05 -05:00
Günther Deschner
88572efdea r4866: Add createdomgroup to rpcclient (needed to generate huge amounts of
groups when 'net rpc group add' is just to slow).

Guenther
2007-10-10 10:54:00 -05:00
Günther Deschner
92851def70 r4839: Allow to set acb_mask in rpcclient's enumdomusers (for debugging).
Guenther
2007-10-10 10:53:57 -05:00
Gerald Carter
bf4385c79a r4821: finish off 'net rpc rights [list|grant|revoke]'
one small todo item is to add a 'accounts' sub option
to 'net rpc list' so enumerate all privileged SIDs
and their associated rights.
2007-10-10 10:53:56 -05:00