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
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
Kai Blin
378527215e
net: Some whitespace clean-up.
...
(This used to be commit 4dcce8b653
)
2008-05-10 09:22:19 +02:00
Kai Blin
44c689289c
net: Fix usage string.
...
(This used to be commit e3470e9a1b
)
2008-05-10 09:22:16 +02:00
Günther Deschner
67c644aa59
dsgetdcname: use existing messaging_context if possible.
...
Guenther
(This used to be commit 7889516a38
)
2008-05-09 14:59:20 +02:00
Günther Deschner
cdd9913c4a
cldap: let ads_cldap_netlogon() return all possible cldap replies.
...
Guenther
(This used to be commit 6f9d5e1cc9
)
2008-05-09 14:59:18 +02:00
Jeremy Allison
00b2cdf75e
Yay ! Remove a VFS entry. Removed the set_nt_acl() call,
...
this can only be done via fset_nt_acl() using an open
file/directory handle. I'd like to do the same with
get_nt_acl() but am concerned about efficiency
problems with "hide unreadable/hide unwritable" when
doing a directory listing (this would mean opening
every file in the dir on list).
Moving closer to rationalizing the ACL model and
maybe moving the POSIX calls into a posix_acl VFS
module rather than having them as first class citizens
of the VFS.
Jeremy.
(This used to be commit f487f742cb
)
2008-05-08 18:09:07 -07:00
Günther Deschner
4d8836ab96
Fix client authentication with -P switch in client tools (Bug 5435).
...
Guenther
(This used to be commit d077ef64cd
)
2008-05-05 16:59:53 +02:00
Jeremy Allison
82d7429a27
Fix typo noticed by David Disseldorp <ddiss@sgi.com>. AF_INET should be AF_INET6 in this case.
...
Jeremy.
(This used to be commit 767740a914
)
2008-04-30 09:28:47 -07:00
Volker Lendecke
862d7e32b9
Move user/domain from rpc_pipe_client to cli_pipe_auth_data
...
(This used to be commit 42de50d2cd
)
2008-04-25 11:12:50 +02:00
Volker Lendecke
c02fd606e3
Correctly initialize lp_load in smbstatus in the presence of registry on tdb2
...
(This used to be commit c4f7bee923
)
2008-04-23 11:35:51 +02:00
Michael Adam
fb9232c0a9
libsmbconf: rewrite API to use smbconf_service struct
...
instead of lists of strings and counters directly...
Michael
(This used to be commit 17415e2dc4
)
2008-04-23 01:43:31 +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
Günther Deschner
bcbac69d1a
cldap: avoid duplicate definitions so remove ads_cldap.h.
...
Guenther
(This used to be commit 538eefe22a
)
2008-04-21 20:21:40 +02:00
Günther Deschner
1dd7ab38e7
cldap: add talloc context to ads_cldap_netlogon().
...
Guenther
(This used to be commit 4cee7b1bd5
)
2008-04-21 20:21:40 +02:00
Günther Deschner
ba98dd4989
libads: Use libnbt for CLDAP reply parsing.
...
Guenther
(This used to be commit 751f3064a5
)
2008-04-21 20:21:39 +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
cf2442bdcb
Use rpc_pipe_client->user_name instead of rpc_pipe_client->cli->user_name
...
Also make sure that rpc_pipe_client->user_name is always talloced.
(This used to be commit 3f6c5b9966
)
2008-04-20 00:14:40 +02:00
Volker Lendecke
9048cafbea
Move srv_name_slash from cli_state to rpc_pipe_client
...
(This used to be commit a9061e52e1
)
2008-04-20 00:14:13 +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
Jeremy Allison
1c85537835
Fix gcc uninitialized variable used warning.
...
Jeremy.
(This used to be commit b95f2adeb5
)
2008-04-17 08:02:46 -07:00
Günther Deschner
6f4b7fcf97
net: Be more tolerant while joining.
...
Guenther
(This used to be commit 70b7b331d9
)
2008-04-17 00:08:24 +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
Günther Deschner
0a362a94c8
net/libnetapi: Include netapi headers early and free on exit.
...
Guenther
(This used to be commit 020b1e6431
)
2008-04-16 02:16:08 +02:00
Michael Adam
ed85ea4248
net conf: adapt output of NULL share params in net conf list.
...
don't list NULL share name and don't indent these parameters
Michael
(This used to be commit 0212b38913
)
2008-04-15 17:40:27 +02:00
Michael Adam
770b1923dc
net conf: simplify logic in test output of net conf import.
...
Michael
(This used to be commit 367c8b133b
)
2008-04-15 17:40:27 +02:00
Michael Adam
7624bab963
net conf: fix output of out-of-share parameters in test mode import
...
Michael
(This used to be commit 5424e07e7d
)
2008-04-15 17:40:27 +02:00
Günther Deschner
ae1e1085a1
libnetjoin/net: Fix lp_config_backend_is_registry() handling.
...
Thanks obnox, now we can net ads join and net ads leave with zero
configuration changes if "config backend = registry".
Guenther
(This used to be commit 9003881773
)
2008-04-14 23:07:55 +02:00
Günther Deschner
4122dabbf9
net: abort when lp_realm is not set in net_ads_leave().
...
Guenther
(This used to be commit 53735edcbb
)
2008-04-14 22:58:38 +02:00
Günther Deschner
113b94faf1
net: exit early in net_ads_join() if the domain is not set.
...
Guenther
(This used to be commit 8331fbe735
)
2008-04-14 16:16:25 +02:00
Günther Deschner
bc65d96782
net: use WERROR for check_ads_config().
...
Guenther
(This used to be commit 9176057986
)
2008-04-14 16:13:52 +02:00
Günther Deschner
fffb304fec
net: the success of secrets_init is checked by libnetjoin now.
...
Guenther
(This used to be commit 0a6a5d0824
)
2008-04-14 15:47:30 +02:00
Michael Adam
d2d82394a4
net conf: use the new smbconf_init() dispatcher instead of explicit backend init.
...
Michael
(This used to be commit 281c9287a3
)
2008-04-13 20:04:44 +02:00
Michael Adam
35d6068f25
libsmbconf: remove the bool verbatim parameter from txt backend init function.
...
Always be verbatim for now. Backend config options may be added later
via some private data pointer.
Michael
(This used to be commit e8bafcfbf4
)
2008-04-13 20:04:43 +02:00
Günther Deschner
1c7e4e8a2a
Fix the build of eventlogadm.
...
Guenther
(This used to be commit 57a5628abf
)
2008-04-13 18:28:24 +02:00
Michael Adam
e5d83f07cd
net registry: remove superfluous regdb_close().
...
Michael
(This used to be commit d4e74036d3
)
2008-04-13 15:36:05 +02:00
Michael Adam
3f01e05a77
registry: change registry_init_basic() to return WERROR instead of bool
...
Michael
(This used to be commit 6a31e659cb
)
2008-04-13 15:33:48 +02:00
Stefan Metzmacher
08591d0095
net_idmap: use wbcSet[U|G]idMapping() and wbcSet[U|G]idHwm() functions
...
metze
(This used to be commit dc9a3f8db0
)
2008-04-11 15:59:33 +02:00
Tim Prouty
bb869741dd
Cleanup size_t return values in convert_string_allocate
...
This patch is the first iteration of an inside-out conversion to cleanup
functions in charcnv.c returning size_t == -1 to indicate failure.
(This used to be commit 59124382d2
)
2008-04-11 11:33:33 +02:00
Karolin Seeger
5f68ea53ff
objectclass -> objectClass
...
Karolin
(This used to be commit b865b8a79a
)
2008-04-10 10:45:36 +02:00
Michael Adam
bfc4aba398
net conf: use talloc and talloc_strdup_lower throughout all net conf functions.
...
Michael
(This used to be commit 977cc98989
)
2008-04-10 01:29:03 +02:00
Michael Adam
6f7fcdcda5
net conf: implement "net conf delincludes".
...
usage: "net conf delincludes <servicename>"
This is equivalent to "net conf setincludes <servicename>"
(without further arguments).
Michael
(This used to be commit a1d09f34ec
)
2008-04-10 01:29:03 +02:00
Michael Adam
f3cfc1446e
net conf: implement a "net conf setincludes" command.
...
given zero or more filenames as command line parameters
Michael
(This used to be commit ab51e4d44c
)
2008-04-10 01:29:03 +02:00
Michael Adam
68fb75857b
net conf: implement "net conf getincludes".
...
Michael
(This used to be commit 30bc48623c
)
2008-04-10 01:29:02 +02:00
Michael Adam
9765828d97
net conf: add diagnostic message for failure to load text file.
...
Michael
(This used to be commit 8f2c3efa67
)
2008-04-10 01:29:02 +02:00
Michael Adam
52a16b4945
net conf: reduce indentation by grouping testmode code together.
...
Michael
(This used to be commit 97f9cb8575
)
2008-04-10 01:29:02 +02:00
Michael Adam
2a94369946
net conf: don't drop config in testmode
...
Michael
(This used to be commit 74e87b9775
)
2008-04-10 01:29:02 +02:00
Michael Adam
a98c08c151
net conf: fix import to correctly add includes (at the end)
...
Michael
(This used to be commit 3e81db8370
)
2008-04-10 01:29:02 +02:00