1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00
Commit Graph

50126 Commits

Author SHA1 Message Date
Volker Lendecke
b3abd484db Fix a spinning smbd when printing
Without this, we end up adding more than one timed event. In the event handler
print_notify_event_send_messages() only one event will be deleted, all others
will fire indefinitely.
2008-12-30 14:14:06 +01:00
Volker Lendecke
ff50a88331 Print the vuid in BENCH-SESSSETUP 2008-12-30 11:26:10 +01:00
Volker Lendecke
f4559530d1 Second part of the bugfix for #5933
Incrementing the next vuid did not correctly overflow

Now we survive BENCH-SESSSETUP with -o 100000. Takes a while though :-)

Thanks a lot to Ofer Tal <otsmb@shmoop.org> for reporting #5933
2008-12-30 11:26:10 +01:00
Volker Lendecke
12f4d01f4a First part of bugfix for #5933
Ofer Tal <otsmb@shmoop.org> fully correctly noted that we're incrementing
num_validated_vuids twice per session setup, but decrement it only once.
Looking at sesssetup.c we always call register_initial_vuid() before
register_existing_vuid(), so there's no point in incrementing it in
register_existing_vuid().

Jeremy, please check!
2008-12-30 11:26:10 +01:00
Volker Lendecke
cf79461f4e Move a comment to its place 2008-12-30 11:26:10 +01:00
Volker Lendecke
fb54e711fb Simplify invalidate_vuid slightly
get_valid_user_struct_internal() checks for UID_FIELD_INVALID itself
2008-12-30 11:26:10 +01:00
Volker Lendecke
9957d5f3a0 Simplify is_partial_auth_vuid slightly 2008-12-30 11:26:10 +01:00
Volker Lendecke
12c9d7fa6f Simplify invalidate_all_vuids() slightly
invalidate_vuid takes care of removing the user_struct from validated_users
2008-12-30 11:26:10 +01:00
Stefan Metzmacher
332e8ac6c4 Fix the merged build
metze
2008-12-30 10:09:59 +01:00
Stefan Metzmacher
c2dc2e0b46 lib/tevent: fix standalone make distclean realdistclean
Bug report by Brad Hards <bradh@frogmouth.net>.

metze
2008-12-30 08:58:52 +01:00
Stefan Metzmacher
791459f61b pidl: don't generate invalid C code
When we don't know how to handle a type for the python bindings,
we should not generate invalid C code.

Jelmer: please fix do the full fix for this.

metze
2008-12-29 23:23:27 +01:00
Stefan Metzmacher
7516ba860c s3:pdb_tdb: store the next rid counter in passdb.tdb instead of winbind_idmap.tdb
This upgrades the TDBSAM_VERSION to 4 and SAMU_BUFFER_V4.

metze
2008-12-29 21:10:49 +01:00
Stefan Metzmacher
671469ae7e s3:passdb: add SAMU_BUFFER_V4 with no changes
The upgrade is required because of the followin TDBSAM_VERSION
upgrade.

metze
2008-12-29 21:10:49 +01:00
Stefan Metzmacher
0544734309 s3:passdb: make marshalling struct samu from and to a buffer more generic
This marshalling isn't specific to tdbsam and it's
ugly to have the related functions in two different files.

metze
2008-12-29 21:10:49 +01:00
Stefan Metzmacher
60b366369e s4:cluster: fix dependency to TDB_WRAP
metze
2008-12-29 20:55:02 +01:00
Stefan Metzmacher
183c379fe5 s4:lib/tevent: rename structs
list=""
list="$list event_context:tevent_context"
list="$list fd_event:tevent_fd"
list="$list timed_event:tevent_timer"

for s in $list; do
	o=`echo $s | cut -d ':' -f1`
	n=`echo $s | cut -d ':' -f2`
	r=`git grep "struct $o" |cut -d ':' -f1 |sort -u`
	files=`echo "$r" | grep -v source3 | grep -v nsswitch | grep -v packaging4`
	for f in $files; do
		cat $f | sed -e "s/struct $o/struct $n/g" > $f.tmp
		mv $f.tmp $f
	done
done

metze
2008-12-29 20:46:40 +01:00
Stefan Metzmacher
af29b82536 s4:pvfs_aio: use tevent
metze
2008-12-29 19:57:07 +01:00
Stefan Metzmacher
635a973be5 s4:sys_lease_linux: use tevent
metze
2008-12-29 19:57:00 +01:00
Volker Lendecke
3dfb0e9467 Fix SESSSETUP_BENCH torture test for long runtimes
deadtime hits without any files open. To enable long runtimes, open a file with
delete_on_close set.
2008-12-29 17:15:43 +01:00
Stefan Metzmacher
e36d64728f s4:cluster: remove old/broken ctdb code
We don't need a full copy of ctdb...
If we want to readd cluster support,
we should just use a ctdb client library.

