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 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
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
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
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
Andrew Tridgell
e5ac820b9e
s4-pyrpc: added py_return_ndr_struct()
...
This can be used to return structures from other python interfaces as
python objects
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-09-16 07:24:01 +10:00
Andrew Tridgell
f89f3cf30f
s4-repl: split out the extended op handling
...
this is not part of the rid allocation logic
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-09-16 07:24:00 +10:00
Andrew Tridgell
54b5370474
s4-repl: cleanup getncchanges extended op calls
...
Multiple calls are allowed to run in parallel as long as they don't
conflict.
This also cleans up the variable names in the extended op calls.
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-09-16 07:24:00 +10:00
Kamen Mazdrashki
7f1db0d8df
s4-drs: Wait DsReplicaSync for as long as it takes to complete
...
In case the caller wants sync execution, we should
not cancel the call for internal timeout reason,
but rather wait for its execution
2010-09-16 00:15:38 +03:00
Kamen Mazdrashki
7b20b795ab
s4-irpc: Don't install endtime-timer in case timeout is INFINITE for the call
2010-09-16 00:15:38 +03:00
Kamen Mazdrashki
ee169d7347
s4-irpc: Add 'timeout' param for dcesrv_irpc_forward_rpc_call() call
...
It is to be used when caller wants to explicitly
specify the timeout for the call
2010-09-16 00:15:38 +03:00
Kamen Mazdrashki
839ed051fc
s4-irpc: Add value for "infinite" timeout for IRPC calls
2010-09-16 00:15:37 +03:00
Andrew Tridgell
e7f21fa941
s4-rpcserver: set unbind method to NULL in remote server
...
this prevents a possible crash on disconnect
2010-09-15 23:08:18 +10:00
Anatoliy Atanasov
ccb7fdc52b
s4/fsmo: Extended fsmo test with infrastructure, pdc and rid roles
2010-09-15 14:00:28 +03:00
Anatoliy Atanasov
2eeba94c9c
s4/fsmo: Handle infrastructure, pdc and rid extended ops
...
With this change we can transfer all roles back and forward, except
for the naming master. Also this commit fixes the naming of
fsmo_role_dn - used to point to the DN from which we read fSMORoleOwner
role_owner_dn - used to point to the NTDSDSA who owns the role
Now we always pass fsmo_role_dn, role_owner_dn to the extended operation
and to drepl_create_role_owner_source_dsa
Conflicts:
source4/dsdb/repl/drepl_ridalloc.c
2010-09-15 14:00:28 +03:00
Anatoliy Atanasov
4608721935
s4/fsmo: Remove empty new lines
2010-09-15 14:00:27 +03:00
Andrew Tridgell
ea223baabc
s4-server: check the return of irpc_binding_handle_by_name
...
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-09-15 15:39:36 +10:00
Andrew Tridgell
beb9c6be70
s4-finddcs: ensure we free previous cldap requests before starting a new one
2010-09-15 15:39:36 +10:00
Andrew Tridgell
fcf576f002
s4-selftest: enable logging in valgrind server xterm
...
when running with valgrind on the server, enable logging in the xterm
so you get a permanent record of any errors
2010-09-15 15:39:36 +10:00
Andrew Tridgell
a498ab90fb
s4-rpc: fixed double free in RPC proxy
...
the unbind method is only called when the dcesrv_connection_context is
being destroyed (its called from the destructor). That means that priv
is either already free, or is about to be freed, so don't free it
again
2010-09-15 15:39:36 +10:00
Andrew Tridgell
0009d1771a
s4-libnet: print the domain name on domain open failure
...
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-09-15 15:39:36 +10:00
Andrew Tridgell
c18e9566ea
s4-libnet: force IDL printing for high debug levels
...
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-09-15 15:39:36 +10:00