Björn Jacke
ec643df212
s3/vfs_scannedonly: use smb_msleep instead of nanosleep
...
Thanks to Joachim Schmitz. This fixes bug #7478
2010-09-16 21:38:19 +02:00
Volker Lendecke
0858b7546e
s3: Add the PAC info3 struct to the netsamlogon_cache in ntlm_auth
2010-09-16 12:02:57 -07:00
Volker Lendecke
547b268cfa
s3: Correctly unwrap the krb ticket in gss-spnego
2010-09-16 12:02:56 -07:00
Volker Lendecke
70ab7eb530
s3: Fall back to raw NTLMSSP for the gss-spnego protocol
...
This is to handle the mod_auth_ntlm_winbind protocol
sending "Negotiate" to IE, which sends raw NTLMSSP
instead of a SPNEGO wrapped NTLMSSP blob.
2010-09-16 12:02:56 -07:00
Volker Lendecke
de2c143f4d
s3: Split off output generation from manage_squid_ntlmssp_request
2010-09-16 12:02:56 -07:00
Volker Lendecke
ae483bbe9a
s3: Wrap the ntlm_auth loop with a talloc_stackframe
2010-09-16 12:02:56 -07:00
Günther Deschner
0730d982e6
s4-smbtorture: add NDR spoolss_GetPrinterDriver2 in and out check functions.
...
Guenther
2010-09-16 19:03:32 +02:00
Günther Deschner
809094a2c8
s4-smbtorture: finally enable most of our NDR_OUT NDR tests that we couldnt handle previously.
...
Guenther
2010-09-16 19:03:32 +02:00
Günther Deschner
c29b16faa8
s4-smbtorture: add functions to do NDR_OUT ndr_pull validation including NDR_IN context.
...
Guenther
2010-09-16 19:03:29 +02:00
Günther Deschner
5f9caf18db
s4-smbtorture: fix some indentation in NDR testsuite.
...
Guenther
2010-09-16 16:25:51 +02:00
Günther Deschner
725126b172
s3-smbtorture: fixup trailing whitespace in ndr testsuite.
...
Guenther
2010-09-16 16:22:32 +02:00
Günther Deschner
567a2e68d6
s4-smbtorture: add spoolss_GetPrinterDriver2 NDR tests.
...
Guenther
2010-09-16 14:42:22 +02:00
Günther Deschner
1250a63435
s4-smbtorture: mention -v switch for hexdump imports into the NDR testsuites.
...
Guenther
2010-09-16 14:41:37 +02:00
Günther Deschner
dfe25088ba
s4-smbtorture: activate spoolss_GetPrinterData NDR pull test.
...
Guenther
2010-09-16 14:31:53 +02:00
Andrew Tridgell
43d54406b1
s4-winbind: fixed two valgrind errors
...
- allocate the dc info on the right structure
- zero the number of group members when allocating the winbindd_gr
return
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-09-16 21:58:58 +10:00
Andrew Tridgell
b04b8b5610
wbclient: gr_mem can be NULL
...
if the structure was partly created and an error occurred, then don't
crash
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-09-16 21:09:18 +10:00
Andrew Tridgell
a163284491
wbclient: paranoid check for double free
...
added while tracking down a crash in the wbinfo blackbox test
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-09-16 21:09:17 +10:00
Andrew Tridgell
ff515ff477
tdb: added TDB_NO_FSYNC env variable
...
this might help reduce test times and load on test machines
2010-09-16 21:09:17 +10:00
Andrew Bartlett
a394a8104e
torture/raw Allow one more 'not implemented' status return as a valid response
...
The Samba4 server responds to most ioctl calls with NT_STATUS_NOT_SUPPORTED
Andrew Bartlett
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-09-16 21:09:17 +10:00
Andrew Bartlett
4083b8ac6c
s4-torture assert that we get a temp datagram socket.
...
I've seen a segfault because we failed to check this isn't NULL
before we use it. This will still of course fail, but not so
spectacularly.
Andrew Bartlett
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-09-16 21:09:17 +10:00
Andrew Bartlett
6832d5e933
libcli/auth/ntlmssp Be clear about talloc parents for session keys
...
The previous API was not clear as to who owned the returned session key.
This fixes a valgrind-found use-after-free in the NTLMSSP key derivation code,
and avoids making allocations - we steal and zero instead.
Andrew Bartlett
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-09-16 21:09:17 +10:00
Andrew Tridgell
d5a4e53ad8
s4-kdc: prevent segfault on bad trust strings
...
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-09-16 21:09:17 +10:00
Andrew Tridgell
dc59de5627
s4-netlogon: added IDL for netr_DsrUpdateReadOnlyServerDnsRecords
...
this is used by a RODC to do DNS updates, as TSIG updates are not
allowed by RODCs
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-09-16 21:09:17 +10:00
Andrew Tridgell
5958997a9b
s4-rpcserver: allow saving of bad RPC packets
...
use:
dcesrv:stubs directory = .
to save files like this:
RPC-netlogon-48-pullfail.dat
when a RPC packet can't be parsed or is unknown. Only enabled in
developer builds
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-09-16 21:09:17 +10:00
Andrew Tridgell
83a24ff2ef
pidl: prevent ndr_print_*() dying on NULL pointers
...
when using ndrdump you can get uninitialised structures containing
pointers. Don't segfault when trying to print them
2010-09-16 21:09:17 +10:00
Andreas Schneider
14340a45be
idl: Added EPMAPPER_STATUS_CANT_PERFORM_OP.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-09-16 11:52:25 +02:00
Andrew Tridgell
7e729c4f6a
s4-dns: use a non-forwardable ticket in samba_dnsupdate
...
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-09-16 16:08:46 +10:00
Andrew Tridgell
89827af525
s4-kerberos: obey the credentials setting for forwardable tickets
...
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-09-16 16:08:46 +10:00
Andrew Tridgell
efb37a5b8c
s4-pycredentials: expose forwardable setting via python
...
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-09-16 16:08:46 +10:00
Andrew Tridgell
6a82997285
s4-credentials: added ability to control forwardable attribute on krb5 tickets
...
with the latest bind9 nsupdate, we need to be able to control if the
ticket we use is forwardable
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-09-16 16:08:46 +10:00
Andrew Tridgell
377ffcb029
s4-drs: make debugging DsUpdateRefs a bit easier
2010-09-16 16:08:46 +10:00
Andrew Tridgell
e5cd023a41
s4-drs: initial skeleton for DrsReplica{Add,Del,Mod} calls
2010-09-16 16:08:46 +10:00
Andrew Tridgell
4cf53c6d0b
s4-drs: removed a debug print in repl secret
2010-09-16 16:08:46 +10:00
Andrew Tridgell
f95e6a32e4
s4-test: enable valgrind on wbinfo tests
2010-09-16 16:08:45 +10:00
Andrew Tridgell
eeafe1eb65
s4-pydrs: fix for python 2.4
...
thanks to Kamen and David Gonzalez for spotting this
2010-09-16 16:08:45 +10:00
Jelmer Vernooij
32976e2eaa
s3: Add convenience make target buildfarm-test.
2010-09-16 00:15:29 +00:00
Jelmer Vernooij
bad0041390
s3-selftest: Move Samba3-specific script to source3/selftest.
2010-09-16 00:15:29 +00:00
Björn Jacke
cd56e40117
s3/printing: avoid a possible race condition in the cache timeout
2010-09-16 01:00:54 +02:00
Jeremy Allison
447d96878a
Fix all sid_parse returns to be checked. Tidy up some checks and error
...
messages.
Jeremy.
2010-09-15 15:40:15 -07:00
Günther Deschner
db8cfda320
s3-smbd: prevent call_nt_transact_ioctl() crash in FSCTL_FIND_FILES_BY_SID case.
...
Jeremy, please check.
Guenther
2010-09-16 00:20:47 +02:00
Günther Deschner
fe59119e06
s4-smbtorture: try FSCTL_FIND_FILES_BY_SID with random blob data in RAW-IOCTL.
...
Guenther
2010-09-16 00:18:09 +02:00
Andrew Tridgell
3b87e3e951
s4-repl: if we are an RODC don't set WRIT_REP in replication
...
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-09-16 07:24:01 +10:00
Andrew Tridgell
05ec123b3b
s4-repl: add partial attribute set to getncchanges calls for RODCs
...
when we are a RODC we must supply a partial attribute set in the
getncchanges call
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-09-16 07:24:01 +10:00
Andrew Tridgell
520252c8d2
s4-repl: added min_usn to extended replication call
...
the repl_secret code needs to set it to avoid too many duplicate
attributes
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-09-16 07:24:01 +10:00
Andrew Tridgell
1da147e6fa
s4-repl: added repl_secret handling
...
initiate a repl secret extended op when requested
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-09-16 07:24:01 +10:00
Andrew Tridgell
d5673b5501
s4-repl: cleanup the extended op calls in repl server
...
- use generic parameter names
- trigger a run of pending ops on all extended ops
- don't prevent parallel fsmo transfers
- moved extended op code into drepl_extended
2010-09-16 07:24:01 +10:00
Andrew Tridgell
aabd89d8f7
s4-pyjoin: use new pynet finddc interface
...
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-09-16 07:24:01 +10:00
Andrew Tridgell
2edbf74f35
s4-pynet: return the full netlogon response from python finddc
...
this gives the caller the other server parameters
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-09-16 07:24:01 +10:00
Andrew Tridgell
e18c0030e0
s4-pyjoin: fill in the dns name in the python replication method
...
this is needed to get the repsFrom DNS entry right
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-09-16 07:24:01 +10:00
Andrew Tridgell
e2b6d171d4
s4-drs: get lpcfg_dnsdomain() instead of lpcfg_realm()
...
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-09-16 07:24:01 +10:00