Günther Deschner [Mon, 9 Jun 2008 09:01:09 +0000 (11:01 +0200)]
re-run make idl.
Guenther
Günther Deschner [Mon, 9 Jun 2008 09:00:23 +0000 (11:00 +0200)]
netapi: add NetUserEnum filter constants to IDL.
Guenther
Günther Deschner [Mon, 9 Jun 2008 08:59:23 +0000 (10:59 +0200)]
netapi: some IDL cosmetics.
Guenther
Günther Deschner [Tue, 17 Jun 2008 11:18:02 +0000 (13:18 +0200)]
netapi: add NetRemoteTOD example code.
Guenther
Günther Deschner [Fri, 6 Jun 2008 14:41:19 +0000 (16:41 +0200)]
netapi: implement NetRemoteTOD().
Guenther
Günther Deschner [Fri, 6 Jun 2008 14:44:35 +0000 (16:44 +0200)]
netapi: make NetRemoteTOD() headers public.
Guenther
Günther Deschner [Fri, 6 Jun 2008 11:50:39 +0000 (13:50 +0200)]
netapi: add NetRemoteTOD() skeleton.
Guenther
Günther Deschner [Fri, 6 Jun 2008 10:51:12 +0000 (12:51 +0200)]
re-run make idl.
Guenther
Günther Deschner [Fri, 6 Jun 2008 10:50:02 +0000 (12:50 +0200)]
netapi: add NetRemoteTOD() to IDL.
Guenther
Günther Deschner [Tue, 17 Jun 2008 17:49:58 +0000 (19:49 +0200)]
net_vampire: add error and result_message to samsync_context.
Guenther
Günther Deschner [Tue, 17 Jun 2008 16:02:03 +0000 (18:02 +0200)]
net_vampire: add domain_name to samsync_context.
Guenther
Günther Deschner [Tue, 17 Jun 2008 14:20:29 +0000 (16:20 +0200)]
libads: add ads_get_machine_kvno() to make ads_get_kvno() a bit more generic.
Guenther
Günther Deschner [Tue, 17 Jun 2008 15:58:38 +0000 (17:58 +0200)]
clikrb5: remove unrequired create_kerberos_key_from_string_direct() prototype.
Guenther
Günther Deschner [Tue, 17 Jun 2008 14:18:50 +0000 (16:18 +0200)]
dsgetdcname: allow to use NULL mem_ctx.
Guenther
Günther Deschner [Tue, 17 Jun 2008 14:17:03 +0000 (16:17 +0200)]
libads: fix logic error in ads_get_kvno().
Guenther
Volker Lendecke [Tue, 17 Jun 2008 14:06:42 +0000 (16:06 +0200)]
Fix a memleak in svcctl_init_keys()
Volker Lendecke [Tue, 17 Jun 2008 13:17:22 +0000 (15:17 +0200)]
Fix a segfault in wbcLookupRids
The done: part could access uninitialized memory if intermediate
BAIL_ON_WBC_ERROR fire.
Jerry, please check!
Thanks,
Volker
(cherry picked from commit
31f4c33dcc744e81be54389756378e25aa2bb75e)
Volker Lendecke [Tue, 17 Jun 2008 12:53:07 +0000 (14:53 +0200)]
Fix a segfault in wbcLookupSid
If the BAIL_ON_WBC_ERROR directly after wbcRequestResponse kicks in, *domain
and *name have not been initialized yet. So the cleanup routine in the done:
part of the routine (which did not check for domain!=NULL etc) would access
uninitialized memory.
Jerry, please check!
Thanks,
Volker
(cherry picked from commit
3d7e0cc40b1992f4555807acec4f00450e30e2de)
Andrew Bartlett [Tue, 17 Jun 2008 12:46:34 +0000 (22:46 +1000)]
Merge branch 'v3-3-test' of ssh://git.samba.org/data/git/samba into 3-3-abartlet
Andrew Bartlett [Tue, 17 Jun 2008 12:45:29 +0000 (22:45 +1000)]
Without stdlib.h we don't get a prototype for free().
This test fails if GCC emits any warnings (presumably to detect the
function propertly), but unless we include this message then free()
fail. Why we need to call free in a configure test is probably
something to blame on valgrind...
Andrew Bartlett
Volker Lendecke [Tue, 17 Jun 2008 12:31:07 +0000 (14:31 +0200)]
Replace a very unusual variable declaration by a more conventional one
Karolin Seeger [Tue, 17 Jun 2008 11:18:17 +0000 (13:18 +0200)]
man pages: Move 'smbsh' man page to the examples directory.
smbsh.c is located in the examples directory. It does not make sense
to install a man page without installing the tool itself.
This fixes bug #4724.
Karolin
Volker Lendecke [Tue, 17 Jun 2008 11:00:13 +0000 (13:00 +0200)]
Fix a memleak in wbcAuthenticateUserEx()
(cherry picked from commit
72b381689af9cae83ab08532cffd0188f2da4807)
Volker Lendecke [Tue, 17 Jun 2008 10:21:03 +0000 (12:21 +0200)]
Revert "Fix a memleak caused by a crappy get_sorted_dc_list() API"
This reverts commit
2ea03a1e95a30e321e390bef9408a1215711de07.
Volker Lendecke [Tue, 17 Jun 2008 10:20:54 +0000 (12:20 +0200)]
Revert "Fix a memleak in ads_find_dc() in case get_sorted_dc_list() fails"
This reverts commit
df8d089bc63c2a52cbdf3504cded8df620a59902.
Günther Deschner [Tue, 17 Jun 2008 08:31:44 +0000 (10:31 +0200)]
netapi: Fix Bug #5545 (libnetapi_init without $USER)
Based on patch from Erik van Pienbroek.
Guenther
Günther Deschner [Tue, 17 Jun 2008 08:38:07 +0000 (10:38 +0200)]
net_vampire: fix samsync_process_database().
Turns out the password hashes are not rid encrypted in the samsync reply.
Guenther
Günther Deschner [Tue, 17 Jun 2008 08:36:53 +0000 (10:36 +0200)]
net_vampire: fix build warning.
Guenther
Günther Deschner [Mon, 16 Jun 2008 11:49:05 +0000 (13:49 +0200)]
net_vampire: use generic output filename and use correct argv element.
Guenther
Günther Deschner [Mon, 16 Jun 2008 10:37:57 +0000 (12:37 +0200)]
net_vampire: move ldif code out of net_rpc_samsync.c
Guenther
Günther Deschner [Mon, 16 Jun 2008 10:09:08 +0000 (12:09 +0200)]
net_vampire: move some samsync functions to libnet.
Guenther
Volker Lendecke [Tue, 17 Jun 2008 08:46:20 +0000 (10:46 +0200)]
Add some debug to notify
Karolin Seeger [Tue, 17 Jun 2008 08:36:51 +0000 (10:36 +0200)]
Remove references to SVN.
Karolin
Michael Adam [Mon, 16 Jun 2008 21:50:17 +0000 (23:50 +0200)]
Remove reference to current_user from modules/nfs4_acls.c .
Michael
Karolin Seeger [Tue, 17 Jun 2008 08:30:19 +0000 (10:30 +0200)]
idmap: Fix typos in comments.
Karolin
Karolin Seeger [Tue, 17 Jun 2008 07:44:21 +0000 (09:44 +0200)]
Fix typo.
arguements -> arguments
Karolin
Karolin Seeger [Mon, 16 Jun 2008 13:21:28 +0000 (15:21 +0200)]
winbind cache: Don't create SN cache entries during name-to-sid queries.
Clients can request name-to-sid queries for different combinations of
upper and lower case names. We don't want to create the reverse caching
entries for each combination used.
This avoids inconsistent answers on sid-to-name queries.
Please review!
Karolin
Volker Lendecke [Mon, 16 Jun 2008 11:27:16 +0000 (13:27 +0200)]
Fix bug 5500 -- thanks to mathion at thorrovydeti.com for reporting
(cherry picked from commit
996c3ce6f0dbe79b0679ae30afd873c24fe5b1eb)
Volker Lendecke [Sun, 15 Jun 2008 16:43:37 +0000 (18:43 +0200)]
Add forgotten protoypes
Volker Lendecke [Sun, 15 Jun 2008 11:41:16 +0000 (13:41 +0200)]
Remove the current_user references from open.c
current_user_info was "only" used in a debug msg, and current_user.ut.uid is
also available via conn->server_info
Volker Lendecke [Sun, 15 Jun 2008 11:37:53 +0000 (13:37 +0200)]
Remove the current_user reference from fake_file.c
The current vuid is not only available there, it is also in the current
smb_request structure.
Volker Lendecke [Sun, 15 Jun 2008 09:40:33 +0000 (11:40 +0200)]
Remove unused "extern struct current_user" from dir.c
Volker Lendecke [Sun, 15 Jun 2008 09:39:31 +0000 (11:39 +0200)]
Remove the reference to current_user from file_access.c
conn holds the current user info
Volker Lendecke [Sat, 14 Jun 2008 22:22:47 +0000 (00:22 +0200)]
Fix an uninitialized variable found by the IBM checker
BAIL_ON_PTR_ERROR jumps to done: which will access extra_data before it's
initialized.
Stefan, please check!
Volker
(cherry picked from commit
b59636f78d351ed6d52c4a9fdccdb7850388526c)
Volker Lendecke [Sat, 14 Jun 2008 22:14:27 +0000 (00:14 +0200)]
Fix group parsing in libwbclient's copy_group_entry()
This (also) fixes a flaw pointed out by the IBM checker. When verifying that I
found out that the parsing was not working as I would have expected it to.
Jerry, please check!
(cherry picked from commit
c2c7790155ab02e1e351caf2bed192ce72913663)
Volker Lendecke [Sat, 14 Jun 2008 14:59:07 +0000 (16:59 +0200)]
Move connection-specific vuid cache clear to uid.c
Volker Lendecke [Sat, 14 Jun 2008 14:55:02 +0000 (16:55 +0200)]
Slight refactoring for check_user_ok: It only needs vuid and server_info
Volker Lendecke [Sat, 14 Jun 2008 14:46:25 +0000 (16:46 +0200)]
Group the access checks together in check_user_ok()
Volker Lendecke [Sat, 14 Jun 2008 14:43:03 +0000 (16:43 +0200)]
Consistently use snum in check_user_ok
Most already used it, these two still used SNUM(conn), where the only caller of
this routine (change_to_user) had set snum = SNUM(conn).
Volker Lendecke [Sat, 14 Jun 2008 14:35:22 +0000 (16:35 +0200)]
Compare the pointer "vuser" to NULL, not 0
Volker Lendecke [Sat, 14 Jun 2008 08:59:11 +0000 (10:59 +0200)]
Use the correct cups-devel test for HAVE_IPRINT also
Volker Lendecke [Sat, 14 Jun 2008 08:31:11 +0000 (10:31 +0200)]
Correctly check for presence of cups-devel
On SuSE at least cups-config belongs to cups-libs which does not contain the
headers which are in cups-devel.
Günther Deschner [Fri, 13 Jun 2008 20:33:46 +0000 (22:33 +0200)]
net_vampire: rename process_database to samsync_process_database.
Guenther
Günther Deschner [Fri, 13 Jun 2008 19:57:32 +0000 (21:57 +0200)]
net_vampire: fix ldif_init_context().
Guenther
Günther Deschner [Fri, 13 Jun 2008 19:46:59 +0000 (21:46 +0200)]
net_vampire: split out rpc_vampire_ldif().
Guenther
Günther Deschner [Fri, 13 Jun 2008 19:25:53 +0000 (21:25 +0200)]
net_vampire: add samsync_init_context().
Guenther
Günther Deschner [Fri, 13 Jun 2008 19:11:55 +0000 (21:11 +0200)]
net_vampire: add samsync_debug_str().
Guenther
Günther Deschner [Thu, 12 Jun 2008 10:35:46 +0000 (12:35 +0200)]
net_vampire: restructure internal code more.
Guenther
Günther Deschner [Wed, 11 Jun 2008 00:29:58 +0000 (02:29 +0200)]
net_vampire: start using talloc for the ldif vampire code.
Guenther
Günther Deschner [Tue, 10 Jun 2008 23:46:58 +0000 (01:46 +0200)]
net_vampire: join dump and process function into one callback.
Guenther
Günther Deschner [Tue, 10 Jun 2008 23:29:36 +0000 (01:29 +0200)]
net_vampire: let fetch_database and fetch_database_to_ldif use sid pointers.
Guenther
Günther Deschner [Tue, 10 Jun 2008 23:23:43 +0000 (01:23 +0200)]
net_vampire: let dump_database() return NTSTATUS.
Guenther
Volker Lendecke [Fri, 13 Jun 2008 14:05:31 +0000 (16:05 +0200)]
Fix a handle leak for error returns in ldb_try_load_dso
Coverity ID 464
(cherry picked from commit
496d44d2f21661c85bf07e8eb7cae6298fefd900)
Volker Lendecke [Fri, 13 Jun 2008 13:30:08 +0000 (15:30 +0200)]
Fix a crash in _winreg_QueryValue
Coverity ID 474, value_length and type are both unique, not ref pointers and
can thus be NULL.
Karolin, please merge this to -stable.
Thanks,
Volker
(cherry picked from commit
999533c0ccced59141d8baff5bc248d63e2a966f)
Günther Deschner [Fri, 13 Jun 2008 10:30:36 +0000 (12:30 +0200)]
samsync: add prototype for samsync_fix_delta_array().
Guenther
Günther Deschner [Fri, 13 Jun 2008 10:20:01 +0000 (12:20 +0200)]
net: Fix bug #5542 (samsync contains empty passwords).
Guenther
(cherry picked from commit
1a22e975dd1255f3557c1cd873d877aa35822afc)
Günther Deschner [Fri, 13 Jun 2008 09:57:09 +0000 (11:57 +0200)]
samsync: add samsync_fix_delta_array()
This code is vastly based on samba4 code.
Guenther
(cherry picked from commit
5b68be96996a710988b1fd1c176cd5dff0f2c6af)
Kai Blin [Thu, 12 Jun 2008 09:50:09 +0000 (11:50 +0200)]
net: Fix net_ads.c build for the HAVE_ADS == 0 case.
Thanks to Karolin for catching this one.
Volker Lendecke [Thu, 12 Jun 2008 10:36:15 +0000 (12:36 +0200)]
AIX build fixes from William Jojo -- thanks
(cherry picked from commit
cb91a47576e820390bc62195702aaae93a2feba6)
Volker Lendecke [Thu, 12 Jun 2008 10:35:28 +0000 (12:35 +0200)]
Add -brtl to the AIX linker flags
Thanks to William Jojo
(cherry picked from commit
74b195b54416d9e3eb46079a71eed31a15c7293a)
Karolin Seeger [Thu, 12 Jun 2008 08:55:55 +0000 (10:55 +0200)]
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
Karolin Seeger [Thu, 12 Jun 2008 07:34:15 +0000 (09:34 +0200)]
man pages: Fix indentation in smb.conf section about 'map readonly'.
Christoph Zauner [Wed, 11 Jun 2008 13:15:22 +0000 (15:15 +0200)]
man pages: Added improvements.
Karolin Seeger [Thu, 12 Jun 2008 07:26:32 +0000 (09:26 +0200)]
man pages: Fix typo in smb.conf section about the 'deleteprinter command'.
Karolin
Christoph Zauner [Wed, 11 Jun 2008 13:17:21 +0000 (15:17 +0200)]
man pages: Fix typos.
Christoph Zauner [Wed, 11 Jun 2008 12:49:30 +0000 (14:49 +0200)]
Samba3-HOWTO: Fix typos.
Christoph Zauner [Wed, 11 Jun 2008 12:05:47 +0000 (14:05 +0200)]
Fix typos.
Volker Lendecke [Wed, 11 Jun 2008 16:56:20 +0000 (18:56 +0200)]
Fix max_fd calculation in event_loop_once
For some bugs I really wonder how they can go undetected for so long.
Fix a bug reported by Mathias Dietz. No samba bugzilla entry, but still 100%
needed for 3-2-stable.
Volker
(cherry picked from commit
82c994dabc47bb4755c883a1f3651bb5d65cf2c5)
Günther Deschner [Wed, 11 Jun 2008 08:44:47 +0000 (10:44 +0200)]
rpc_client: fix some valgrind warnings.
Guenther
Günther Deschner [Tue, 10 Jun 2008 18:50:53 +0000 (20:50 +0200)]
re-run make idl.
Guenther
Günther Deschner [Tue, 10 Jun 2008 18:50:25 +0000 (20:50 +0200)]
idl: fix drsuapi_DsGetNCChanges.
Guenther
Günther Deschner [Tue, 10 Jun 2008 22:56:44 +0000 (00:56 +0200)]
net: remove some dead code.
Guenther
Günther Deschner [Wed, 11 Jun 2008 07:52:56 +0000 (09:52 +0200)]
pam_winbind: Update cached creds during password change.
Fix is from Bo Yang @ Novell.
Thanks!
Günther Deschner [Tue, 10 Jun 2008 19:34:23 +0000 (21:34 +0200)]
rpcclient: add more useful comments what sign/seal commands are doing.
Guenther
Volker Lendecke [Tue, 10 Jun 2008 14:14:30 +0000 (16:14 +0200)]
Correctly find a [u]int32_t replacement
(cherry picked from commit
346375cda557a675f8f882ca2ae8edffec725a72)
Volker Lendecke [Tue, 10 Jun 2008 12:15:01 +0000 (14:15 +0200)]
Fix some scary FC9 warnings
(cherry picked from commit
6b0fed09ea34409d1c61bae9121bdb38d4c68d62)
Karolin Seeger [Tue, 10 Jun 2008 13:30:19 +0000 (15:30 +0200)]
man pages: Don't refer to numbered chapter of the HOWTO collection.
This fixes bug #5527.
Thanks to the Debian package maintainers for reporting!
Karolin
Stefan Metzmacher [Tue, 10 Jun 2008 06:33:24 +0000 (08:33 +0200)]
socket_wrapper: truncate packets to a 1500 byte payload
Truncate sendto(), recvfrom(), send() and recv() to 1500 bytes
so that're getting a correctly formatted pcap file and the result
look more like real network traffic.
metze
(cherry picked from commit
5b01206f1bb2e62c08bda34b45904ec4f83ac5de)
Stefan Metzmacher [Tue, 10 Jun 2008 07:21:05 +0000 (09:21 +0200)]
socket_wrapper: sync missing stuff from v4-0-test
metze
Jelmer Vernooij [Tue, 19 Feb 2008 22:53:04 +0000 (23:53 +0100)]
Factor out IP marshalling into separate function.
(cherry picked from commit
2548c2a1e7dab8abc00f8f49374a08cc0b427552)
Stefan Metzmacher [Thu, 1 Nov 2007 12:10:59 +0000 (13:10 +0100)]
r25783: socket_wrapper: don't include "includes.h"
metze
(cherry picked from commit
47f865165e772540334dcbcf80cfc1999b0132fa)
Stefan Metzmacher [Mon, 11 Jun 2007 14:41:14 +0000 (14:41 +0000)]
r23420: try to make the IBM checker happy
metze
(cherry picked from commit
96f1a0dfaa18a432fca4b5432d929d8daed0abb1)
Stefan Metzmacher [Tue, 10 Jun 2008 07:00:37 +0000 (09:00 +0200)]
r22236: Update to Heimdal's socket_wrapper, which supports IPv6.
To make this pass, I needed to add support for 6 and 17 as valid
protocol values to socket().
Andrew Bartlett
(partly cherry picked from commit
2254e61a1e5b29a64c5a24aac029ace193057e24)
metze
Jelmer Vernooij [Tue, 6 Mar 2007 23:03:34 +0000 (23:03 +0000)]
r21729: Some more tests
(cherry picked from commit
d2baa8218cf504d6631d610f9fd393ad8c61574c)
Stefan Metzmacher [Tue, 10 Jun 2008 06:53:34 +0000 (08:53 +0200)]
r21671: Add initial simple tests for socket wrapper
(partly cherry picked from commit
872e2ad541478597191ca9e31872d5c8e2bbb832)
metze
Love Hörnquist Åstrand [Thu, 19 Oct 2006 04:56:21 +0000 (04:56 +0000)]
r19409: Pull in <sys/time.h> for struct timeval for non samba build (don't
depend on namespace pollution)
(cherry picked from commit
5052d2d10693e67f1b7c6c71277c8d1bc9c8b612)
Love Hörnquist Åstrand [Tue, 17 Oct 2006 09:35:45 +0000 (09:35 +0000)]
r19367: Solaris needs <sys/filio.h> for FIONREAD.
(cherry picked from commit
e2866ce78851a84c937408c0781fcc1e7107f663)
Karolin Seeger [Tue, 10 Jun 2008 08:54:21 +0000 (10:54 +0200)]
man pages: Fix broken smb.conf section about the 'get quota command'.
This fixes bug #5422.
Thanks to the Debian package maintainers for reporting!
Karolin
Kai Blin [Sat, 7 Jun 2008 00:25:08 +0000 (02:25 +0200)]
net: Rename functable3 to functable, get rid of old functables
Kai Blin [Sat, 7 Jun 2008 00:13:52 +0000 (02:13 +0200)]
net: Make "net sam" use functable3