Volker Lendecke
d60fac2a5a
Tiny simplifications
...
locking.c:open_read_only was unused
don't export the silly boolean flag locking_init(bool read_only)
(This used to be commit 2f3c865707
)
2007-12-10 12:22:01 +01:00
Jeremy Allison
42cfffae80
Remove next_token - all uses must now be next_token_talloc.
...
No more temptations to use static length strings.
Jeremy.
(This used to be commit ec003f3936
)
2007-12-07 17:32:32 -08:00
Jeremy Allison
ade51769d5
We don't need P_GSTRING or P_UGSTRING anymore.
...
Jeremy.
(This used to be commit 78dc756000
)
2007-12-07 12:43:10 -08:00
Jeremy Allison
e2ae63bcf7
Make all the tools use the proper accessor functions.
...
Jeremy.
(This used to be commit 6d61bb8797
)
2007-12-06 18:58:01 -08:00
Jeremy Allison
79c3aef7ea
Fix typos in auth change.
...
Jeremy.
(This used to be commit 440e9f5b51
)
2007-12-06 18:52:36 -08:00
Jeremy Allison
9fdf2d0586
Get closer to building with smbmount. Move parameter line changes
...
into lib/util.c
Jeremy.
(This used to be commit 6ac5d81655
)
2007-12-06 18:49:39 -08:00
Jeremy Allison
1b92ea5559
Remove pstrings from client/client.c by doing a large rewrite.
...
Mostly compiles....
Jeremy.
(This used to be commit c87f3eba9a
)
2007-12-06 17:16:33 -08:00
Karolin Seeger
bf80f40ca4
Make output of net getdomainsid more meaningful. Unify spelling of SID. Display usage if superfluous arguments are given.
...
Karolin
(This used to be commit cb3a2dfeb0
)
2007-12-06 16:34:36 +01:00
Volker Lendecke
78c6ee0090
Remove some globals
...
(This used to be commit 31d0a846db
)
2007-12-05 14:39:07 +01:00
Jeremy Allison
de7fd585b1
The usual !pstring...
...
Jeremy.
(This used to be commit b676262a78
)
2007-12-04 16:56:18 -08:00
Jeremy Allison
e262c41c61
More pstring elimination.
...
Jeremy.
(This used to be commit c1f70793d6
)
2007-12-04 16:35:24 -08:00
Jeremy Allison
3c219ce238
Remove pstrings.
...
Jeremy.
(This used to be commit e3c02796f8
)
2007-12-04 15:45:20 -08:00
Jeremy Allison
5ea101f048
Allow STR_TERMINATE and -1 src_len for pull_ucs2_base_talloc().
...
Jeremy.
(This used to be commit 063358d87a
)
2007-12-04 15:21:14 -08:00
Jeremy Allison
e883c7040b
Remove pstr_sprintf. Replace with snprintf.
...
Jeremy.
(This used to be commit bc9aa72223
)
2007-12-04 14:31:57 -08:00
Jeremy Allison
bb9b754605
Back to pstring removal.
...
Jeremy.
(This used to be commit 95842ae4e1
)
2007-12-04 14:02:25 -08:00
Jeremy Allison
3ab73eab49
Gone from usershare.
...
Jeremy.
(This used to be commit f1555f4f0d
)
2007-12-03 19:19:19 -08:00
Jeremy Allison
adf6d848de
Getting to the home stretch for elimination of pstrings...
...
Jeremy.
(This used to be commit 0411635511
)
2007-12-03 18:48:41 -08:00
Jeremy Allison
fe1a12b22f
Remove pstring from clirap2 by completely rewriting the damn
...
thing :-). Now with added paranoia.
Jeremy.
(This used to be commit b6b5f92bc9
)
2007-12-03 14:09:48 -08:00
Günther Deschner
6f1b4eb869
Fix shutdown callers.
...
Guenther
(This used to be commit de2fdc6b5a
)
2007-12-03 18:43:19 +01:00
Günther Deschner
9ab0038348
Fix svcctl callers.
...
Guenther
(This used to be commit 91bf2ac1af
)
2007-12-03 18:43:19 +01:00
Günther Deschner
82089a2e84
Fix winreg callers.
...
Guenther
(This used to be commit 677d9e6d86
)
2007-12-03 18:43:19 +01:00
Günther Deschner
e9e182feda
Actually implement reboot feature for net dom join/unjoin.
...
Guenther
(This used to be commit bbbeeba163
)
2007-12-03 11:17:57 +01:00
Volker Lendecke
107c1f854d
Reformatting
...
(This used to be commit 28c0a77ec1
)
2007-12-03 10:53:29 +01:00
Günther Deschner
a43e3f98ad
Add "net dom" command suite to "net".
...
Guenther
(This used to be commit a41f9aef84
)
2007-11-30 22:25:01 +01:00
Günther Deschner
c88263ab9e
Add "net dom unjoin" code.
...
Guenther
(This used to be commit 58d49023b9
)
2007-11-30 22:25:01 +01:00
Günther Deschner
4b60045066
Add "net dom join" code.
...
Guenther
(This used to be commit 177dab0ce3
)
2007-11-30 22:25:01 +01:00
Günther Deschner
4b9f336a62
Move param helper routines to one place.
...
Guenther
(This used to be commit 6bf2c8038c
)
2007-11-30 22:25:01 +01:00
Jeremy Allison
f692694b99
Remove PSTRING_LEN from smbd/ nmbd/.
...
Remove pstring from libsmb/clidfs.c except for a nasty
hack (that will be removed when pstrings are gone from
client/).
Jeremy.
(This used to be commit cc257b71d1
)
2007-11-29 17:25:41 -08:00
Jeremy Allison
d2cf97aeba
Remove the explicit TALLOC_CTX * from cli_struct.
...
Make us very explicit about how long a talloc ctx
should last.
Jeremy.
(This used to be commit ba9e2be2b5
)
2007-11-29 13:24:54 -08:00
Michael Adam
25a6a677df
Allow calling "net rpc join" and "net rpc trustdom" without specifying server IP.
...
This was a logic bug (typo) in a call to get_pdc_ip() in net_find_server().
Michael
(This used to be commit 988c5ff3f4
)
2007-11-29 15:16:45 +01:00
Jeremy Allison
6b6655edd9
Remove pstrings from everything except srv_spoolss_nt.c.
...
Jeremy.
(This used to be commit 0002a9e96b
)
2007-11-27 14:35:30 -08:00
Volker Lendecke
1011b32678
Remove some statics
...
(This used to be commit 1fab16ffb8
)
2007-11-27 14:18:47 +01:00
Volker Lendecke
5c6f961447
Remove a static
...
(This used to be commit 85a84f72ff
)
2007-11-24 18:11:11 -08:00
Volker Lendecke
d2c2635a28
Make remote_password_change return malloced error strings
...
This fixes a segfault in smbpasswd -r
(This used to be commit 49949f0b85
)
2007-11-23 13:04:50 -08:00
Volker Lendecke
450ca80b57
add talloc_stackframe() to eventlogadm
...
Thanks to Günther Kukkukk for noticing
(This used to be commit 9751cc222c
)
2007-11-23 14:39:21 +01:00
Jeremy Allison
7ef6c19074
Remove pstrings from pam_smbpass - make local_password_change
...
return malloced strings.
Jeremy.
(This used to be commit f652fe2bdb
)
2007-11-21 17:42:52 -08:00
Jeremy Allison
90b8a7c8fe
Add talloc stackframe for ntlm_auth.c
...
Jeremy.
(This used to be commit 6f9c2910bd
)
2007-11-20 19:17:47 -08:00
Karolin Seeger
551f9e7a6c
Add error message to net rap file and net rap file user
...
(This used to be commit 759d6bcbec
)
2007-11-19 16:42:27 +01:00
Jeremy Allison
acb829ecc3
Add MAX_DNS_NAME_LENGTH, remove more pstrings.
...
Jeremy.
(This used to be commit a1725f4ff7
)
2007-11-15 18:27:26 -08:00
Jeremy Allison
68be9a8200
More pstring removal. This one was tricky. I had to add
...
one horror (pstring_clean_name()) which will have to
remain until I've removed all pstrings from the client code.
Jeremy.
(This used to be commit 1ea3ac8014
)
2007-11-15 14:19:52 -08:00
Jeremy Allison
7a3ece4145
Remove pstring from param/
...
This was a little tricky..... I'll watch the
build farm.
Jeremy.
(This used to be commit d6e2519c67
)
2007-11-13 18:42:42 -08:00
Stefan Metzmacher
f9578af966
ndr: change NTSTAUS into enum ndr_err_code (samba3 callers)
...
lib/messages_local.c
rpc_client/ndr.c
smbd/notify_internal.c
utils/net_rpc_registry.c
metze
(This used to be commit c2645d2164
)
2007-11-09 21:23:16 +01:00
Volker Lendecke
1a11cdf3f2
Sanitize smbcacls slightly
...
(This used to be commit 9c57628dbd
)
2007-11-09 15:21:58 +01:00
Volker Lendecke
62b97b0156
Make base64_encode_data_blob return a talloced string
...
(This used to be commit 5f205ab48d
)
2007-11-09 15:12:30 +01:00
Jeremy Allison
d40e47db4b
Remove more fstring/pstring bad useage. Go talloc !
...
Jeremy.
(This used to be commit 2a0173743d
)
2007-11-08 17:25:45 -08:00
Jeremy Allison
85b48d792f
Ensure we null out the address correctly.
...
Jeremy.
(This used to be commit e1fcd851ab
)
2007-11-05 23:17:19 -08:00
Michael Adam
002060855f
Fix another segfault and make smbfilter run again.
...
This fix is not complete yet (loop after "client closed connection")
but at least it starts again...
Micheal
(This used to be commit e2ffc6053d
)
2007-11-06 01:10:05 +01:00
Michael Adam
251d755e90
Fix a segfault.
...
Michael
(This used to be commit 98225a0752
)
2007-11-06 01:10:04 +01:00
Michael Adam
ea7bfdde72
Try to fix the build. There was one forgotten caller
...
of receive_smb. Jeremy: please check!
Michael
(This used to be commit 1f0fcc3e4e
)
2007-11-06 01:10:04 +01:00
Günther Deschner
fc22f295d0
Make sure we can read SACLs from the registry.
...
Guenther
(This used to be commit 62d4cce456
)
2007-11-05 03:26:01 +01:00
Jeremy Allison
51a0354d75
Remove more static data from lib/util_sock.c and
...
callers.
Jeremy.
(This used to be commit 35aaa36f82
)
2007-11-03 22:34:46 -07:00
Jeremy Allison
b04312b75d
Forgot one more getnameinfo.
...
Jeremy.
(This used to be commit 619e33248d
)
2007-11-02 12:05:17 -07:00
Jeremy Allison
e075b3692b
Fix Solaris by ensuring we use the IPv4 or IPv6 length
...
in any getnameinfo calls.
Jeremy
(This used to be commit 4d7badb0c4
)
2007-11-02 10:25:34 -07:00
Jeremy Allison
d4307679b9
Change all occurrences of zero_addr(&ss,AF_INET) to
...
zero_addr(&ss). All current uses were always of the
AF_INET form, so simplify the call. If in the future
we need to zero an addr to AF_INET6 this can be
done separately.
Jeremy.
(This used to be commit 2e92418a13
)
2007-10-27 20:29:36 -07:00
Jeremy Allison
73eefd6b72
Fix popt bool problems (need POPT_ARG_NONE, not POPT_ARG_VALUE).
...
Reported by kukks - thanks !
Jeremy.
(This used to be commit 9993f8d1af
)
2007-10-26 16:22:18 -07:00
Jeremy Allison
7cbfaa31d8
Fix a few more sockaddr -> sockaddr_storgage.
...
Jeremy.
(This used to be commit 4b3635d6bc
)
2007-10-26 16:02:16 -07:00
Stefan Metzmacher
cd648750e0
one more struct in_addr => struct sockaddr_storage
...
jra: please check this...
metze
(This used to be commit cecc807551
)
2007-10-26 16:37:32 +02:00
Jeremy Allison
42f9694139
Fixed missing in_addr -> sockaddr_storage conversion (how did
...
I miss this...).
Jeremy.
(This used to be commit f982774c8d
)
2007-10-25 18:11:29 -07:00
Jeremy Allison
f88b7a076b
This is a large patch (sorry). Migrate from struct in_addr
...
to struct sockaddr_storage in most places that matter (ie.
not the nmbd and NetBIOS lookups). This passes make test
on an IPv4 box, but I'll have to do more work/testing on
IPv6 enabled boxes. This should now give us a framework
for testing and finishing the IPv6 migration. It's at
the state where someone with a working IPv6 setup should
(theorecically) be able to type :
smbclient //ipv6-address/share
and have it work.
Jeremy.
(This used to be commit 98e154c312
)
2007-10-24 14:16:54 -07:00
Volker Lendecke
d1db41c059
Don't segfault if locking.tdb can't be opened
...
Thanks to Steve Langasek <vorlon@debian.org>
(This used to be commit 67328bd27b
)
2007-10-21 19:26:26 +02:00
Jeremy Allison
9a85533914
Fix the popt / bool issues. Some places we used BOOL
...
where we meant int. Fix this. Thanks to metze for
pointing this out.
Jeremy.
(This used to be commit 793a9d24a1
)
2007-10-19 11:38:36 -07:00
Jeremy Allison
30191d1a57
RIP BOOL. Convert BOOL -> bool. I found a few interesting
...
bugs in various places whilst doing this (places that assumed
BOOL == int). I also need to fix the Samba4 pidl generation
(next checkin).
Jeremy.
(This used to be commit f35a266b3c
)
2007-10-18 17:40:25 -07:00
Karolin Seeger
4d910553dc
Add net rap file user
...
(This used to be commit 2972c97e5e
)
2007-10-18 13:12:58 +02:00
Alexander Bokovoy
d76717fe15
Correctly free memory in regfio paths
...
(This used to be commit 97f9a90b82
)
2007-10-15 17:41:09 -05:00
Günther Deschner
862a7e6cb1
Fix the build WITH_DNS_UPDATES.
...
Jeremy, please have a look.
Guenther
(This used to be commit 4dfda879a3
)
2007-10-12 11:37:03 +02:00
Jeremy Allison
8e54530b52
Add start of IPv6 implementation. Currently most of this is avoiding
...
IPv6 in winbindd, but moves most of the socket functions that were
wrongly in lib/util.c into lib/util_sock.c and provides generic
IPv4/6 independent versions of most things. Still lots of work
to do, but now I can see how I'll fix the access check code.
Nasty part that remains is the name resolution code which is
used to returning arrays of in_addr structs.
Jeremy.
(This used to be commit 3f6bd0e1ec
)
2007-10-10 18:25:16 -07:00
Gerald (Jerry) Carter
e5a951325a
[GLUE] Rsync SAMBA_3_2_0 SVN r25598 in order to create the v3-2-test branch.
...
(This used to be commit 5c6c8e1fe9
)
2007-10-10 15:34:30 -05:00
Günther Deschner
5de28a07cc
r25592: Allow to set sec_info for registry security descriptor queries.
...
Guenther
(This used to be commit 09e10d1d29
)
2007-10-10 12:31:16 -05:00
Günther Deschner
ffd91e763e
r25526: Fix usage output.
...
Guenther
(This used to be commit 31a0bf7b8c
)
2007-10-10 12:31:12 -05:00
Günther Deschner
70001d3106
r25525: Add "net rpc registry getsd <keyname>" to display security descriptors.
...
Guenther
(This used to be commit 550ae11ad1
)
2007-10-10 12:31:11 -05:00
Volker Lendecke
e3d07ff9fe
r25499: Fix rpc_file_list_internals
...
(This used to be commit da5736f210
)
2007-10-10 12:31:10 -05:00
Volker Lendecke
4a952fb0c0
r25481: Fix some typos, don't panic as non-root on net getdomainsid
...
Thanks to Karolin Seeger <ks@sernet.de>
(This used to be commit 5ae4b27398
)
2007-10-10 12:31:07 -05:00
Jeremy Allison
3fbd1ae54c
r25472: Fix the interfaces code to detect IPv6 interfaces, using the
...
new standard getifaddrs() and freeifaddrs() interfaces. Currently
we only return IPv4 af_families. Needs fixing for binds to IPv6
but this has to be careful work.
Jeremy.
(This used to be commit 327875182c
)
2007-10-10 12:31:06 -05:00
Gerald Carter
5221ebb299
r25407: Revert Longhorn join patch as it is not correct for the 3.2 tree.
...
The translate_name() used by cli_session_setup_spnego() cann rely
Winbindd since it is needed by the join process (and hence before
Winbind can be run).
(This used to be commit 00a93ed336
)
2007-10-10 12:31:03 -05:00
Gerald Carter
754cfb427b
r25402: BUG 4997 (3.2 only): Fix enumration level for smbtree
...
(This used to be commit f387e0f256
)
2007-10-10 12:31:02 -05:00
Gerald Carter
3529156971
r25400: Windows 2008 (Longhorn) Interop fixes for AD specific auth2 flags,
...
and client fixes. Patch from Todd Stetcher <todd.stetcher@isilon.com>.
(This used to be commit 8304ccba73
)
2007-10-10 12:31:02 -05:00
Günther Deschner
c32358d001
r25314: Add HKEY_CURRENT_USER to reg_hive_key().
...
Guenther
(This used to be commit 693b3c26c0
)
2007-10-10 12:30:58 -05:00
Michael Adam
c97fe37ea3
r25294: Tidy up callers of unistr2_to_ascii() to pass sizeof(target_area) to
...
the maxeln parameter instead of sizeof(target_area) - 1 (or even
sizeof(fstring) - 1 in some places.
I hope these were really all there were.
Michael
(This used to be commit 9a28be220d
)
2007-10-10 12:30:58 -05:00
Stefan Metzmacher
7649b460d2
r25239: fix cut-n-paste bug in code with LIBUNWIND support
...
metze
(This used to be commit ff94d05576
)
2007-10-10 12:30:53 -05:00
Michael Adam
34af42e87e
r25201: Fight those red bars...
...
(This used to be commit cc4599fdc1
)
2007-10-10 12:30:51 -05:00
Michael Adam
75f82d454f
r25200: Fix a debug message.
...
(This used to be commit f1f4758e2c
)
2007-10-10 12:30:51 -05:00
Michael Adam
4dc265d6a0
r25198: Change net_rpc_join_ok() to return NTSTATUS for better
...
error propagation.
Michael
(This used to be commit 5a16da2185
)
2007-10-10 12:30:50 -05:00
Michael Adam
1130482add
r25197: Change net_make_ipc_connection() and net_make_ipc_connection_ex() to
...
return NTSTATUS to allow for better error propagation.
Michael
(This used to be commit 46093004a7
)
2007-10-10 12:30:50 -05:00
Stefan Metzmacher
28d076d20f
r25143: rename public functions from winbind_client.h
...
init_request => winbindd_init_request
free_response => winbindd_free_response
read_reply => winbindd_read_reply
write_sock => winbind_write_sock
read_sock => winbind_read_sock
close_sock => winbind_close_sock(void)
metze
(This used to be commit 8a95d7a7ed
)
2007-10-10 12:30:45 -05:00
Volker Lendecke
4ee8b2937d
r25055: Add file_id_string_tos
...
This removes file_id_string_static and file_id_string_static2
(This used to be commit 638c848c9a
)
2007-10-10 12:30:36 -05:00
Volker Lendecke
54d3c7f61d
r25040: Add "net sam rights"
...
Not strictly in the SAM, but close enough. This command acts directly on
the local tdb, no running smbd required
This also changes the root-only check to a warning
(This used to be commit 0c5657b5ef
)
2007-10-10 12:30:36 -05:00
Jeremy Allison
fc213876d5
r25019: Fix coverity bug #105 , run #332 . Use of uninitialized variable.
...
Jeremy.
(This used to be commit a58de8cee5
)
2007-10-10 12:30:34 -05:00
Volker Lendecke
6de1b0b65b
r24951: Warn if "os level" > 255
...
Thanks to Karolin Seeger <ks@sernet.de>
(This used to be commit 3abf06efc1
)
2007-10-10 12:30:29 -05:00
Volker Lendecke
faefb22c61
r24943: Some stackframes
...
(This used to be commit cddb9f11d5
)
2007-10-10 12:30:29 -05:00
Rafal Szczesniak
00737da4f4
r24853: Rename function as Jerry asked.
...
s/net_use_upn_machine_account/net_use_krb_machine_account/
rafal
(This used to be commit 86af9fedad
)
2007-10-10 12:30:28 -05:00
Michael Adam
d4603ed339
r24845: Fix a segfault in smbcontrol when called with parameters but no extra args.
...
Michael
(This used to be commit f1bbf9bc18
)
2007-10-10 12:30:27 -05:00
Michael Adam
ac3f2e784f
r24843: Add a "validate-cache" control message to winbindd.
...
So there is a new subcommand "smbcontrol winbindd validate-cache" now.
This change provides the infrastructure:
The function currently returns "true" unconditionally.
The call of a real cache validation function will be incorporated
in subsequent changes.
Michael
(This used to be commit ef92d505c0
)
2007-10-10 12:30:27 -05:00
Michael Adam
464227599e
r24828: Give smbcontrol an initial talloc stackframe.
...
(This used to be commit 55020b07b5
)
2007-10-10 12:30:25 -05:00
Michael Adam
018f72aa9c
r24827: Give smbstatus an initial talloc stackframe.
...
Rewrite main() so as to exit only at a single point
where the stack frame is freed, too.
Michael
(This used to be commit dbe38995ec
)
2007-10-10 12:30:25 -05:00
Michael Adam
fe6c338463
r24825: Give testparm an initial talloc stackframe, so it does not complain
...
it is leaking.
(This used to be commit 705336ee10
)
2007-10-10 12:30:25 -05:00
Michael Adam
d051dce7b2
r24824: Create an initial talloc stackframe for the net binary.
...
(This used to be commit c97600b96f
)
2007-10-10 12:30:25 -05:00
Volker Lendecke
929e1d9920
r24809: Consolidate the use of temporary talloc contexts.
...
This adds the two functions talloc_stackframe() and talloc_tos().
* When a new talloc stackframe is allocated with talloc_stackframe(), then
* the TALLOC_CTX returned with talloc_tos() is reset to that new
* frame. Whenever that stack frame is TALLOC_FREE()'ed, then the reverse
* happens: The previous talloc_tos() is restored.
*
* This API is designed to be robust in the sense that if someone forgets to
* TALLOC_FREE() a stackframe, then the next outer one correctly cleans up and
* resets the talloc_tos().
The original motivation for this patch was to get rid of the
sid_string_static & friends buffers. Explicitly passing talloc context
everywhere clutters code too much for my taste, so an implicit
talloc_tos() is introduced here. Many of these static buffers are
replaced by a single static pointer.
The intended use would thus be that low-level functions can rather
freely push stuff to talloc_tos, the upper layers clean up by freeing
the stackframe. The more of these stackframes are used and correctly
freed the more exact the memory cleanup happens.
This patch removes the main_loop_talloc_ctx, tmp_talloc_ctx and
lp_talloc_ctx (did I forget any?)
So, never do a
tmp_ctx = talloc_init("foo");
anymore, instead, use
tmp_ctx = talloc_stackframe()
:-)
Volker
(This used to be commit 6585ea2cb7
)
2007-10-10 12:30:24 -05:00
Rafal Szczesniak
48853f0bad
r24789: Add implementation of machine-authenticated connection to netlogon
...
pipe used when connecting to win2k and newer domain controllers. The
server may be configured to deny anonymous netlogon connections which
would stop domain join verification step. Still, winnt domains require
such smb sessions not to be authenticated using machine credentials.
Creds employed in smb session cannot have a username in upn form, so
provide the separate function to use machine account.
rafal
(This used to be commit 30d99d8ac3
)
2007-10-10 12:30:21 -05:00
Günther Deschner
6824731cb0
r24783: Remove unused off_t type.
...
Guenther
(This used to be commit 85c816c27f
)
2007-10-10 12:30:21 -05:00
Rafal Szczesniak
a0a32cf5d5
r24771: Use infolevel 25 to set the machine account's password (just like winxp).
...
This correctly updates pwdLastSet field on win2k3 server.
rafal
(This used to be commit dd6d44c166
)
2007-10-10 12:30:19 -05:00
Günther Deschner
84bce05e71
r24742: Add experimental DsGetDcName() call (will be used by krb5 locator for fine
...
grained KDC DNS queries).
Guenther
(This used to be commit 3263cd680f
)
2007-10-10 12:30:16 -05:00
Michael Adam
46f199961f
r24637: In order for "net rpc registry" to be able to write to
...
Samba's own registry, the access mask for opening the
registry for the write operations needs to be
SEC_RIGHTS_MAXIMUM_ALLOWED instead of REG_WRITE: we can
not open e.g. HKLM read write explicitly, since we can
not write to this virtual part of the registry, only
to the subkeys like 'HKLM\Software\Samba\smbconf' that
are stored on disk.
Note that MAXIMUM_ALLOWED is also what windows' regedit
passed to the open calls.
Michael
(This used to be commit 57c30f7319
)
2007-10-10 12:30:12 -05:00
Michael Adam
c56874d112
r24527: Add a function lp_canonicalize_parameter_with_value that turns
...
a parameter and value into the canonical paramter with the value
inverted if it was in invers boolean synonym.
Make net conf use this function when storing parameters.
Michael
(This used to be commit 3b762ab183
)
2007-10-10 12:29:54 -05:00
Michael Adam
8b0b1408a0
r24513: Reformatting: eliminate trailing spaces, overly long lines
...
and adjust some formattings to standard.
Michael
(This used to be commit 00432bcd69
)
2007-10-10 12:29:53 -05:00
Michael Adam
53f5c4adfb
r24496: Add initial synonym handling to "net conf":
...
When storing parameters in the smbconf portion of the registry,
up to now, synonyms could be misused to store a parameter twice.
Now this is prevented by canonicalizing the paramter name first.
Also, the value for a boolean parameter checked for validity
before storing the bool in registry.
(The canonicalization should finally go into the registry smbconf
code to also prevent e.g. "regedit" or "net rpc registry" from
storing synonyms. - This is in the making.)
Michael
(This used to be commit 95447dde86
)
2007-10-10 12:29:52 -05:00
Günther Deschner
201f0e1ce4
r24432: Expand kerberos_return_pac() so that it can be used in winbindd.
...
Guenther
(This used to be commit e70bf0ecc3
)
2007-10-10 12:29:46 -05:00
Günther Deschner
444fd1e848
r24413: Minor edits for libgpo.
...
Guenther
(This used to be commit 5dc791f4cf
)
2007-10-10 12:29:42 -05:00
Stefan Metzmacher
82e80e023b
r24125: use TALLOC_FREE()
...
metze
(This used to be commit 4c21ebae95
)
2007-10-10 12:29:09 -05:00
Stefan Metzmacher
39ddd0a520
r24115: try to get the file name and share patch for printing
...
brlocks from the share_mode db, as the same fileid
is used.
metze
(This used to be commit 8cccf470cb
)
2007-10-10 12:29:08 -05:00
Volker Lendecke
a81c8b2a28
r24107: Fix bug 4849. Thanks to Matthijs Kooijman <matthijs@stdin.nl>
...
(This used to be commit 6e6eea64a5
)
2007-10-10 12:29:07 -05:00
Volker Lendecke
6e419551ae
r24057: Fix some uninitialized variables found by the IBM checker
...
(This used to be commit d74bbc53c2
)
2007-10-10 12:29:00 -05:00
Volker Lendecke
5e066d5ee1
r24047: With -Wmissing-prototypes these two always generate warnings. They
...
should be properly prototyped. For now, gloss over the warning.
(This used to be commit 2137158260
)
2007-10-10 12:28:59 -05:00
Volker Lendecke
602271632a
r24044: Fix an uninitialized variable warning
...
(This used to be commit 69326a56e7
)
2007-10-10 12:28:59 -05:00
Stefan Metzmacher
93c56c712c
r24021: use MSG_BROADCAST_PID_STR as value for broadcast messages
...
to fix the cluster case
vl: please check, if this works with clustering = no
metze
(This used to be commit 9d4104b8d5
)
2007-10-10 12:28:56 -05:00
Stefan Metzmacher
efddd9c753
r24019: merge from http://people.samba.org/bzr/metze/samba/3_2-ctdb-metze/ :
...
use a timed event to make sure the timelimit is correctly
handled in smbcontrol when waiting for messages
metze
(This used to be commit 68c786dafa
)
2007-10-10 12:28:56 -05:00
Volker Lendecke
16d13dcc74
r24005: Attempt to fix the build on host deckchair
...
(This used to be commit cdc8ca57a7
)
2007-10-10 12:28:55 -05:00
Günther Deschner
2349acdd43
r23973: For debugging, add (undocumented) net ads kerberos commands (kinit, renew,
...
pac).
Guenther
(This used to be commit 4cada7c148
)
2007-10-10 12:28:51 -05:00
Günther Deschner
7d3e5834ec
r23968: Harmonize net's password prompts.
...
Guenther
(This used to be commit 7e2fb14d6e
)
2007-10-10 12:28:50 -05:00
Stefan Metzmacher
fa07beaf80
r23954: merge from 3_0-ctdb-tridge:
...
don't display dead share mode entries in smbstatus
metze
(This used to be commit b52bb1e155
)
2007-10-10 12:28:49 -05:00
Stefan Metzmacher
809c9d4d31
r23888: move elements belonging to the current ldap connection to a
...
substructure.
metze
(This used to be commit 00909194a6
)
2007-10-10 12:28:38 -05:00
Günther Deschner
2e6b56061d
r23874: Some more minor edits for net ads gpo.
...
Guenther
(This used to be commit cc41b3b60f
)
2007-10-10 12:28:37 -05:00
Günther Deschner
c252b04abf
r23834: Allow to pass an ADS_STRUCT pointer down to the dump function callback in
...
libads.
Guenther
(This used to be commit 311bbbafa6
)
2007-10-10 12:28:32 -05:00
Andrew Tridgell
714209baaa
r23804: here too
...
(This used to be commit e5d18768a0
)
2007-10-10 12:28:28 -05:00
Andrew Tridgell
153cfb9c83
r23801: The FSF has moved around a lot. This fixes their Mass Ave address.
...
(This used to be commit 87c91e4362
)
2007-10-10 12:28:27 -05:00
Andrew Tridgell
28b9d61076
r23800: LGPL is now called GNU Lesser General Public License
...
not GNU Library General Public License
(This used to be commit 727a6cf2cb
)
2007-10-10 12:28:26 -05:00
Andrew Tridgell
fbfaaa9993
r23795: more v2->v3 conversion
...
(This used to be commit c14aba93c0
)
2007-10-10 12:28:26 -05:00
Andrew Tridgell
5e54558c6d
r23784: use the GPLv3 boilerplate as recommended by the FSF and the license text
...
(This used to be commit b0132e94fc
)
2007-10-10 12:28:22 -05:00
Simo Sorce
f622dc8d2f
r23782: I tested this against NT4 PDC, W2K Server, W2K3 Dc, and a Win XP std alone
...
client and they all work with this code.
(This used to be commit 44e22581d7
)
2007-10-10 12:28:21 -05:00
Jeremy Allison
d824b98f80
r23779: Change from v2 or later to v3 or later.
...
Jeremy.
(This used to be commit 407e6e695b
)
2007-10-10 12:28:20 -05:00
Günther Deschner
221d06d6f3
r23772: Add ads_find_samaccount() helper function.
...
Guenther
(This used to be commit 6fafa64bea
)
2007-10-10 12:23:55 -05:00
Günther Deschner
5512dacbca
r23770: Some minor cleanups in libgpo
...
(including some valgrind errors, uninitialized vars, etc.)
Guenther
(This used to be commit 1a2878db2d
)
2007-10-10 12:23:55 -05:00
Michael Adam
d4f1b08c93
r23760: Untangle use of strrchr_m and strequal and add some checks
...
for the validity of the given registry key name.
Michael
(This used to be commit 4b4ba7724e
)
2007-10-10 12:23:53 -05:00
Volker Lendecke
161ebbc17a
r23757: Fix Coverity id 386
...
(This used to be commit 91be38f7ab
)
2007-10-10 12:23:53 -05:00
Michael Adam
a5946cb46a
r23750: Change the behaviour of net conf import when there is a global section
...
in the current registry and there is no global section in the input
file (or only global options with default values):
In that case the existing global section is now not touched. Before, it
would have been deleted and recreated empty. The new behaviour is how
other shares are treated too.
Note that since the input file is parsed by lp_load, there is currently
no way to distinguish between a section with only default parameters
and a non-existing section in net conf import.
Michael
PS: A couple of trailing white-spaces have been eliminated
and a line was broken to be not longer than 80 chars, too.
(This used to be commit ec21a0cf9f
)
2007-10-10 12:23:52 -05:00
Michael Adam
1bea19c127
r23749: Simplify prototype of reg_setvalue_internal:
...
eliminate "type" parameter since we store only REG_SZ.
Michael
(This used to be commit 65ce463317
)
2007-10-10 12:23:52 -05:00
Michael Adam
cba898808e
r23748: Clean use of talloc in import_process_service:
...
create a temporary talloc ctx for the function.
Michael
(This used to be commit 39df7faaa9
)
2007-10-10 12:23:51 -05:00
Michael Adam
c2c96bccda
r23747: Move formatting of a parameter's value into a value string
...
to a function of its own. (for storing it in registry),
Eliminate the valtype variable : store everything as "sz".
Eliminate some trailing white spaces on the way.
Michael
(This used to be commit 76f4f224aa
)
2007-10-10 12:23:51 -05:00
Michael Adam
feff1fcfd8
r23746: Fix missing assignments to target string of asprintf in import function.
...
Michael
(This used to be commit 6b1bf7c1f4
)
2007-10-10 12:23:51 -05:00
Michael Adam
f7b8a3782a
r23745: Fix: Check whether top subkeyname instead of whole registry key name
...
is equal to GLOBAL_NAME.
Michael
(This used to be commit fdcdcacf0a
)
2007-10-10 12:23:51 -05:00
Michael Adam
ea78cb941a
r23744: Remove TODO-comment. lp_load returns False if opening
...
of the config file fails. That's enough of checking for
existence and readbility to my taste.
Michael
(This used to be commit 204f4f1a94
)
2007-10-10 12:23:51 -05:00
Michael Adam
f26abd78b1
r23666: Rename lp_parameter_valid -> lp_parameter_is_valid.
...
Michael
(This used to be commit 7f85cff49d
)
2007-10-10 12:23:44 -05:00
Michael Adam
e388130aa6
r23657: Prevent setting of a global option in a share definition
...
in "net conf setparm".
Michael
(This used to be commit bf92d56798
)
2007-10-10 12:23:42 -05:00
Michael Adam
2073303664
r23656: Add initial checking of the validity of a paramter
...
given to "net conf setparm". Add a utility function
lp_parameter_valid() for this to loadparm.c.
Michael
(This used to be commit 639051e58d
)
2007-10-10 12:23:42 -05:00
Michael Adam
96c4bf4a1c
r23655: Fix a comment and adjust some code formatting.
...
Michael
(This used to be commit b294bc707c
)
2007-10-10 12:23:42 -05:00
Michael Adam
3163aff376
r23652: Use the recursive delete function instead of the original one
...
when deleting a share. Just to be sure...
Michael
(This used to be commit 91770e153d
)
2007-10-10 12:23:41 -05:00
Günther Deschner
a2618aa8d5
r23648: Allow to list a custom krb5 keytab file with:
...
net ads keytab list /path/to/krb5.keytab
Guenther
(This used to be commit a2befee3f2
)
2007-10-10 12:23:41 -05:00
Günther Deschner
7eb828135b
r23627: Allow to pass down the lookup-level to rpccli_lsa_lookup_names().
...
Guenther
(This used to be commit e9a7512a9f
)
2007-10-10 12:23:38 -05:00
Volker Lendecke
5363779102
r23612: Revert 'net idmap dump' to the 3.0.24 behaviour.
...
(This used to be commit 56a32f217a
)
2007-10-10 12:23:36 -05:00
Michael Adam
a12d9fb6b3
r23593: Mention "net conf" in top level net usage.
...
Michael
(This used to be commit ae7e3c9708
)
2007-10-10 12:23:34 -05:00
Michael Adam
cc4f37f928
r23585: Add a "drop" function to "net conf" that clears the
...
whole configuration stored in registry.
Michael
(This used to be commit 6d8973762e
)
2007-10-10 12:23:32 -05:00