1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-01 05:47:28 +03:00

51743 Commits

Author SHA1 Message Date
Günther Deschner
2cf4290116 spoolss: fix idl for spoolss_AddPrinterDriver and spoolss_AddPrinterDriverEx.
Guenther
2009-02-18 20:19:05 +01:00
Günther Deschner
890226c112 spoolss: add spoolss_AddDriverInfo8 (used by vista for adding drivers).
Guenther
2009-02-18 20:18:56 +01:00
Günther Deschner
1cd34565d0 s3-spoolss: remove old spoolss_XcvData.
Guenther
2009-02-18 16:12:27 +01:00
Günther Deschner
7312342062 s3-spoolss: use pidl for _spoolss_XcvData.
Guenther
2009-02-18 16:11:01 +01:00
Günther Deschner
e9bfc0ab51 s3: re-run make samba3-idl.
Guenther
2009-02-18 16:10:40 +01:00
Günther Deschner
6c91a83e94 spoolss: fix spoolss_MonitorUi struct.
Guenther
2009-02-18 16:10:26 +01:00
Günther Deschner
6a53ff1ea8 s3: re-run make samba3-idl.
Guenther
2009-02-18 14:47:33 +01:00
Günther Deschner
2e59cb50cc spoolss: add spoolss_MonitorUi struct.
Guenther
2009-02-18 14:46:19 +01:00
Günther Deschner
719221168f spoolss: add spoolss_PortData1.
Guenther
2009-02-18 14:46:05 +01:00
Stefan Metzmacher
975a881d54 tevent: add tevent_wakeup_send/recv()
This can be used as tevent_req based timer event.

metze
2009-02-18 10:31:36 +01:00
Stefan Metzmacher
7f6618a3de tevent: rename tevent_req_set_timeout() => tevent_req_set_endtime()
This makes more clear what the function does.

metze
2009-02-18 10:31:35 +01:00
Stefan Metzmacher
3f147cb7a3 s4:netlogon: don't mix in and out negotiate_flags in dcesrv_netr_ServerAuthenticate()
metze
2009-02-18 10:22:30 +01:00
Andrew Bartlett
48ba640100 Merge branch 'master' of ssh://git.samba.org/data/git/samba into master-devel 2009-02-18 17:47:43 +11:00
Andrew Bartlett
6b8b7665bd paper over failure to reprovision with os.unlink()
We need to figure out why the deletes on the database fail, but for
now doing an unlink of templates_tdb isn't too bad.

Andrew Bartlett
2009-02-18 17:44:07 +11:00
Andrew Tridgell
bb7e6f0f51 Worked around a problem with select/poll/epoll and gnutls
Our packet layer relies on the event system reliably telling us when a
packet is available. When we are using a socket layer like TLS then
things get a bit trickier, as there may be bytes in the encryption
buffer which could be read even if there are no bytes at the socket
level. The GNUTLS library is supposed to prevent this happening by
always leaving some data at the socket level when there is data to be
processed in its buffers, but it seems that this is not always
reliable.

To work around this I have added a new packet option
packet_set_unreliable_select() which tells the packet layer to not
assume that the socket layer has a reliable select, and to instead
keep trying to read from the socket until it gets back no data. This
option is set for the ldap client and server when TLS is negotiated.

This seems to fix the problems with the ldaps tests.
2009-02-18 17:37:45 +11:00
Andrew Tridgell
b1ff79dbb2 fixed some of the TLS problems
This fixes two things in the TLS support for Samba4. The first is to
use a somewhat more correct hostname instead of 'Samba' when
generating the test certificates. That allows TLS test clients (such
as gnutls-cli) to connect to Samba4 using auto-generated certificates.

The second fix is to add a call to gcry_control() to tell gcrypt to
use /dev/urandom instead of /dev/random (on systems that support
that). That means that test certificate generation is now very fast,
which was previously an impediment to putting the TLS tests on the
build farm.
2009-02-18 14:46:57 +11:00
Jeremy Allison
0281166bb9 Don't miss an absolute pathname as a kerberos keytab path. From Glenn Machin <gmachin@sandia.gov>.
Jeremy.
2009-02-17 15:54:33 -08:00
Jeremy Allison
fab0baeed1 Fix bug #6117 - Samba 3.3.0: pdbedit -a core dumps.
Jeremy.
2009-02-17 13:43:58 -08:00
Jeremy Allison
3737b758d6 Fix warning about missmatch of uint32_t and size_t.
Jeremy.
2009-02-17 13:18:10 -08:00
Michael Adam
b1b9be46ab docs: extend the example in the idmp_rid manpage to configure 2 domains with rid
Michael
2009-02-17 18:21:54 +01:00
Michael Adam
74940606f7 docs: extend the idmap_rid manpage
Michael
2009-02-17 18:21:54 +01:00
Michael Adam
2feaaa885a s3:winbindd: make do_async_domain() static.
Michael
2009-02-17 18:21:53 +01:00
Michael Adam
08bef5bba0 s3:build: improve the check for a working krb5-config.
Not only check if it exists and is executable, but also
check whether it accepts the command line "krb5-config --libs gssapi".

Chris Hoogendyk <hoogendyk@bio.umass.edu> has reported configure
failing on a Solaris machine due to krb5-config raising errors on
these options.

