1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-07 17:18:11 +03:00
Commit Graph

50506 Commits

Author SHA1 Message Date
Tim Prouty
efc487b80a librpc: Re-run make idl_full 2009-01-15 14:53:10 -08:00
Tim Prouty
c59ec17ddd librpc: Change a uint16 to use the max property instead of range
This fixes a "comparison is always false due to limited range of data
type" warning
2009-01-15 14:52:35 -08:00
Tim Prouty
7c861cac53 pidl: Add max property to be used instead of range for unsigned types.
Compilers complain about ranges starting at 0 for unsigned types,
since an unsigned type is never less than 0.  The max property
implicitly makes 0 the lower bound when used with unsigned types.
2009-01-15 14:52:35 -08:00
Stefan Metzmacher
3913d0a205 packaging(RHEL-CTDB): export CC - really use ccache...
metze

Signed-off-by: Michael Adam <obnox@samba.org>
2009-01-15 22:58:25 +01:00
Michael Adam
39ec8791f8 s3: make better use of ccache by not including version.h in every C-file.
version.h changes rather frequently. Since it is included via includes.h,
this means each C file will be a cache miss. This applies to the following
situations:

* When building a new package with a new Samba version

* building in a git branch after calling mkversion.sh
  after a new commit (i.e. virtually always)

This patch improves the situation in the following way:

* remove inlude "version.h" from includes.h

* Use samba_version_string() instead of SAMBA_VERSION_STRING
  in files that use no other macro from version.h instead of
  SAMBA_VERSION_STRING.

* explicitly include "version.h" in those files that use more
  macros from "version.h" than just SAMBA_VERSION_STRING.

Michael
2009-01-15 22:56:01 +01:00
Jelmer Vernooij
da656c2e87 Use AS_HELP_STRING() in a couple more places. 2009-01-15 21:22:34 +01:00
Jelmer Vernooij
0cbce777a3 Fix indentation for some configure options. 2009-01-15 21:17:56 +01:00
Jelmer Vernooij
2d85e23e06 python/param: Cope with lp configfile being NULL. 2009-01-15 21:16:31 +01:00
Jeremy Allison
354a2e03ab Fix bug #6040 - Calling Samba print server with an aliased DNS-name fails.
Jeremy.
2009-01-15 10:29:34 -08:00
Kai Blin
a0abb933d2 s4-winbind: Add support for the WINBINDD_LIST_GROUPS command. 2009-01-15 10:35:00 +01:00
Kai Blin
ec93fd6b0c s4 torture: Add another wbinfo test and fix a typo in another one 2009-01-15 10:35:00 +01:00
Jeremy Allison
907f085296 Remove smbclient globals that bled into clidfs.c. Now we only have
the connections list and authentication structures to worry about.
Jeremy
2009-01-14 16:08:19 -08:00
Jeremy Allison
592ee76341 Fix build of netapi.
Jeremy.
2009-01-14 14:33:46 -08:00
Jeremy Allison
2c0a802cf8 Remove another global from clidfs that is only used in client.c.
Jeremy.
2009-01-14 14:26:56 -08:00
Jeremy Allison
b3e6247a9e Fix bug #6035 - Possible race between fcntl F_SETLKW and alarm delivery.
Jeremy.
2009-01-14 13:17:38 -08:00
Bo Yang
e3ef19b9b9 Fix bug in get_dc_name_via_netlogon(), null pointer refrence. 2009-01-14 11:47:45 -08:00
Jeremy Allison
9aa385a090 Clean up comments a little.
Jeremy.
2009-01-14 11:12:52 -08:00
Bo Yang
54325f7ed5 Don't send message to any other child in child process.
Signed-off-by: Bo Yang <boyang@novell.com>
2009-01-14 10:42:02 -08:00
Volker Lendecke
8c983af56d Make rpc_read look like a real read call
It doesn't really need to know about prs_structs
2009-01-14 17:08:40 +01:00
Volker Lendecke
e1aeb486e8 Make rpc_read() match the control flow normally used in Samba
Replace do { .. } while () with a while () { .. }
2009-01-14 17:08:40 +01:00
Volker Lendecke
11e3388083 Simplify rpc_read a bit
rpc_read always reads the whole bytes it was asked to read. So it is not really
necessary for it to update the current_pdu_offset, for clarity this can better
be done in the caller.
2009-01-14 17:08:39 +01:00
Volker Lendecke
15dd11b31e Remove an unnecessary size check
rpc_read is only ever called with at most fraglen-RPC_HEADER_SIZE length
2009-01-14 17:08:39 +01:00
Volker Lendecke
274f575b24 Check the fragment size the server has sent us 2009-01-14 17:08:39 +01:00
Volker Lendecke
583d7913c8 Slightly simplify rpc_read: It should not do the resize 2009-01-14 17:08:39 +01:00
Volker Lendecke
87f9f0b01a Always read with offset 0 from a named pipe 2009-01-14 17:08:39 +01:00
Günther Deschner
990491d187 s3-eventlog: fix ps struct removal leftover.
Guenther
2009-01-14 10:53:04 +01:00
Günther Deschner
8721ad5f60 s3: re-run make samba3-idl.
Guenther
2009-01-14 10:19:31 +01:00
Günther Deschner
76f137b908 eventlog: more eventlog record idl fixes.
- treat eventlogEventTypes as an enum.
- do not align the full eventlog entry.
- set range on number of strings according to docs.
- make a little more obvious what the reserved field stands for.

