Kamen Mazdrashki [Wed, 15 Sep 2010 23:17:34 +0000 (02:17 +0300)]
WIP: s4-pyrpc: Print the type name we got when checking for types
Kamen Mazdrashki [Mon, 13 Sep 2010 17:04:44 +0000 (20:04 +0300)]
TEMP: Add group of tests to test with
Kamen Mazdrashki [Wed, 6 Jan 2010 11:36:27 +0000 (13:36 +0200)]
ECLIPSE + PyDev Project
Günther Deschner [Wed, 15 Sep 2010 22:19:51 +0000 (00:19 +0200)]
s3-smbd: prevent call_nt_transact_ioctl() crash in FSCTL_FIND_FILES_BY_SID case.
Jeremy, please check.
Guenther
Günther Deschner [Wed, 15 Sep 2010 21:02:43 +0000 (23:02 +0200)]
s4-smbtorture: try FSCTL_FIND_FILES_BY_SID with random blob data in RAW-IOCTL.
Guenther
Andrew Tridgell [Wed, 15 Sep 2010 10:54:09 +0000 (20:54 +1000)]
s4-repl: if we are an RODC don't set WRIT_REP in replication
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Andrew Tridgell [Wed, 15 Sep 2010 10:24:50 +0000 (20:24 +1000)]
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>
Andrew Tridgell [Wed, 15 Sep 2010 10:23:47 +0000 (20:23 +1000)]
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>
Andrew Tridgell [Wed, 15 Sep 2010 09:00:01 +0000 (19:00 +1000)]
s4-repl: added repl_secret handling
initiate a repl secret extended op when requested
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Andrew Tridgell [Wed, 15 Sep 2010 08:59:17 +0000 (18:59 +1000)]
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
Andrew Tridgell [Wed, 15 Sep 2010 08:52:11 +0000 (18:52 +1000)]
s4-pyjoin: use new pynet finddc interface
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Andrew Tridgell [Wed, 15 Sep 2010 08:51:09 +0000 (18:51 +1000)]
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>
Andrew Tridgell [Wed, 15 Sep 2010 08:50:09 +0000 (18:50 +1000)]
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>
Andrew Tridgell [Wed, 15 Sep 2010 08:49:34 +0000 (18:49 +1000)]
s4-drs: get lpcfg_dnsdomain() instead of lpcfg_realm()
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Andrew Tridgell [Wed, 15 Sep 2010 08:49:06 +0000 (18:49 +1000)]
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>
Andrew Tridgell [Wed, 15 Sep 2010 06:19:26 +0000 (16:19 +1000)]
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>
Andrew Tridgell [Wed, 15 Sep 2010 06:15:12 +0000 (16:15 +1000)]
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>
Kamen Mazdrashki [Wed, 15 Sep 2010 13:45:37 +0000 (16:45 +0300)]
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
Kamen Mazdrashki [Wed, 15 Sep 2010 13:53:48 +0000 (16:53 +0300)]
s4-irpc: Don't install endtime-timer in case timeout is INFINITE for the call
Kamen Mazdrashki [Wed, 15 Sep 2010 13:41:47 +0000 (16:41 +0300)]
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
Kamen Mazdrashki [Wed, 15 Sep 2010 11:22:27 +0000 (14:22 +0300)]
s4-irpc: Add value for "infinite" timeout for IRPC calls
Björn Jacke [Wed, 15 Sep 2010 16:23:50 +0000 (18:23 +0200)]
s3/printing: make clock jump save and use monotonic time for cache timeout
Jelmer Vernooij [Wed, 15 Sep 2010 18:05:51 +0000 (20:05 +0200)]
subunit: Re-add outputmsg.
Jeremy Allison [Wed, 15 Sep 2010 17:50:50 +0000 (10:50 -0700)]
Add check for invalid data size.
Jeremy.
Volker Lendecke [Wed, 15 Sep 2010 08:29:44 +0000 (10:29 +0200)]
s3: Fix some debug msgs in ntlm_auth
Volker Lendecke [Tue, 14 Sep 2010 19:10:27 +0000 (21:10 +0200)]
Fix a typo
Andrew Tridgell [Wed, 15 Sep 2010 11:50:36 +0000 (21:50 +1000)]
s4-rpcserver: set unbind method to NULL in remote server
this prevents a possible crash on disconnect
Günther Deschner [Wed, 15 Sep 2010 12:34:50 +0000 (14:34 +0200)]
s3-docs: more typos in rpc_server manpage.
Guenther
Günther Deschner [Wed, 15 Sep 2010 12:31:39 +0000 (14:31 +0200)]
s3-waf: fix the build.
... this starts to get like "re-run make idl"...
Guenther
Günther Deschner [Wed, 15 Sep 2010 12:16:45 +0000 (14:16 +0200)]
s3-docs: fix rpc_server manpage type.
Guenther
Günther Deschner [Wed, 15 Sep 2010 11:24:44 +0000 (13:24 +0200)]
s3-rpc_server: fix some uninitalized variables and c++ build warnings.
Guenther
Günther Deschner [Wed, 15 Sep 2010 11:18:27 +0000 (13:18 +0200)]
s3-printing: fix print_spool_terminate().
Simo, Andreas, please check.
Guenther
Anatoliy Atanasov [Tue, 14 Sep 2010 15:07:09 +0000 (18:07 +0300)]
s4/fsmo: Extended fsmo test with infrastructure, pdc and rid roles
Anatoliy Atanasov [Wed, 15 Sep 2010 07:17:55 +0000 (10:17 +0300)]
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
Anatoliy Atanasov [Tue, 14 Sep 2010 14:59:32 +0000 (17:59 +0300)]
s4/fsmo: Remove empty new lines
Simo Sorce [Tue, 6 Jul 2010 19:29:32 +0000 (15:29 -0400)]
s3-winbindd: Use rpc_open_pipe_interface in winbindd.
Signed-off-by: Andreas Schneider <asn@samba.org>
Andreas Schneider [Wed, 15 Sep 2010 09:38:53 +0000 (11:38 +0200)]
s3-rpc_server: Use talloc_stackframe.
Simo Sorce [Wed, 7 Jul 2010 19:24:30 +0000 (15:24 -0400)]
s3-rpc_server: Moved ncacn_np declarations in common header file.
Signed-off-by: Andreas Schneider <asn@samba.org>
Simo Sorce [Wed, 7 Jul 2010 19:24:00 +0000 (15:24 -0400)]
s3-rpc_server: Moved "external" pipe functions to rpc_ncacn_np.c.
Signed-off-by: Andreas Schneider <asn@samba.org>
Andreas Schneider [Tue, 14 Sep 2010 11:37:46 +0000 (13:37 +0200)]
s3-rpc_server: Added new parametric option 'rpc_server'
Signed-off-by: Andreas Schneider <asn@samba.org>
Simo Sorce [Tue, 6 Jul 2010 17:03:35 +0000 (13:03 -0400)]
s3-rpc_server: Renamed rpc_ncacn_np_internal.c.
Signed-off-by: Andreas Schneider <asn@samba.org>
Simo Sorce [Tue, 6 Jul 2010 15:33:15 +0000 (11:33 -0400)]
s3-rpc_server: Convert rpc_connect_spoolss_pipe into a generic interface.
This way we have one common way to open internal pipes whether they
are shortcircuited or piped to an external process.
Simo Sorce [Tue, 22 Jun 2010 22:03:55 +0000 (18:03 -0400)]
s3-rpc_server: Added support for internal connections to external daemons.
Signed-off-by: Andreas Schneider <asn@samba.org>
Simo Sorce [Fri, 18 Jun 2010 14:56:58 +0000 (10:56 -0400)]
s3-rpc_server: Accept connections and process requests.
Signed-off-by: Andreas Schneider <asn@cynapses.org>
Simo Sorce [Fri, 18 Jun 2010 14:55:44 +0000 (10:55 -0400)]
s3-rpc_server: Added helper functions to read data from a ncacn socket.
Signed-off-by: Andreas Schneider <asn@cynapses.org>
Simo Sorce [Tue, 22 Jun 2010 22:01:45 +0000 (18:01 -0400)]
s3-rpc_client: Added a tstream based transport.
Signed-off-by: Andreas Schneider <asn@cynapses.org>
Simo Sorce [Fri, 18 Jun 2010 14:40:19 +0000 (10:40 -0400)]
s3-rpc_server: Addded function to create custom pipes_struct.
Signed-off-by: Andreas Schneider <asn@cynapses.org>
Simo Sorce [Thu, 20 May 2010 13:16:29 +0000 (09:16 -0400)]
s3-rpc_server: Add generic listener callback.
Signed-off-by: Andreas Schneider <asn@cynapses.org>
Simo Sorce [Fri, 18 Jun 2010 15:00:38 +0000 (11:00 -0400)]
s3-rpc_server: Added initial generic RPC server infrastructure.
Signed-off-by: Andreas Schneider <asn@cynapses.org>
Simo Sorce [Wed, 16 Jun 2010 13:03:37 +0000 (09:03 -0400)]
s3-rpc_server: Added debug to see how much data has been read out.
Signed-off-by: Andreas Schneider <asn@cynapses.org>
Simo Sorce [Tue, 15 Jun 2010 01:11:10 +0000 (21:11 -0400)]
s3-rpc_server: Make process_incoming_data() public.
Signed-off-by: Andreas Schneider <asn@cynapses.org>
Simo Sorce [Mon, 7 Jun 2010 19:18:31 +0000 (15:18 -0400)]
s3-rpc_server: Make pipe destructor public.
Signed-off-by: Andreas Schneider <asn@cynapses.org>
Simo Sorce [Tue, 22 Jun 2010 22:03:17 +0000 (18:03 -0400)]
s3-rpc_server: Fixed unhandled error condition.
Signed-off-by: Andreas Schneider <asn@samba.org>
Simo Sorce [Thu, 20 May 2010 12:39:10 +0000 (08:39 -0400)]
s3-misc: Introduce lp_ncalrpc_dir() in S3, like we have in S4.
Andreas Schneider [Mon, 13 Sep 2010 09:29:31 +0000 (11:29 +0200)]
s3-printing: Document the printer list functions.
Simo Sorce [Fri, 14 May 2010 19:49:29 +0000 (15:49 -0400)]
s3-printing: Add method to skip refresh if just happned.
This way if multiple process try to refresh at the same time we don't do it
over and over again.
Signed-off-by: Andreas Schneider <asn@cynapses.org>
Simo Sorce [Thu, 13 May 2010 22:42:55 +0000 (18:42 -0400)]
s3-printing: Use printer list tdb in pcap.
Signed-off-by: Andreas Schneider <asn@cynapses.org>
Simo Sorce [Thu, 13 May 2010 15:35:59 +0000 (11:35 -0400)]
s3-printing: Added a printer list database.
Signed-off-by: Andreas Schneider <asn@cynapses.org>
Günther Deschner [Fri, 10 Sep 2010 07:56:36 +0000 (09:56 +0200)]
s3-nltest: add dsgetdc command.
Guenther
Günther Deschner [Wed, 15 Sep 2010 08:11:38 +0000 (10:11 +0200)]
s3-libnetapi: try using netr_DsRGetDCNameEx() in DsGetDcName().
Guenther
Günther Deschner [Fri, 10 Sep 2010 23:23:01 +0000 (01:23 +0200)]
s3-libnetapi: add DS request flags to public header.
Guenther
Günther Deschner [Fri, 10 Sep 2010 23:19:07 +0000 (01:19 +0200)]
s3-libnetapi: add DS_X_FLAGs to public header.
Guenther
Günther Deschner [Fri, 10 Sep 2010 23:18:04 +0000 (01:18 +0200)]
libnetapi: add DOMAIN_CONTROLLER_INFO_FLAGS.
Guenther
Günther Deschner [Tue, 14 Sep 2010 15:39:45 +0000 (17:39 +0200)]
s3-nltest: convert server input argument into --server.
Guenther
Günther Deschner [Fri, 10 Sep 2010 07:56:02 +0000 (09:56 +0200)]
s3-nltest: rename print_result to print_netlogon_info_result.
Guenther
Günther Deschner [Tue, 14 Sep 2010 21:58:10 +0000 (23:58 +0200)]
s3-build: only link in prs parser where needed.
Guenther
Günther Deschner [Wed, 15 Sep 2010 06:22:37 +0000 (08:22 +0200)]
s3-waf: only link in prs parser where needed.
Guenther
Andrew Tridgell [Wed, 15 Sep 2010 04:24:51 +0000 (14:24 +1000)]
cldap: prevent crashes when freeing cldap socket
As a callback may destroy the cldap socket we need to ensure we don't
reference the cldap structure after the callback
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Andrew Tridgell [Wed, 15 Sep 2010 03:14:42 +0000 (13:14 +1000)]
s4-server: check the return of irpc_binding_handle_by_name
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Andrew Tridgell [Wed, 15 Sep 2010 02:22:48 +0000 (12:22 +1000)]
s4-finddcs: ensure we free previous cldap requests before starting a new one
Andrew Tridgell [Wed, 15 Sep 2010 02:16:00 +0000 (12:16 +1000)]
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
Andrew Tridgell [Wed, 15 Sep 2010 01:23:15 +0000 (11:23 +1000)]
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
Andrew Tridgell [Wed, 15 Sep 2010 01:21:43 +0000 (11:21 +1000)]
tsocket: we return -1 on error, not fd
the code used this pattent:
if (fd < 0) {
...various cleanups...
return fd;
}
it is much clearer to do this:
if (fd < 0) {
...various cleanups...
return -1;
}
as otherwise when reading the code you think this function may return
a fd.
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Andrew Tridgell [Tue, 14 Sep 2010 23:53:49 +0000 (09:53 +1000)]
s4-libnet: print the domain name on domain open failure
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Andrew Tridgell [Tue, 14 Sep 2010 23:53:29 +0000 (09:53 +1000)]
s4-libnet: force IDL printing for high debug levels
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Andrew Tridgell [Tue, 14 Sep 2010 23:52:56 +0000 (09:52 +1000)]
s4-resolve: the file backend should not look at the name type
this matches the behaviour of our DNS resolver
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Andrew Tridgell [Tue, 14 Sep 2010 23:20:59 +0000 (09:20 +1000)]
s4-finddcs: show required server type bits on failure
when we skip a DC because it doesn't have the required server type
bits, show what bits we wanted
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Andrew Tridgell [Tue, 14 Sep 2010 23:20:14 +0000 (09:20 +1000)]
s4-repl: use consistent API calls for getting DN GUID
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Andrew Tridgell [Tue, 14 Sep 2010 23:19:47 +0000 (09:19 +1000)]
s4-netlogon: fixed logic for setting DS_SERVER_WRITABLE
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Andrew Tridgell [Tue, 14 Sep 2010 10:10:51 +0000 (20:10 +1000)]
s4-finddc: use NBT lookup for a 1C name if joining a short domain name
once we get the 1C lookup reply, use a CLDAP query to find the details
for the server
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Andrew Tridgell [Tue, 14 Sep 2010 08:28:44 +0000 (18:28 +1000)]
s4-selftest: use the full domain name in joins
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Andrew Tridgell [Tue, 14 Sep 2010 08:28:27 +0000 (18:28 +1000)]
s4-join: give a clear error when using short domain form
we now require the full domain name, for the DNS/CLDAP lookup
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Andrew Tridgell [Tue, 14 Sep 2010 08:22:13 +0000 (18:22 +1000)]
s4-rodc: use python finddc code to avoid the need for --server
The DC is now found via DNS/CLDAP
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Andrew Tridgell [Tue, 14 Sep 2010 08:21:38 +0000 (18:21 +1000)]
s4-pynet: added finddc call
this gives access to the CLDAP/DNS finddc code from python
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Andrew Tridgell [Tue, 14 Sep 2010 07:48:52 +0000 (17:48 +1000)]
s4-libcli: change finddcs.h -> finddc.h
this prevents conflicts with old generated files and we can only even
return one DC with this interface.
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Andrew Tridgell [Tue, 14 Sep 2010 07:37:01 +0000 (17:37 +1000)]
s4-finddcs: rename finddcs to finddcs_nbt
finddcs_nbt is currently unused, but will later be a fallback is a
cldap DC find fails.
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Andrew Tridgell [Tue, 14 Sep 2010 07:36:23 +0000 (17:36 +1000)]
s4-winbind: use finddcs_cldap() in winbind
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Andrew Tridgell [Tue, 14 Sep 2010 07:34:55 +0000 (17:34 +1000)]
s4-libnet: use finddcs_cldap() in libnet_lookup
this may later be changed to do fallback to NBT as well, but for now
cldap is sufficient
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Andrew Tridgell [Tue, 14 Sep 2010 05:48:19 +0000 (15:48 +1000)]
s4-cldap: don't set the writable bit when we are a RODC
when we are a RODC, don't respond with the writable bit in the server
type response of netlogon requests
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Andrew Tridgell [Tue, 14 Sep 2010 05:46:31 +0000 (15:46 +1000)]
s4-finddcs: added finddcs_cldap()
this finds DCs with a specified set of server_type bit using SRV
lookups and CLDAP
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Andrew Tridgell [Tue, 14 Sep 2010 03:12:00 +0000 (13:12 +1000)]
s4-secrets: fixed shadowed variable warning
we already have a 'v' in scope
Andrew Tridgell [Mon, 13 Sep 2010 21:49:12 +0000 (07:49 +1000)]
cldap: use ipv4 not up for unbound cldap sockets
If we use "ip" we end up with a PF_INET6 socket which breaks sendto()
for v4 addresses.
Andrew Tridgell [Mon, 13 Sep 2010 13:08:28 +0000 (23:08 +1000)]
s4-resolve: added resolve_name_multiple_recv()
this allows for multiple replies to a SRV lookup
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Andrew Tridgell [Mon, 13 Sep 2010 13:07:44 +0000 (23:07 +1000)]
s4-dns: fixed lookup of SRV records using dns_ex
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Andrew Tridgell [Mon, 13 Sep 2010 13:07:10 +0000 (23:07 +1000)]
s4: fixed some printf format errors
Andrew Tridgell [Mon, 13 Sep 2010 06:37:10 +0000 (16:37 +1000)]
s4-libnet: converted finddcs call to tevent_req
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Andrew Tridgell [Mon, 13 Sep 2010 02:15:52 +0000 (12:15 +1000)]
s4-secrets: fetch secure channel type with domain SID
The secure channel type is needed to work out what DC to connect to
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Andrew Tridgell [Mon, 13 Sep 2010 01:38:12 +0000 (11:38 +1000)]
s4-auth: when we are a DC enable winbind auth
As a RODC we need to forward some auth requests to a writable DC
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Andrew Tridgell [Mon, 13 Sep 2010 01:36:43 +0000 (11:36 +1000)]
s4-auth: set the RODC bit for RODC schannel
When we are using SEC_CHAN_RODC we need to set the
NETLOGON_NEG_RODC_PASSTHROUGH bit in the negotiated flags in
ServerAuthenticate2
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Andrew Tridgell [Sun, 12 Sep 2010 21:44:06 +0000 (07:44 +1000)]
s4-schannel: fixed reference to context after free
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>