Michael
2009-02-17 18:21:52 +01:00
Günther Deschner
64cec99843 s4-smbtorture: fix spoolss test after count out,ref idl changes.
Guenther
2009-02-17 16:15:52 +01:00
Günther Deschner
9877f3d574 s4-spoolss: fix spoolss server after out,ref count pointer changes.
Guenther
2009-02-17 16:15:52 +01:00
Günther Deschner
742270eb2d spoolss: fix spoolss helper for out ref count pointer.
Guenther
2009-02-17 16:15:52 +01:00
Günther Deschner
41234af8c4 s3: re-run make samba3-idl.
Guenther
2009-02-17 16:15:51 +01:00
Günther Deschner
055a047e76 spoolss: in enum-calls make [out] count a ref pointer.
Guenther
2009-02-17 16:14:13 +01:00
Günther Deschner
df17774412 s3-spoolss: remove old spoolss_ResetPrinter.
Guenther
2009-02-17 10:52:32 +01:00
Günther Deschner
ce71a7c9a7 s3-spoolss: use pidl for _spoolss_ResetPrinter.
Guenther
2009-02-17 10:52:31 +01:00
Günther Deschner
c1f8ee5cba s3: re-run make samba3-idl.
Guenther
2009-02-17 10:52:30 +01:00
Günther Deschner
4b353c7138 spoolss: fill in spoolss_ResetPrinter.
Guenther
2009-02-17 10:51:16 +01:00
Günther Deschner
dc7f04aac7 s3-netapi: fix Coverity #881 and #882.
Guenther
2009-02-17 10:21:22 +01:00
Volker Lendecke
ea192f08e6 Fix an invalid typecasting
entry->num_of_strings is a uint16_t. Casting it with

(int *)&entry->num_of_strings

is wrong, because it gives add_string_to_array the illusion that the object
"num" points to is an int, which it is not.

In case we are running on a machine where "int" is 32 or 64 bits long, what
happens with that cast? "add_string_to_array" interprets the byte field that
starts where "num_of_strings" starts as an int. Under very particular
circumstances this might work in a limited number of cases: When the byte order
of an int is such that the lower order bits of the int are stored first, the
subsequent bytes which do not belong to the uint16_t anymore happen to be 0 and
the result of the increment still fits into the first 2 bytes of that int, i.e.
the result is < 65536.

The correct solution to this problem is to use the implicit type conversion
that happens when an assignment is done.

BTW, this bug is found if you compile with -O3 -Wall, it shows up as a warning:

rpc_server/srv_eventlog_lib.c:574: warning: dereferencing type-punned pointer
	will break strict-aliasing rules

Thanks,

Volker
2009-02-17 10:20:55 +01:00
Kai Blin
612c5e746b async_sock: Use tevent_timeval instead of timeval functions 2009-02-17 09:19:31 +01:00
Kai Blin
48b874e376 tevent: Rename ev_timeval* functions to tevent_timeval, export them.
Also add tevent_timeval_add() and tevent_timeval_current_ofs()
to help not depending on lub/util/time.c for things that just need tevent
2009-02-17 09:19:31 +01:00
Günther Deschner
046cb24d0a s3-rpcclient: use rpccli_spoolss_RemoteFindFirstPrinterChangeNotifyEx.
Guenther
2009-02-17 03:51:50 +01:00
Günther Deschner
f34f4074f8 s4-spoolss: fix dcesrv_spoolss_RemoteFindFirstPrinterChangeNotifyEx server.
Guenther
2009-02-17 00:32:58 +01:00
Günther Deschner
2fde3d2bc4 s4-smbtorture: fix spoolss notify test.
Guenther
2009-02-17 00:32:28 +01:00
Günther Deschner
d92edb3aa3 s3: re-run make samba3-idl.
Guenther
2009-02-17 00:23:27 +01:00
Günther Deschner
b181253781 spoolss: fix idl for spoolss_RouterRefreshPrinterChangeNotify.
Guenther
2009-02-17 00:23:06 +01:00
Günther Deschner
a60c219d10 spoolss: change some type names in spoolss_RemoteFindFirstPrinterChangeNotifyEx.
Guenther
2009-02-17 00:21:22 +01:00
Yasuma Takeda
e32f946114 Fix bug 5920
The length of the memcpy was calculated wrong, r->out.return_authenticator is
a pointer
2009-02-16 14:08:39 +01:00
Stefan Metzmacher
fe417b29bd s3:netlogon: implement _netr_LogonGetCapabilities() with NT_STATUS_NOT_IMPLEMENTED
This hopefully fixes bug #6100.

metze
2009-02-16 11:34:35 +01:00
Stefan Metzmacher
94abbead1b s4:netlogon: implement netr_LogonGetCapabilities with NT_STATUS_NOT_IMPLEMENTED
This hopefully fixes bug #6109.

metze
2009-02-16 11:00:07 +01:00
Stefan Metzmacher
81e556f366 librpc: rerun make idl
metze
2009-02-16 10:59:45 +01:00
Stefan Metzmacher
8339969ed3 netlogon.idl: add idl for netr_LogonGetCapabilities()
metze
2009-02-16 10:59:16 +01:00
Stefan Metzmacher
201a033c8f s4:netlogon: always return correct negotiate_flags in Authenticate[2|3]()
metze
2009-02-16 09:53:51 +01:00
Stefan Metzmacher
df75afdefb librpc: rerun make idl
metze
2009-02-16 09:53:50 +01:00
Stefan Metzmacher
a096a4c2ae netlogon.idl: add NETLOGON_REG_SUPPORTS_AES_SHA2 flags and use correct names for some other flags
metze
2009-02-16 09:53:50 +01:00