Guenther
2009-01-14 10:18:51 +01:00
Günther Deschner
a950242143 s3-rpcclient: always parse the full eventlog entry.
Guenther
2009-01-14 10:18:14 +01:00
Günther Deschner
df8b724819 s3-eventlog: use main talloc context in eventlog read call.
Guenther
2009-01-14 10:18:14 +01:00
Günther Deschner
af9f7a39f0 s4-smbtorture: also test for invalid flags in eventlog test_ReadEventLog.
Guenther
2009-01-14 10:18:13 +01:00
Günther Deschner
4994956ad0 s4-smbtorture: pure cosmetic cleanup of eventlog test.
Guenther
2009-01-14 10:18:13 +01:00
Kai Blin
9874c9eff7 s4 torture: Fix the wbinfo blackbox tests 2009-01-14 08:25:52 +01:00
Andrew Bartlett
96b1b8b94a Fix error message in mkrelease to refer to source4, not source 2009-01-14 15:06:39 +11:00
Torgeir Lerkerod
e1ab0903a9 Fixed problemed showed on a number of systems on the buildfarm.
Problem shows up as perl error related to config.pm in reality
this was related to the ECHO_C variable. Added test to skip that
variable as no perl module is using it.

Torgeir

Signed-off-by: Torgeir Lerkerod <Torgeir.Lerkerod@gmail.com>
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2009-01-14 15:06:39 +11:00
Jeremy Allison
58b680446f From boyang - ensure we never "return" from a forked child, always _exit().
Jeremy.
2009-01-13 15:42:56 -08:00
Jeremy Allison
da2dd1406f Only call sendfile_short_read() if we need it.
Jeremy.
2009-01-13 15:36:09 -08:00
Jeremy Allison
0f450623c5 Fix bug noticed by Volker - if sendfile returns zero then
we might have to handle a short send by filling with zeros.
Jeremy.
2009-01-13 13:02:44 -08:00
Jeremy Allison
83c3b28096 Fix bug #6019 File corruption in Clustered SMB/NFS environment managed via CTDB
Jeremy.
2009-01-13 11:19:11 -08:00
Stefan Metzmacher
4f079fe539 pidl: remove references to EJS and SWIG code
This fixes 'make install'.

metze
2009-01-13 13:01:36 +01:00
Steven Danneman
4a578ec50b Covert several persistant tdb files to use state_path() instead of lock_path() 2009-01-12 17:46:15 -08:00
Steven Danneman
7b02e05eb6 Audit usage of get_dyn_STATEDIR() and replace with state_path()
The state directory is now run-time configurable through loadparm, so all
references to it should be done through state_path() or lp_statedir().
2009-01-12 17:46:14 -08:00
Jeremy Allison
f497a79f28 Deprecate the "share modes" parameter to address bug #6024, swat disagrees with smbstatus as to share mode with share modes = No set in samba.
Jeremy.
2009-01-12 16:25:03 -08:00
Günther Deschner
03f3c65ce4 s3: re-run make samba3-idl.
Guenther
2009-01-12 18:04:04 +01:00
Günther Deschner
4561721cc3 s3-rpcclient: some cleanup for eventlog client.
Guenther
2009-01-12 18:04:03 +01:00
Günther Deschner
6b80e9be64 eventlog: some fixes for eventlog_Record struct.
* make reserved field always have value 0x654c664C ("eLfL").
* add missing sid entry
* add padding and 2nd size counter.
* use time_t in eventlog_Record.

Guenther
2009-01-12 18:02:46 +01:00
Günther Deschner
9df76c4efb eventlog: make out pointer a ref pointer in eventlog_GetNumRecords.
Guenther
2009-01-12 17:59:29 +01:00
Stefan Metzmacher
7d9fd64f38 s3:libsmb: handle the smb signing states the same in the krb5 and ntlmssp cases
SMB signing works the same regardless of the used auth mech.

We need to start with the temp signing ("BSRSPYL ")
and the session setup response with NT_STATUS_OK
is the first signed packet.

Now we set the krb5 session key if we got the NT_STATUS_OK
from the server and then recheck the packet.

All this is needed to make the fallback from krb5 to
ntlmssp possible. This commit also resets the cli->vuid
value to 0, if the krb5 auth didn't succeed. Otherwise
the server handles NTLMSSP packets as krb5 packets.

The restructuring of the SMB signing code is needed to
make sure the krb5 code only starts the signing engine
on success. Otherwise the NTLMSSP fallback could not initialize
the signing engine (again).

metze
2009-01-12 13:22:40 +01:00
Michael Adam
6f53a487b4 nss_wrapper.pl: fix "Use of uninitialized value $i in array element" messages
I just saw this in "make test" after "SMBD OUTPUT:"...

Michael
2009-01-12 13:04:40 +01:00
Steven Danneman
19a05bf2f4 Make STATEDIR and CACHEDIR configurable through ./configure and loadparm.c
If they are not explicitely set in either place both will default to LOCKDIR.

Signed-off-by: Michael Adam <obnox@samba.org>
2009-01-12 12:16:03 +01:00