metze
2008-12-29 14:46:09 +01:00
Stefan Metzmacher
aec16efaf2 s4: remove unused dbwrap code
If we readd this later, we should share the code with
samba3 and make it async/non-blocking.

metze
2008-12-29 14:46:08 +01:00
Stefan Metzmacher
a7036d2bd0 s4: Revert "r24284: change brlock_tdb.c to use the dbwrap API. This actually makes the"
This reverts commit 4792285282.

Conflicts:

	source4/ntvfs/common/brlock_tdb.c
	source4/ntvfs/common/config.mk
2008-12-29 14:46:06 +01:00
Volker Lendecke
86cb14db2b Add code to test write_data_iov a bit 2008-12-29 13:24:28 +01:00
Volker Lendecke
e4d28dbc04 Attempt to fix bug 5953: Make cli_send_smb_direct_writeX use writev
It seems there are SMB servers around which can't cope with the write header
being sent in a packet of its own. With writev we keep the advantage of direct
writes, giving the kernel the chance to coalesce the write calls.
2008-12-29 13:24:28 +01:00
Volker Lendecke
afd70855b7 Make write_data use write_data_iov 2008-12-29 13:24:28 +01:00
Volker Lendecke
82a152fcf9 Add write_data_iov 2008-12-29 13:24:27 +01:00
Volker Lendecke
6251b97e02 Add sys_writev 2008-12-29 13:24:27 +01:00
Kai Blin
102028ec72 s4 winbind: Copy SID to avoid "discard const" warning 2008-12-29 12:52:28 +01:00
Kai Blin
1180b6964f s4 winbind: Add support for WINBINDD_GETGRGID call 2008-12-29 12:52:27 +01:00
Kai Blin
855d2a927e s4 libnet: Add support for groupinfo by sid lookup 2008-12-29 12:52:27 +01:00
Kai Blin
ec5ef61134 s4 winbind: Fix typos in debug output 2008-12-29 12:52:27 +01:00
Kai Blin
6958fac28d wbinfo4: Add --gid-info option 2008-12-29 12:52:27 +01:00
Kai Blin
d3a0a6f2b3 wbinfo: Add --gid-info option. 2008-12-29 12:52:27 +01:00
Kai Blin
777350ee91 s4 winbind: Add implementation for WINBINDD_GETGRNAM 2008-12-29 12:52:27 +01:00
Kai Blin
dd8d4b6fd1 s4 winbind: Avoid a "discards const" compiler warning. 2008-12-29 12:52:26 +01:00
Kai Blin
181d4fd31a s4 libnet: Add group_name member to struct libnet_GroupInfo's out struct. 2008-12-29 12:52:26 +01:00
Stefan Metzmacher
f271469931 s4:kdc: pass down event_context explicit
metze
2008-12-29 09:46:38 +01:00
Stefan Metzmacher
37b6950961 s4:libnet_samdump_keytab: pass down event_context explicit
metze
2008-12-29 09:46:38 +01:00
Stefan Metzmacher
a255f9ce71 s3:dbwrap: fix dbwrap_store_uint32() to match dbwrap_store_int32()
All callers expect 0 an success and -1 on error.

metze
2008-12-29 09:05:15 +01:00
Stefan Metzmacher
b719595fd6 pyglue: fix the build with automatic dependecies
metze
2008-12-29 08:42:03 +01:00
Stefan Metzmacher
7bf5768a52 lib/tevent: rename event_* => tevent_* in the header file
We have compat macros to keep the callers happy.

metze
2008-12-29 08:42:00 +01:00
Steven Danneman
9a90e4cecb Add -D option to sharesec util to delete the entire security descriptor.
* also modified --usage descriptions to be more accurate
2008-12-28 17:45:41 -08:00
Steven Danneman
fd84ef938b Change error messages in sharesec util to go to stderr instead of stdout 2008-12-28 17:45:33 -08:00
Steven Danneman
9affa82ac2 Make sure share_info.tdb is open before attempting to delete an entry 2008-12-28 17:45:26 -08:00
Steven Danneman
8f84d42f72 Make sharesec utility part of the default binary install. 2008-12-28 17:45:21 -08:00
Steven Danneman
04959a00e4 Cleaned up whitespace issues in sharesec.c 2008-12-28 17:45:16 -08:00
Jelmer Vernooij
f308c2f9da Fix Samba 3 merged build - include tevent. 2008-12-28 04:12:46 +01:00
Kai Blin
ef1e9ed941 Fix some tevent includes, trying to fix the build 2008-12-26 14:11:10 +01:00
Kai Blin
daaa2c8231 Try to fix the build by fixing some typos in the vfs code 2008-12-26 14:10:38 +01:00
Jeremy Allison
5184baa959 Fix bug #5990 - strict allocate should be checked before ftruncate
reported by and based on a patch by Yasuma Takeda
<yasuma@osstech.co.jp>.
Jeremy.
2008-12-25 12:13:12 -08:00