Volker Lendecke [Fri, 14 Mar 2008 17:01:06 +0000 (18:01 +0100)]
Fix bug 4901
Michael Adam [Fri, 14 Mar 2008 08:39:58 +0000 (09:39 +0100)]
libreplace: fix samba4 build (by not setting global LIBS).
This corrects the earlier fix of the standalone build, by setting
LIBS to the desired value only in configure.ac but not in getifaddrs.m4.
Not that this changes the standalone build in that it adds these libs
undconditionally and not only if they are needed by the getifaddrs
replacement functions.
Michael
(cherry picked from commit
ff3af1703ddc9e5383f32156bc5be8351f795e76)
Michael Adam [Fri, 14 Mar 2008 07:52:16 +0000 (08:52 +0100)]
libreplace: add -I$libreplacedir to CPPFLAGS for getifaddrs tests.
This is needed, otherwise $libreplacedir/system/network.h does not
find $libreplacedir/getaddrinfo.h on some systems (solaris, e.g.).
Michael
(cherry picked from commit
297c3bece094ddb5f268b02e61e33f512ccfe6f5)
Michael Adam [Fri, 14 Mar 2008 07:49:34 +0000 (08:49 +0100)]
libreplace: add an inet_aton() function that calls inet_pton().
inet_aton() is even needed inside libreplace, in the implementation
of rep_getaddrinfo().
Michael
(cherry picked from commit
bcb2f3a880f8da8f9bedb7a8e61d7d7b533f1919)
Michael Adam [Thu, 13 Mar 2008 22:08:07 +0000 (23:08 +0100)]
Allow parameter "include" in registry based configuration (again).
This is for instance important to allow includes with %I to setup
individual logging (e.g.) for certain clients.
Michael
Michael Adam [Thu, 13 Mar 2008 22:02:58 +0000 (23:02 +0100)]
Fix %I macro expansion for IPv4 mapped IPv6 addresses.
On some systems (linux e.g.), when listening on ipv6 and ipv4,
addresses of ipv4 clients are printed as mapped ipv4 addresses
by getnameinfo (e.g. ::ffff:127.0.0.1). This re-establishes
the original behaviour of %I to expand to the plain ipv4 address
for an ipv4 client.
Michael
Günther Deschner [Wed, 12 Mar 2008 15:35:41 +0000 (16:35 +0100)]
Use existing srv_name_slash.
Guenther
Günther Deschner [Wed, 12 Mar 2008 15:19:56 +0000 (16:19 +0100)]
For convenience reasons, always create cli->srv_name_slash in the rpc_client.
Guenther
Günther Deschner [Wed, 12 Mar 2008 15:18:54 +0000 (16:18 +0100)]
Remove unused marshalling for SRV_NET_DISK_ENUM.
Guenther
Günther Deschner [Wed, 12 Mar 2008 15:17:27 +0000 (16:17 +0100)]
Ignore some unneeded autogenerated cli_ and srv_ functions.
Guenther
Michael Adam [Wed, 12 Mar 2008 01:12:11 +0000 (02:12 +0100)]
init_srv_share_info_ctr: fix counting of services.
The number of services was recorded too early leading to
registry shares not showing up in browse lists.
Guenther - please check.
Michael
Michael Adam [Wed, 12 Mar 2008 01:10:35 +0000 (02:10 +0100)]
init_srv_share_info_ctr: Add debug messages.
Michael
Michael Adam [Wed, 12 Mar 2008 01:07:37 +0000 (02:07 +0100)]
Add a debug message.
Michael
Michael Adam [Wed, 12 Mar 2008 00:03:26 +0000 (01:03 +0100)]
loadparm: add a debug message.
Michael
Michael Adam [Tue, 11 Mar 2008 23:56:33 +0000 (00:56 +0100)]
loadparm: remove services read from smb.conf when starting over for config backend registry.
Michael
Michael Adam [Tue, 11 Mar 2008 23:54:48 +0000 (00:54 +0100)]
loadparm: add convenience wrapper lp_kill_all_services()
Michael
Michael Adam [Tue, 11 Mar 2008 23:43:19 +0000 (00:43 +0100)]
loadparm: add a comment
Michael
Michael Adam [Tue, 11 Mar 2008 23:42:06 +0000 (00:42 +0100)]
loadparm: fix a comment typo.
Michael
Michael Adam [Tue, 11 Mar 2008 11:41:20 +0000 (12:41 +0100)]
loadparm: add utility function to check for config backend file.
Michael
Michael Adam [Tue, 11 Mar 2008 11:36:18 +0000 (12:36 +0100)]
loadparm: use a function to check for the registry config backend.
Michael
Jeremy Allison [Tue, 11 Mar 2008 22:26:22 +0000 (15:26 -0700)]
Merge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test
Jeremy Allison [Tue, 11 Mar 2008 22:26:02 +0000 (15:26 -0700)]
Using Metze's S4 nttrans rename test, the nttrans rename
behaves the same as the trans2 one.
Jeremy.
Stefan Metzmacher [Tue, 11 Mar 2008 21:06:09 +0000 (22:06 +0100)]
selftest: samba3 passes RAW-SEARCH now
As the resume key tests are skipped against samba3.
metze
Jeremy Allison [Tue, 11 Mar 2008 20:59:04 +0000 (13:59 -0700)]
Metze pointed out this we don't need FILE_ATTRIBUTE_READ here.
Jeremy.
Jeremy Allison [Tue, 11 Mar 2008 20:38:25 +0000 (13:38 -0700)]
Allow us to pass RAW-RENAME by testing that the connection struct
connection paths are equal, not just the conn structs themselves.
Jeremy.
Jeremy Allison [Tue, 11 Mar 2008 20:27:33 +0000 (13:27 -0700)]
Try and fix bug #5315, as well as S4 torture tests RAW-OPLOCK BATCH19,
BATCH20 and RAW-RENAME.
Jeremy.
Jeremy Allison [Tue, 11 Mar 2008 19:37:01 +0000 (12:37 -0700)]
Fix S3 to pass the test_raw_oplock_exclusive3 test.
Jeremy.
Charles [Tue, 11 Mar 2008 18:49:08 +0000 (19:49 +0100)]
The attached patch removes some global variables, and make them local to main().
Günther Deschner [Tue, 11 Mar 2008 17:19:45 +0000 (18:19 +0100)]
Add some last init_srvsvc_X functions.
Guenther
Volker Lendecke [Tue, 11 Mar 2008 13:15:52 +0000 (14:15 +0100)]
Convert mapping_tdb.c to dbwrap
I know, this is not used anymore, but until ldb knows about ctdb which is
blocked by the lack of transactions in ctdb, a tiny patch reactivating
mapping_tdb.c might be needed for cluster setups.
Volker Lendecke [Tue, 11 Mar 2008 11:53:50 +0000 (12:53 +0100)]
Clean up add_mapping_entry slightly
Volker Lendecke [Tue, 11 Mar 2008 11:46:36 +0000 (12:46 +0100)]
Cleanup after pstring removal
Volker Lendecke [Tue, 11 Mar 2008 11:30:46 +0000 (12:30 +0100)]
Convert secrets.c to use dbwrap
Günther Deschner [Tue, 11 Mar 2008 10:30:55 +0000 (11:30 +0100)]
Trying to fix resume_handling for srvsvc_NetShareEnumAll.
Guenther
Günther Deschner [Tue, 11 Mar 2008 10:29:49 +0000 (11:29 +0100)]
Allow to send no resume_handle in rpcclient's NetShareEnum* calls.
Guenther
Michael Adam [Tue, 11 Mar 2008 01:02:27 +0000 (02:02 +0100)]
registry shares: prevent creating regular share called "global".
This is a first quick fix.
Registry shares should be rewritten to use libnet_conf.
Michael
Günther Deschner [Tue, 11 Mar 2008 09:51:20 +0000 (10:51 +0100)]
Fix return of reg values below HKLM/SOFTWARE/MICROSOFT/WINDOWSNT/CURRENTVERSION.
Michael, please check.
Guenther
Günther Deschner [Tue, 11 Mar 2008 09:48:52 +0000 (10:48 +0100)]
Use pidl for _srvsvc_NetDiskEnum.
Guenther
Günther Deschner [Tue, 11 Mar 2008 03:52:46 +0000 (04:52 +0100)]
Fix netdiskenum call in rpcclient.
Guenther
Volker Lendecke [Mon, 10 Mar 2008 20:08:29 +0000 (21:08 +0100)]
Use a separate tdb for mutexes
Another preparation to convert secrets.c to dbwrap: The dbwrap API does not
provide a sane tdb_lock_with_timeout abstraction. In the clustered case the DC
mutex is needed per-node anyway, so it is perfectly fine to use a local mutex
only.
Volker Lendecke [Mon, 10 Mar 2008 14:48:04 +0000 (15:48 +0100)]
Convert secrets_lock_trust_account_password to talloc
This is preparing the conversion of secrets.c to ctdb
Volker Lendecke [Mon, 10 Mar 2008 12:27:27 +0000 (13:27 +0100)]
Add dbwrap_trans_store and dbwrap_trans_delete
Volker Lendecke [Mon, 10 Mar 2008 09:17:05 +0000 (10:17 +0100)]
Add transactions to the dbwrap API
Only filled in for tdb so far, for rbt it's pointless, and ctdb itself needs to
be extended
Volker Lendecke [Sun, 9 Mar 2008 10:15:10 +0000 (11:15 +0100)]
add dbwrap_change_int32_atomic
Günther Deschner [Mon, 10 Mar 2008 17:34:50 +0000 (18:34 +0100)]
Add netconnenum to rpcclient.
Guenther
Günther Deschner [Mon, 10 Mar 2008 16:35:34 +0000 (17:35 +0100)]
Re-run make idl.
Guenther
Günther Deschner [Mon, 10 Mar 2008 16:35:07 +0000 (17:35 +0100)]
Fix IDL for srvsvc_NetConnEnum.
Guenther
Günther Deschner [Mon, 10 Mar 2008 16:30:22 +0000 (17:30 +0100)]
Add netdiskenum to rpcclient.
Guenther
Michael Adam [Mon, 10 Mar 2008 16:16:01 +0000 (17:16 +0100)]
loadparm: fix init_globals() to re-init all options event when called 2nd time.
Up to the globals had only been fully reset when init_globals() was called
for the first time. But a full restart is needed for use with
"config backend = registry". (And should be with "config file = ...", but
in this case the restart is outsourced to the daemons.) This left
some options (like e.g. "realm") set to values that were set in smb.conf
before the occurence of "config backend = registry".
Now this misbehaviour is fixed with this change.
Michael
Michael Adam [Mon, 10 Mar 2008 13:39:19 +0000 (14:39 +0100)]
loadparm: replace typedef struct {} global/service by struct global/struct service.
Michael
Michael Adam [Mon, 10 Mar 2008 13:23:02 +0000 (14:23 +0100)]
loadparm: fix whitespaces in global and service parameter structs.
Michael
Michael Adam [Mon, 10 Mar 2008 13:10:58 +0000 (14:10 +0100)]
loadparm: fix spacing in parm_table (training spaces and empty lines).
Michael
Michael Adam [Mon, 10 Mar 2008 13:03:41 +0000 (14:03 +0100)]
loadparm: Reformat the parm table to use named initializers.
This makes each entry in the parm table much more comprehensible
at first glance (to me). On the other hand, roughly 9 lines are
used instead of one for each entry which makes the overall list
less clearly laid out, one might argue. But we have 400+ lines
of parameter descriptions anyways...
Michael
Michael Adam [Mon, 10 Mar 2008 11:32:56 +0000 (12:32 +0100)]
Reformat: Remove indentation of part of pam_smbpass/support.c by one tab.
The first 120 lines of this source file were indented by one tab.
Sorry, but I could not stand this..
Michael
Günther Deschner [Mon, 10 Mar 2008 16:14:11 +0000 (17:14 +0100)]
Remove rpccli_srvsvc_net_file_enum() and cli_srvsvc.c with it.
Guenther
Günther Deschner [Mon, 10 Mar 2008 16:08:55 +0000 (17:08 +0100)]
Use rpccli_srvsvc_NetFileEnum in net and rpcclient.
Guenther
Günther Deschner [Mon, 10 Mar 2008 16:07:37 +0000 (17:07 +0100)]
Re-run make idl.
Guenther
Günther Deschner [Mon, 10 Mar 2008 16:07:05 +0000 (17:07 +0100)]
Fix IDL for srvsvc_NetFileEnum.
Guenther
Günther Deschner [Mon, 10 Mar 2008 15:50:27 +0000 (16:50 +0100)]
Remove unused marshalling for SRV_NET_SESS_DEL.
Guenther
Günther Deschner [Mon, 10 Mar 2008 15:26:56 +0000 (16:26 +0100)]
Remove unused marshalling for SRV_NET_SHARE_{ENUM,ADD,SETINFO,GETINFO}
Guenther
Günther Deschner [Mon, 10 Mar 2008 15:19:25 +0000 (16:19 +0100)]
Convert "net" to use rpccli_srvsvc_NetShare* interfaces everywhere.
Guenther
Günther Deschner [Mon, 10 Mar 2008 13:25:45 +0000 (14:25 +0100)]
Use rpccli_srvsvc_NetShareAdd in net.
Guenther
Volker Lendecke [Sun, 9 Mar 2008 10:26:50 +0000 (11:26 +0100)]
Make use of talloc_asprintf_strupper_m in secrets.c
Volker Lendecke [Sun, 9 Mar 2008 10:21:08 +0000 (11:21 +0100)]
Avoid some pointless checks
secrets_init() makes sure that the tdb is initialized
Volker Lendecke [Sun, 9 Mar 2008 10:17:48 +0000 (11:17 +0100)]
Use talloc_tos() in secrets_init
Günther Deschner [Mon, 10 Mar 2008 04:17:09 +0000 (05:17 +0100)]
Use rpccli_srvsvc_NetShareGetInfo in 2 places in "net".
Guenther
Günther Deschner [Mon, 10 Mar 2008 04:05:37 +0000 (05:05 +0100)]
Use rpccli_srvsvc_NetShareEnumAll in smbtree.
Guenther
Günther Deschner [Mon, 10 Mar 2008 03:58:43 +0000 (04:58 +0100)]
Use rpccli_srvsvc_NetShareEnumAll in libsmbclient.
Guenther
Günther Deschner [Fri, 7 Mar 2008 16:37:07 +0000 (17:37 +0100)]
Remove insane amount of whitespace.
Guenther
Günther Deschner [Mon, 10 Mar 2008 03:33:06 +0000 (04:33 +0100)]
Use rpccli_srvsvc_NetShareEnumAll in smbclient.
Guenther
Günther Deschner [Sun, 9 Mar 2008 20:28:53 +0000 (21:28 +0100)]
Add some srvsvc_NetSessInfo init functions.
Guenther
Günther Deschner [Sun, 9 Mar 2008 19:55:19 +0000 (20:55 +0100)]
Add netsessenum command to rpcclient.
Guenther
Günther Deschner [Sun, 9 Mar 2008 19:11:07 +0000 (20:11 +0100)]
Re-run make idl.
Guenther
Günther Deschner [Sun, 9 Mar 2008 19:10:22 +0000 (20:10 +0100)]
Fix IDL for srvsvc_NetSessEnum().
Guenther
Günther Deschner [Sun, 9 Mar 2008 19:04:35 +0000 (20:04 +0100)]
Add netsessdel command to rpcclient.
Guenther
Günther Deschner [Sun, 9 Mar 2008 17:01:52 +0000 (18:01 +0100)]
Use pidl for _srvsvc_NetSessDel().
Guenther
Charles [Sun, 9 Mar 2008 18:52:29 +0000 (19:52 +0100)]
Fix return code.
Jelmer Vernooij [Sun, 9 Mar 2008 12:51:52 +0000 (13:51 +0100)]
Merge branch 'v3-2-test' of ssh://git.samba.org/data/git/samba into v3-2-test
Charles [Sun, 9 Mar 2008 12:50:56 +0000 (13:50 +0100)]
smbget: Make global variables static.
Volker Lendecke [Sat, 8 Mar 2008 22:48:12 +0000 (23:48 +0100)]
Fix Coverity ID 551
Correctly return if we can't create the temporary krb5.conf
Jeremy, please check!
Günther Deschner [Sat, 8 Mar 2008 00:02:54 +0000 (01:02 +0100)]
Remove unused marshalling for SRV_NET_FILE_SET_SECDESC and SRV_R_NET_FILE_GET_SECDESC.
Guenther
Günther Deschner [Fri, 7 Mar 2008 23:57:52 +0000 (00:57 +0100)]
Use pidl for _srvsvc_NetGetFileSecurity.
Guenther
Günther Deschner [Fri, 7 Mar 2008 23:42:40 +0000 (00:42 +0100)]
Use pidl for _srvsvc_NetSetFileSecurity.
Guenther
Günther Deschner [Sat, 8 Mar 2008 22:00:09 +0000 (23:00 +0100)]
Add netfilegetsec command to rpcclient.
Guenther
Volker Lendecke [Sat, 8 Mar 2008 21:29:35 +0000 (22:29 +0100)]
Print out the used seed in smbtorture
Volker Lendecke [Sat, 8 Mar 2008 21:28:01 +0000 (22:28 +0100)]
Correctly calculate the max read size
Volker Lendecke [Fri, 7 Mar 2008 14:03:20 +0000 (15:03 +0100)]
Move inbuf handling to before the PDU handling
In an error case, correctly discard the offending PDU
Volker Lendecke [Sun, 2 Mar 2008 08:43:19 +0000 (09:43 +0100)]
Pass specific packets to build_nmb and build_dgram
To me it was not clear what parts of struct packet_struct are actually used in
build_packet(). This makes it a bit more clear that only the specific parts are
used.
Volker Lendecke [Sat, 1 Mar 2008 18:54:17 +0000 (19:54 +0100)]
Fix some typos
Volker Lendecke [Sat, 1 Mar 2008 09:22:04 +0000 (10:22 +0100)]
Build aio_fork by default
... only when --with-aio-support and we can pass file descriptors
Günther Deschner [Fri, 7 Mar 2008 23:28:38 +0000 (00:28 +0100)]
Re-run make idl.
Guenther
Günther Deschner [Fri, 7 Mar 2008 23:27:41 +0000 (00:27 +0100)]
Fix IDL for srvsvc_NetSetFileSecurity and srvsvc_NetGetFileSecurity.
Guenther
Günther Deschner [Fri, 7 Mar 2008 23:22:44 +0000 (00:22 +0100)]
Use pidl for _srvsvc_NetShareAdd.
Guenther
Günther Deschner [Fri, 7 Mar 2008 22:55:52 +0000 (23:55 +0100)]
Re-run make idl.
Guenther
Günther Deschner [Fri, 7 Mar 2008 22:55:01 +0000 (23:55 +0100)]
Fix IDL for srvsvc_NetShareAdd().
Guenther
Günther Deschner [Fri, 7 Mar 2008 22:50:00 +0000 (23:50 +0100)]
Remove unused marshalling for SRV_NET_NAME_VALIDATE.
Guenther
Günther Deschner [Fri, 7 Mar 2008 22:47:40 +0000 (23:47 +0100)]
Remove unused marshalling for SRV_NET_SHARE_DEL.
Guenther
Günther Deschner [Fri, 7 Mar 2008 22:45:39 +0000 (23:45 +0100)]
Use rpccli_srvsvc_NetShareDel in net.
Guenther
Günther Deschner [Fri, 7 Mar 2008 22:40:00 +0000 (23:40 +0100)]
Use pidl for _srvsvc_NetNameValidate.
Guenther
Günther Deschner [Fri, 7 Mar 2008 22:39:34 +0000 (23:39 +0100)]
Add netnamevalidate command to rpcclient.
Guenther