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

2755 Commits

Author SHA1 Message Date
Günther Deschner
2ac4b43430 s3-net-vampire: add support for partial replication (individual deltas).
Guenther
2008-11-18 15:59:38 +01:00
Kai Blin
5e5ccab372 net: Fix net rap printq info documentation (bug #5892)
Carsten Dumke <carsten@cdumke.de> reported and provided a patch
for v3.0 and v3.2. (See 0a7fb721cd)

This fixes the same issue in v3.3 and also changes the auto-generated usage
information to give better help about net rap printq info.
2008-11-17 08:58:25 +01:00
Michael Adam
39d42378b2 [s3]make keytab filename argument mandatory to "net rpc vampire keytab"
This prevents unintended overwriting of the default path /etc/krb5.keytab (e.g.).

Michael
2008-11-11 00:32:42 +01:00
Kai Blin
7d8787c915 ntlm_auth: Put huge NTLMv2 blobs into extra_data on CRAP auth.
This fixes bug #5865
2008-11-10 12:50:02 +01:00
Jeremy Allison
8962be69c7 Make us clean under valgrind --leak-check=full by using talloc_autofree_context() instead of NULL.
Remove the code in memcache that does a TALLOC_FREE on stored pointers. That's a disaster waiting
to happen. If you're storing talloc'ed pointers, you can't know their lifecycle and they should
be deleted when their parent context is deleted, so freeing them at some arbitrary point later
will be a double-free.
Jeremy.
2008-11-06 20:48:13 -08:00
Joe Smith
d997435f2d Fixed typo in source/utils/net_rap.c 2008-11-04 20:40:23 +01:00
Jelmer Vernooij
ddcab787c4 Rename dos_errstr() to win_errstr() for consistency with Samba 4. 2008-11-01 17:19:26 +01:00
Günther Deschner
bb6681ef9d s3-net: fix build warning.
Jeremy, please check.

Guenther
2008-11-01 01:41:21 +01:00
Günther Deschner
f126371f17 s3-samr: remove duplicate copies of Domain Object specific access rights.
Guenther
2008-10-31 21:14:27 +01:00
Günther Deschner
700cece822 s3-samr: remove duplicate copies of SAM server specific access rights.
Guenther
2008-10-31 21:14:26 +01:00
Jeremy Allison
8344e94574 Unify se_access_check with the S4 code. Will make
calculation of SEC_FLAG_MAXIMUM_ALLOWED much easier
for files.
Jeremy.
2008-10-31 10:51:45 -07:00
Michael Adam
65ca8eb3dd [s3]pdbedit: remove unused variable.
Note: The change of commit r21962 (or fe962d2e48, aka f540c18b2)
that was partly lost in the SVN->git glue commit e5a951325a
(aka 5c6c8e1fe9) is not needed any more since the handler
for option "-s" calls set_dyn_CONFIGFILE().

Michael
2008-10-27 13:02:36 +01:00
Jelmer Vernooij
fe36fe8c3e Use common net utility code (address and sockaddr manipulation). 2008-10-23 20:41:15 +02:00
Jelmer Vernooij
d6a5476ee7 Use sockaddr_storage only where we rely on the size, use sockaddr
otherwise (to clarify we can also pass in structs smaller than
sockaddr_storage, such as sockaddr_in).
2008-10-23 19:53:15 +02:00
Jelmer Vernooij
f9fb9436ae Use WERR_FILE_EXISTS which is the equivalent of WERR_ALREADY_EXISTS
previously present in Samba 3.
2008-10-23 15:37:39 +02:00
Jelmer Vernooij
44b728958a Use common error definitions. 2008-10-23 15:35:21 +02:00
Jeremy Allison
4e9db0b100 Cope with MAXIMUM_ALLOWED_ACCESS requests when opening handles.
Jeremy.
2008-10-21 18:05:48 -07:00
Günther Deschner
4b59ecb903 s3-build: no need to duplicate generated ndr_ prototypes.
Guenther
2008-10-20 19:47:00 +02:00
Jelmer Vernooij
a8707a43d0 Regenerate pidl output. 2008-10-20 12:19:01 +02:00
Jelmer Vernooij
f0c4829e82 Remove silly safe_free() function which is a wrapper around SAFE_FREE().
Since it's a function it just sets the local pointer to NULL and basically
is an equivalent to free().

It also claims it's being used for callbacks but isn't used that way
anywhere.
2008-10-19 13:06:14 +02:00
Jelmer Vernooij
7275952568 Add TALLOC_CTX pointer to generate_random_str(), for consistency with
Samba 4.
2008-10-19 10:05:48 +02:00
Jelmer Vernooij
f3f9446ec1 Rename hex_encode to hex_encode_talloc,for consistency with samba 4 and heimdal. 2008-10-18 16:16:57 +02:00
Michael Adam
15f0a4eadb [s3]testparm: prevent "no stackframe around" warning.
gfree_loadparm and TALLOC_FREE(frame) were in the wrong order.

Michael
2008-10-18 15:36:16 +02:00
Jelmer Vernooij
2d89b52be8 Use separate make variables for libutil and libcrypto. 2008-10-18 14:28:40 +02:00
Günther Deschner
d2b836e19a s3: remove rpccli_svcctl_query_config.
Guenther
2008-10-16 09:54:49 +02:00
Günther Deschner
65dc1eeceb s3: fix various samr callers.
Guenther
2008-10-15 17:11:27 +02:00
Jelmer Vernooij
881b36f4cf Share initshutdown.idl. 2008-10-15 16:13:02 +02:00
Jeremy Allison
aed571d168 Attempt to fix bug #5818 - "smbcacls: sorts ACEs improperly and loses inheritance", based on
a patch from Paul Fertser <fercerpav@gmail.com>. I also added the ability to get/set hex
and symbolic inheritance flag names on ACE flags. I'm still investigating the effects
of setting the "SEC_DESC_DACL_AUTO_INHERIT_REQ" flag as I don't yet see what effects
this is having on the ACE sent.
Jeremy.
2008-10-14 16:09:17 -07:00
Jelmer Vernooij
1f3e4f39c5 Use GUID_string rather than smb_uuid_string(). 2008-10-14 02:26:18 +02:00
Jelmer Vernooij
4746f79d50 Use {u,}int64_t instead of SMB_BIG_{U,}INT. 2008-10-14 01:59:36 +02:00
Jelmer Vernooij
1b99d8fbb5 Use common util_file code. 2008-10-12 17:34:43 +02:00
Jelmer Vernooij
cb78d4593b Cope with changed signature of http_timestring(). 2008-10-11 23:57:44 +02:00
Jeremy Allison
e5692d4cbe Remove SEC_ACCESS. It's a uint32_t.
Jeremy.
2008-10-09 09:49:03 -07:00
Volker Lendecke
9bb6bae4ef Remove an unused variable 2008-10-05 15:49:32 +02:00
Gerald (Jerry) Carter
c7625979ce net_dns: Make "lwinet ads dns register" honor the "interfaces" parameter.
This is helpful on multihomed hosts that only require a subset
of IP addresses be registered with DNS.
2008-10-03 10:51:54 -05:00
Michael Adam
39f7ec3f74 [s3]testparm: give testparm one common exit point and call gfree_loadparm().
Michael
2008-09-27 22:28:25 +02:00
Michael Adam
628ee436a1 [s3]testparm: free the popt context when it is no longer used.
Michael
2008-09-27 22:28:25 +02:00
Kai Blin
694786b23c net: Make share type lookup a function. 2008-09-26 20:52:13 +02:00
Günther Deschner
81fde58551 s3-nbt: remove double nbt netlogon opcodes.
Guenther
2008-09-25 20:11:55 +02:00
Günther Deschner
f07431f5ba s3-nbt: use the new generated nbt.
Guenther
2008-09-24 03:34:23 +02:00
Günther Deschner
fd3ba988dc s3-nbt: fix remaining callers of ndr_push/pull_struct_blob.
Guenther
2008-09-23 09:49:56 +02:00
Steven Danneman
61cb830f66 Fixed "uninitilized variable" build warning
Simple fix for warning:

Compiling utils/sharesec.c
utils/sharesec.c: In function `change_share_sec':
utils/sharesec.c:404: warning: 'sd' might be used uninitialized in this function
2008-09-15 17:53:37 -07:00
Günther Deschner
cf1e3e5579 net: use netapi for NetFileEnum.
Guenther
(This used to be commit f85dcf8112)
2008-09-11 14:38:22 +02:00
Günther Deschner
e10a7af3c6 net: use netapi for NetFileClose.
Guenther
(This used to be commit fd3d130d25)
2008-09-11 14:38:12 +02:00
Günther Deschner
a780ed8970 net: use netapi for NetShareEnum.
Guenther
(This used to be commit f4cb75b1e2)
2008-09-11 14:21:48 +02:00
Kai Blin
5b54781e1c net: share_type is defined in net_rap.c, net_rpc.c needs to use that.
This fixes a crash in net rpc share that Günther Deschner found.
(This used to be commit 50af6d609d)
2008-09-10 12:05:18 +02:00
Günther Deschner
c464969b64 net: use NETSETUP flags consistently.
Guenther
(This used to be commit f48e0cacdf)
2008-09-08 10:17:21 +02:00
Günther Deschner
cb2d7aa827 net: use netapi for rpc_sh_share_delete as well.
Guenther
(This used to be commit b56ec0b995)
2008-09-05 12:35:11 +02:00
Günther Deschner
f9294970b4 net: use netapi for deleting shares.
Guenther
(This used to be commit d7b07b6369)
2008-09-05 12:34:58 +02:00
Günther Deschner
d07f0e345e net: use netapi for rpc_sh_share_add as well.
Guenther
(This used to be commit 0c23274256)
2008-09-05 12:32:56 +02:00
Günther Deschner
04e363c961 net: use netapi to add shares.
Guenther
(This used to be commit 95ac480e20)
2008-09-05 12:32:56 +02:00
Volker Lendecke
767130ebec Fix some nonempty blank lines
(This used to be commit 9336cd1c5e)
2008-09-01 23:32:42 +02:00
Günther Deschner
e710a87177 netapi: use NETSETUP join flags in examples.
Guenther
(This used to be commit 2f6f888d9c)
2008-08-29 13:58:06 +02:00
Günther Deschner
7eb0b5e037 net: now that "net rpc user" uses netapi calls exclusivly, net rpc shell needs
to use netapi as well.

Guenther
(This used to be commit 2f730649b7)
2008-08-29 13:57:59 +02:00
Günther Deschner
a9a9772b5d net: use netapi for "net rpc user info" to enumerate user group membership.
Guenther
(This used to be commit 77ecfff216)
2008-08-29 13:57:59 +02:00
Günther Deschner
e2945c38f1 net: use netapi function to set user password.
Guenther
(This used to be commit f31fd1e112)
2008-08-29 13:57:58 +02:00
Günther Deschner
badc46d16e net: use netapi function to list users.
Guenther
(This used to be commit 6bc8e22919)
2008-08-29 13:57:58 +02:00
Günther Deschner
eefd04212c net: use netapi for rpc_user_rename.
Guenther
(This used to be commit fe28ea1afd)
2008-08-29 13:57:53 +02:00
Karolin Seeger
2d2646e13d net: Add missing colon to unify usage messages.
Karolin
(This used to be commit c7aef4b38b)
2008-08-22 16:47:19 +02:00
Jeremy Allison
129e71a97a Fix broken net rpc join message when DC can't be found. Ensure we pass in a domain name.
Jeremy.
(This used to be commit 33019fe2b5)
2008-08-21 15:27:22 -07:00
Jeremy Allison
39480f6298 Make the change to smbcontrol for "all" to mean broadcast,
and "smbd" to mean the main smb daemon. Update docs to match.
Jeremy.
(This used to be commit e415420b08)
2008-08-18 16:18:34 -07:00
Andrew Tridgell
0f41961e4f first cut at adding full transactions for ctdb to samba3
(This used to be commit f91a3e0f7b)
2008-08-13 11:54:08 +02:00
Volker Lendecke
f72e28e24c Exit smbstatus cleanly if messaging_init fails
(This used to be commit 5fd51833a3)
2008-08-13 11:54:04 +02:00
Günther Deschner
5bea31aa3c libnetjoin: support kerberized joining/unjoing (fix #5416).
Guenther
(This used to be commit da6e0f4f37)
2008-08-11 19:52:23 +02:00
Volker Lendecke
00dd853a6f Fix a build failure on host sunX
(This used to be commit 30b5be8725)
2008-08-07 18:18:10 +02:00
Michael Adam
7f3495726f vampire keytab: add command line switch --clean-old-entries .
This allows to control cleaning the keytab.
It will only clean old occurences of keys that are replicated in
this run. So if you want to ensure things are cleaned up, combine
this switch with --force-full-repl or --single-obj-repl (+dn list).

Michael
(This used to be commit 21385e1c63)
2008-08-01 16:08:00 +02:00
Michael Adam
03b6502dc6 vampire keytab: introduce switch --single-obj-repl.
This controls whether single object replication is to be used.
This only has an effect when at least one object dn is given
on the commandline.

NOTE: Now the default is to use normal replication with uptodateness
vectors and use object dns given on the command line as a positive
write filter. Single object replication is only performed when this
new switch is specified.

Michael
(This used to be commit 0f81111ea8)
2008-08-01 16:07:59 +02:00
Michael Adam
9d12511e45 libnet dssync: rename flag single to single_object_replication
So that it is more obvious what this controls.

Michael
(This used to be commit 2360f0a19f)
2008-08-01 16:07:58 +02:00
Michael Adam
5330164ec4 net rpc vampire: rename --repl-nodiff to --force-full-repl.
This more clear.

Michael
(This used to be commit 0ddde9aae8)
2008-08-01 16:07:58 +02:00
Michael Adam
072bd87194 libnet dssync: rename repl_nodiff flag to force_full_replication.
Michael
(This used to be commit ec959b4609)
2008-08-01 16:07:05 +02:00
Michael Adam
f060b744ef libnet dssync: support lists of dns (instead of one dn) for single object replication.
Just specify several DNs separated by spaces on the command line of
"net rpc vampire keytab" to get the passwords for each of these
accouns via single object replication.

Michael
(This used to be commit 6e53dc2db8)
2008-08-01 16:07:04 +02:00
Michael Adam
c655e295ef vampire keytab: add switch --repl-nodiff to trigger full replication.
I.e. replication without keeping track of the up to date vector.

Michael
(This used to be commit d4b36e447b)
2008-08-01 16:07:04 +02:00
Michael Adam
d42160f9de dssync: allow replications of a single obj with net rpc vampire keytab.
This is triggered by setting the new "single" flag in the dssync_context
and filling the "object_dn" member with the dn of the object to be
fetched.

This call is accomplished by specifying the DRSUAPI_EXOP_REPL_OBJ
extended operation in the DsGetNCCHanges request. This variant does
honor an up-to-date-ness vectore passed in, but the answer does not
return a new up-to-dateness vector.

Call this operation as "net rpc vampire keytab /path/keytab object_dn" .

Michael
(This used to be commit f4a01178a3)
2008-08-01 16:04:41 +02:00
Michael Adam
16c2190b14 dssync: replace the processing_fn by startup/process/finish ops.
This remove static a variable for the keytab context in the keytab
processing function and simplifies the signature. The keytab context
is instead in the new private data member of the dssync_context struct.

This is in preparation of adding support for keeping track of the
up-to-date-ness vector, in order to be able to sync diffs instead
of the whole database.

Michael
(This used to be commit c51c3339f3)
2008-08-01 16:04:39 +02:00
Günther Deschner
52a8501515 netapi: when using NetApi functions forward net's kerberos setting.
Guenther
(This used to be commit d46f648d2e)
2008-07-31 15:26:15 +02:00
Günther Deschner
23e9ebb0d4 net: Use NetLocalGroupAdd() for adding aliases.
Guenther
(This used to be commit 2ed4ce0bf1)
2008-07-31 15:15:55 +02:00
Günther Deschner
6913f986f4 net: add "-k" switch for kerberos authentication (in preparation for #5416).
Guenther
(This used to be commit 4cce94d464)
2008-07-31 13:53:53 +02:00
Günther Deschner
9294303943 rpc_client: use init_samr_CryptPassword(Ex) in client tools.
Guenther
(This used to be commit 97f7f9f21f)
2008-07-31 13:52:33 +02:00
Zach Loafman
863a6aa07e Fix warnings on FreeBSD-based platforms
Fix two shadowed declaration warnings on FreeBSD-based platform:
'reboot' is a 4.0BSD syscall in unistd.h and 'tcp_seq' is a typedef in
netinet/tcp.h.
(This used to be commit 14d2a4da1d)
2008-07-22 15:00:48 +02:00
Volker Lendecke
05cc3fda05 Refactoring: connect_dst_pipe uses ndr_syntax_id instead of pipe_idx
(This used to be commit 0f77746f36)
2008-07-21 14:36:28 +02:00
Volker Lendecke
d86ff59989 Refactoring: net_sh_run uses ndr_syntax_id instead of pipe_idx
(This used to be commit 85c8363d51)
2008-07-21 14:36:28 +02:00
Volker Lendecke
f23567fcb9 Refactoring: run_rpc_command uses ndr_syntax_id instead of pipe_idx
(This used to be commit 850166ec0d)
2008-07-21 14:36:28 +02:00
Volker Lendecke
99526d391d Refactoring: Change calling conventions for cli_rpc_pipe_open_schannel
Pass in ndr_syntax_id instead of pipe_idx, return NTSTATUS
(This used to be commit 1fcfca007f)
2008-07-20 17:37:14 +02:00
Volker Lendecke
ba2cb35ca5 Refactoring: Change calling conventions for cli_rpc_pipe_open_schannel_with_key
Pass in ndr_syntax_id instead of pipe_idx, return NTSTATUS
(This used to be commit 78e9c937ff)
2008-07-20 17:37:13 +02:00
Volker Lendecke
b8fc15be95 Refactoring: Make get_schannel_session_key return NTSTATUS
(This used to be commit a0793cc853)
2008-07-20 17:37:12 +02:00
Volker Lendecke
e0be03d8d5 Refactoring: Change calling conventions for cli_rpc_pipe_open_ntlmssp
Pass in ndr_syntax_id instead of pipe_idx, return NTSTATUS
(This used to be commit a13f059955)
2008-07-20 17:37:11 +02:00
Volker Lendecke
1335da2a7c Refactoring: Change calling conventions for cli_rpc_pipe_open_noauth
Pass in ndr_syntax_id instead of pipe_idx, return NTSTATUS
(This used to be commit 9abc9dc4dc)
2008-07-20 17:37:11 +02:00
Michael Adam
82a5c62e64 net rpc vampire: eliminate missing proto warning by making rpc_vampire_keytab_ds_internals static.
Michael
(This used to be commit 772a76ceb3)
2008-07-18 12:20:11 +02:00
Michael Adam
a3356d6f32 testparm: allow the default debug level of 2 to be changed from the command line.
Michael
(This used to be commit 5a0883a7f2)
2008-07-15 13:03:24 +02:00
Michael Adam
4ce6f3e7dd testparm: refactor the per-share logic checks out into do_per_share_checks().
Just to enhance clearness of the code.

Michael
(This used to be commit cd5d13dec0)
2008-07-15 13:03:23 +02:00
Michael Adam
0f040b58a2 testparm: skip the per-share logic checks when --skip-logic-checks is specified.
Michael
(This used to be commit 6cafee7e6a)
2008-07-15 12:56:35 +02:00
Michael Adam
7cc155bdc1 testparm: rename -g|--skip-global-ckecks to -l|--skip-logic-checks
as suggested by Karolin.

That is what it really means. And per-share logic tests will be
disabled by the same switch, too...

Michael
(This used to be commit 5b8a4c3348)
2008-07-15 12:54:04 +02:00
Michael Adam
52bcb6d70f testparm: add a switch --skip-global-checks.
This allows for successfully calling testparm without the need
to "make install" before. Without this, testparm fails with
the message that the lock directory does not exist...

Michael
(This used to be commit eeb018fad6)
2008-07-15 00:31:10 +02:00
Volker Lendecke
cc78ea5d09 Revert "Return timed out entries from gencache_get if timeout param != NULL"
This reverts commit 2954b2be56.
(This used to be commit 77ab2fb306)
2008-07-11 17:53:25 +02:00
Jeremy Allison
973abc0dd6 Fix option processing in smbcacls - add POPT_COMMON_CONNECTION.
Jeremy.
(This used to be commit 599d5f75c7)
2008-07-07 15:51:08 -07:00
Volker Lendecke
c4503f5658 Return timed out entries from gencache_get if timeout param != NULL
net cache get was the only one interested in the timeout. That single caller
can take care of the timeout itself then.

With this API change idmap_cache.c can be converted to gencache.
(This used to be commit 2954b2be56)
2008-07-03 15:59:19 +02:00
Günther Deschner
9b0e3bb0c3 net_vampire: add code to vampire to a Kerberos keytab file using DRSUAPI.
Guenther
(This used to be commit 0ef420c3a4)
2008-07-01 10:02:01 +02:00
Volker Lendecke
3353565faf Fix the build
(This used to be commit 242077f714)
2008-06-28 10:38:51 +02:00
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 e072b3667e)
2008-06-27 17:26:41 -07:00
Jeremy Allison
23e4a41362 Fix usage message for net rpc trustdom add.
Jeremy.
(This used to be commit 20e59faf6e)
2008-06-27 15:28:45 -07:00
Günther Deschner
a8332b91ef net: add basic support for sealed RPC connections (using NET_FLAGS_SEAL).
Guenther
(This used to be commit 7541a0103a)
2008-06-24 23:45:09 +02:00
Günther Deschner
adef1b004b net_vampire: add code to vampire a SAM database to a keytab file.
Guenther
(This used to be commit ee6e422c0e)
2008-06-24 23:40:14 +02:00
Karolin Seeger
7c451b9b89 net ads: Fix typos.
Karolin
(This used to be commit 63c1a5146e)
2008-06-24 16:30:33 +02:00
Günther Deschner
48a680ecf2 net_vampire: more libnet_samsync restructuring.
Guenther
(This used to be commit 3bcda522f0)
2008-06-23 23:38:53 +02:00
Günther Deschner
8725626ec8 net_vampire: prepend libnet_ to the public samsync functions.
Guenther
(This used to be commit f020c947cf)
2008-06-23 23:38:52 +02:00
Günther Deschner
bd6fece98a net_vampire: move out display routines to one file.
Guenther
(This used to be commit 64b48a07e7)
2008-06-23 23:38:52 +02:00
Günther Deschner
de33b264d1 net_vampire: move out passdb routines to one file.
Guenther
(This used to be commit 74d431270d)
2008-06-23 23:38:52 +02:00
Günther Deschner
a6e887fbc6 net_vampire: display more deltas while doing samdump.
Guenther
(This used to be commit 43579907c3)
2008-06-23 23:38:52 +02:00
Günther Deschner
ddf6e73b1f net_vampire: move pull_netr_AcctLockStr() to libnet.
Guenther
(This used to be commit 8ec64a96e4)
2008-06-23 23:38:52 +02:00
Günther Deschner
33000d77e4 time: move uint64s_nt_time_to_unix_abs() to lib/time.c
Guenther
(This used to be commit 58f54f180f)
2008-06-23 23:38:52 +02:00
Kai Blin
accc68f63e net: Don't crash on invalid command line options.
This backs out the workaround Jerry added in
4c3bfea9f8.
Thanks for the catch.
(This used to be commit 20e0bb4800)
2008-06-21 00:07:21 +02:00
root
37ae3f9c20 net: Fix crash when specifying invalid options on the command line
(This used to be commit 4c3bfea9f8)
2008-06-19 13:41:47 -05:00
Michael Adam
92c983292e net sam: fix typo in comment
Michael
(This used to be commit b9f6904044)
2008-06-17 23:57:26 +02:00
Michael Adam
00168e4d5a net sam: fix typo in debug message.
Michael
(This used to be commit 6d7f64c348)
2008-06-17 23:56:42 +02:00
Günther Deschner
fefcb70f87 net_vampire: add error and result_message to samsync_context.
Guenther
(This used to be commit e0b1172004)
2008-06-17 19:55:16 +02:00
Günther Deschner
49b269f50f net_vampire: add domain_name to samsync_context.
Guenther
(This used to be commit 7e7f07ec59)
2008-06-17 19:55:10 +02:00
Günther Deschner
16eb846fa5 net_vampire: use generic output filename and use correct argv element.
Guenther
(This used to be commit e0843e631e)
2008-06-17 10:49:13 +02:00
Günther Deschner
51fec7863b net_vampire: move ldif code out of net_rpc_samsync.c
Guenther
(This used to be commit 1d5758ec3a)
2008-06-17 10:49:13 +02:00
Günther Deschner
ccdcbc2efe net_vampire: move some samsync functions to libnet.
Guenther
(This used to be commit b3b6af0a3e)
2008-06-17 10:49:13 +02:00
Günther Deschner
2d23da2cff net_vampire: rename process_database to samsync_process_database.
Guenther
(This used to be commit cf382a8760)
2008-06-13 23:39:09 +02:00
Günther Deschner
fb0a11d1ec net_vampire: fix ldif_init_context().
Guenther
(This used to be commit 94d45b1bb9)
2008-06-13 23:39:09 +02:00
Günther Deschner
8049d3aa8e net_vampire: split out rpc_vampire_ldif().
Guenther
(This used to be commit bcc6d3a0eb)
2008-06-13 23:39:09 +02:00
Günther Deschner
fe43a56788 net_vampire: add samsync_init_context().
Guenther
(This used to be commit 63ca4414b6)
2008-06-13 23:39:09 +02:00
Günther Deschner
cb293f50fc net_vampire: add samsync_debug_str().
Guenther
(This used to be commit bbfe5bcaf5)
2008-06-13 23:39:08 +02:00
Günther Deschner
7a1fa41dca net_vampire: restructure internal code more.
Guenther
(This used to be commit 9557504d70)
2008-06-13 23:39:08 +02:00
Günther Deschner
339d868b17 net_vampire: start using talloc for the ldif vampire code.
Guenther
(This used to be commit ae179e4f3f)
2008-06-13 23:39:08 +02:00
Günther Deschner
4cae70e548 net_vampire: join dump and process function into one callback.
Guenther
(This used to be commit e9b79f34d5)
2008-06-13 23:39:08 +02:00
Günther Deschner
93880610b4 net_vampire: let fetch_database and fetch_database_to_ldif use sid pointers.
Guenther
(This used to be commit 0707d32042)
2008-06-13 23:39:08 +02:00
Günther Deschner
26694e6fa0 net_vampire: let dump_database() return NTSTATUS.
Guenther
(This used to be commit b5a0e2d18f)
2008-06-13 23:39:08 +02:00
Günther Deschner
6ce0c85172 net: Fix bug #5542 (samsync contains empty passwords).
Guenther
(cherry picked from commit 1a22e975dd)
(This used to be commit ad8392cf7c)
2008-06-13 12:23:57 +02:00
Kai Blin
8f1f62af28 net: Fix net_ads.c build for the HAVE_ADS == 0 case.
Thanks to Karolin for catching this one.
(This used to be commit 7f52998f54)
2008-06-12 15:46:12 +02:00
Karolin Seeger
49a81672d2 net: Fix several typos in comments.
-argc -> argv (where argv is meant)
-destoyed -> destroyed
-compleation -> completion
-aquired -> acquired
-Unify spelling of some words like rpc-server -> RPC server.
-Add missing punctuation marks.

Karolin
(This used to be commit f4850c37df)
2008-06-12 10:59:02 +02:00
Günther Deschner
2816e86b06 net: remove some dead code.
Guenther
(This used to be commit cdd1ce797a)
2008-06-11 10:46:26 +02:00
Kai Blin
255bdb2602 net: Rename functable3 to functable, get rid of old functables
(This used to be commit bb7c5fc4ec)
2008-06-10 09:48:21 +02:00
Kai Blin
cd06703a3f net: Make "net sam" use functable3
(This used to be commit b161fb7cfe)
2008-06-10 09:48:14 +02:00
Kai Blin
3d7a927ece net: Make "net rpc registry" use functable3
(This used to be commit 08dd5f5311)
2008-06-10 09:48:10 +02:00
Kai Blin
22b1926f24 net: Make "net registry" use functable3
(This used to be commit 47f7308e4e)
2008-06-10 09:48:07 +02:00
Kai Blin
1be1be3334 net: Make "net conf" use a functable similar to functable3
(This used to be commit b8382bc3af)
2008-06-10 09:48:03 +02:00
Kai Blin
66432dd06c net: Use d_printf() instead of printf() in net_ads_gpo.c
(This used to be commit d0d1346f20)
2008-06-10 09:47:59 +02:00
Kai Blin
e0f2f8d57e net: Make "net rpc service" use functable3
(This used to be commit aa06cd5cb2)
2008-06-10 09:47:55 +02:00
Kai Blin
edf23f17fd net: Make "net rpc rights" use functable3
(This used to be commit b0e373e595)
2008-06-10 09:47:48 +02:00
Kai Blin
238c7d0be3 net: Make "net rpc audit" use functable3
(This used to be commit c47ff2bff6)
2008-06-10 09:47:34 +02:00
Kai Blin
c51ca559c1 net: Make "net rpc" use functable3
(This used to be commit 428b56863c)
2008-06-10 09:47:28 +02:00
Kai Blin
98b9b5b7f3 net: Make "net rap" use functable3
(This used to be commit 7a2364518c)
2008-06-10 09:47:25 +02:00
Kai Blin
c19700fc07 net: Make "net ads gpo" use functable3
(This used to be commit 4418b4da61)
2008-06-10 09:47:21 +02:00
Kai Blin
54bc155736 net: Make "net ads" use functable3
(This used to be commit 64e3dc6396)
2008-06-10 09:47:15 +02:00
Kai Blin
67fee7a79a net: Make "net usershare" use functable3
(This used to be commit b45ada159e)
2008-06-10 09:47:03 +02:00
Kai Blin
7870908a0d net: Fix comment for net_time_zone()
(This used to be commit aea3466d12)
2008-06-10 09:46:57 +02:00
Kai Blin
b1ef38de9f net: Make "net time" use functable3
(This used to be commit 28991ad74a)
2008-06-10 09:46:53 +02:00
Kai Blin
6468d36716 net: Make "net idmap" use functable3
(This used to be commit 9c88b16beb)
2008-06-10 09:46:46 +02:00
Kai Blin
f3d86100b8 net: Make "net groupmap" use functable3
(This used to be commit c328b3e30b)
2008-06-10 09:46:42 +02:00
Kai Blin
7ba0724f80 net: Make "net dom" use functable3
(This used to be commit 11d692de73)
2008-06-10 09:46:37 +02:00
Kai Blin
6b9c815bcc net: Make "net cache" use functable3
(This used to be commit 60ac59fb8a)
2008-06-10 09:46:26 +02:00
Kai Blin
2eaef96387 net: Make "net afs" use functable3
(This used to be commit aa60f3c0d5)
2008-06-10 09:46:24 +02:00
Kai Blin
b0d8162525 net: Make "net status" use functable3
(This used to be commit e4b4fb4c39)
2008-06-10 09:46:12 +02:00
Kai Blin
6e8d46d40d net: Don't try to look up a server if net time is called with a command.
(This used to be commit 37ef7c2816)
2008-06-10 09:46:03 +02:00
Kai Blin
8efc535a4a net: Add net_display_usage_from_functable()
(This used to be commit de0e15b35e)
2008-06-10 09:45:55 +02:00
Kai Blin
0f1b3ed5c0 net: Autogenerate "net help" output from net's functable.
(This used to be commit 0feb40bc84)
2008-06-10 09:45:36 +02:00
Kai Blin
2ca10c462d net: Use functable3
(This used to be commit 122dfe876d)
2008-06-10 09:45:34 +02:00
Kai Blin
223d1bce77 net: Use functable2 to give a short help text for top-level functions.
(This used to be commit e9be24a2cb)
2008-06-10 09:45:28 +02:00
Kai Blin
44c260743c net: Add net_run_function3
(This used to be commit ba1108f06a)
2008-06-10 09:45:19 +02:00
Kai Blin
6fd35d25bf net: Move net_run_function/net_run_function2 to net_util.c
(This used to be commit 73fb5f392d)
2008-06-10 09:45:14 +02:00
Kai Blin
4d9748e44d net: Move includes to net.h
(This used to be commit 1943e2752d)
2008-06-10 09:45:09 +02:00
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
20ec11ac28 net: fix debuglevel handling.
Kai, that one actually needs to stay a global external variable in order to
support debuglevel definition only on the commandline for net.

Guenther
(This used to be commit f6ba7333ab)
2008-06-05 18:49:21 +02:00
Günther Deschner
913a323623 net: fix popt context memleak.
Guenther
(This used to be commit 60bce92574)
2008-06-04 02:44:24 +02:00
Günther Deschner
d7772433bf net: print NBT_SERVER_X_SECRET_DOMAIN_6 flags in "net ads lookup".
Guenther
(This used to be commit 420390ba0e)
2008-06-04 01:35:43 +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
d36434f312 Security fix for CVE-2008-1105: Boundary failure when parsing SMB responses
can result in a buffer overrun.
Jeremy.
(This used to be commit 23b825e9d2)
2008-05-28 09:31:42 -07: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
Tim Prouty
fb37f15600 Cleanup size_t return values in callers of convert_string_allocate
This patch is the second iteration of an inside-out conversion to cleanup
functions in charcnv.c returning size_t == -1 to indicate failure.
(This used to be commit 6b189dabc5)
2008-05-20 22:40:13 +02: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
89cd35d054 net: Move help for "net status" to net_status.c
(This used to be commit d26681b169)
2008-05-20 14:28:07 +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
00f6ad7b5a net: Split out "net afs"
(This used to be commit 3f10527f79)
2008-05-20 14:27:56 +02:00
Kai Blin
b596529041 net: Move more utility functions into net_util.c
(This used to be commit 0f5ebdf0bc)
2008-05-20 14:27:53 +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
666292129b net: Move "net join" handling into a separate file.
(This used to be commit d0237a7368)
2008-05-20 14:27:24 +02:00
Kai Blin
45653bd1b1 net: Split out common help functions.
(This used to be commit efc863e375)
2008-05-20 14:27:21 +02:00
Kai Blin
cd4f941e84 net: more whitespace cleanup
(This used to be commit 1813e545a9)
2008-05-20 14:27:12 +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
Volker Lendecke
266cdce580 Don't block smbcontrol online/offline if !"winbind offline logons"
There's no point to block these, winbind will ignore them anyway.

Jerry, Jeremy, we definitely need a chance to trigger a reconnection attempt
after a DC has been rebooted. Right now winbind's reaction to a single rebooted
DC is to declare it offline. It will not try before a "winbind cache timeout"
timeout. If the admin sets this to an hour or longer for performance reasons,
we're screwed. Reboot your DC, no logon for an hour.

Volker
(This used to be commit cb065a8995)
2008-05-19 14:56:15 +02:00
Michael Adam
20e9c5bea1 build: freeze passwd_proto.h from "make proto"
Michael
(This used to be commit 00cff30107)
2008-05-18 23:33:20 +02:00
Michael Adam
b189fe9154 net: freeze net_proto.h from "make proto"
Michael
(This used to be commit 673b24052a)
2008-05-18 23:31:42 +02:00
Michael Adam
beca01f402 ntlm_auth: freeze ntlm_auth_proto.h from "make proto"
Michael
(This used to be commit 35a517315b)
2008-05-18 23:29:01 +02:00
Günther Deschner
9530c26c4c net: use the netapi_ctx from the net_context struct.
Guenther
(This used to be commit ff8a9655cc)
2008-05-16 11:58:24 +02:00
Michael Adam
b1d6e885b1 net rpc registry: fix getvalueraw to really print raw...
Michael
(This used to be commit db933ae1a9)
2008-05-15 18:06:23 +02:00
Michael Adam
abafce6ba7 net rpc registry: add a getvalueraw subcommand.
Michael
(This used to be commit 5b5b29302b)
2008-05-15 17:17:56 +02:00
Michael Adam
301196f847 net rpc registry: abstract add boolean "raw" to rpc_registry_getvalue_internal()
and wrap it into new rpc_registry_getvalue_full() for the getvalue subcommand.

Michael
(This used to be commit 9ee5ddb963)
2008-05-15 17:17:55 +02:00
Michael Adam
9b920fa1f7 net rpc registry: fix usage message of getvalue.
Michael
(This used to be commit 5dedde7a5b)
2008-05-15 17:17:55 +02:00
Michael Adam
e1bd2dfe8f net registry: add a getvalueraw command to print the value in raw format.
Michael
(This used to be commit b7e8a3f1ca)
2008-05-15 17:17:55 +02:00
Michael Adam
227130ee0c net registry: refactor core of net_registry_getvalue() out
into net_registry_getvalue_internal(), which takes a bool parameter "raw"
controlling the output format.

Michael
(This used to be commit 889e19303e)
2008-05-15 17:17:55 +02:00
Michael Adam
49835c6d9e net_registry: add raw output of value to print_registry_value().
Michael
(This used to be commit 340a706422)
2008-05-15 17:17:55 +02:00
Günther Deschner
f255ac9775 net: Fix net lookup dsgetdcname, no need to pull site ourselves.
Guenther
(This used to be commit 954d0998c2)
2008-05-15 17:00:31 +02:00
Michael Adam
44733dcf1a testparm: list registry shares with testparm.
I.e., use lp_load_with_registry_shares() instead of lp_load().

Michael
(This used to be commit 95339c0c1e)
2008-05-15 02:42:41 +02:00
coffeedude
ed08bd3e83 net ads: Upper case he realm name when calling kinit() using machine creds.
Needed fix for the DNS Update option as part of "net ads join"
(This used to be commit aebae0b71b)
2008-05-12 17:35:55 -05:00
Volker Lendecke
232853d700 Fix the build with DNS_UPDATES
(This used to be commit 6c9500c290)
2008-05-10 10:58:56 +02:00