summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* selftest:target/Samba4: use the correct configuration in setup_vampire_dc()Stefan Metzmacher2011-08-121-0/+2
| | | | | | | | This allows "TDB_NO_FSYNC=1 make -j test TESTS=vampire" to work. metze Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3:libsmb: keep the request order in cli_smb_req_unset_pending()Stefan Metzmacher2011-08-121-1/+3
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Fri Aug 12 12:36:03 CEST 2011 on sn-devel-104
* s3:libsmb: use tevent_req_defer_callback() unless there's only one request ↵Stefan Metzmacher2011-08-121-4/+41
| | | | | | | | | | | | | | | | | in cli_smb_received() Callers of tevent_req_done() (or similar functions) have to return directly. Otherwise the callback could invalidate the current stack state, which is likely to trigger segfaults. If there was only one pending request and we just got the response for that one, we can use tevent_req_done() directly. Otherwise there're more pending requests and we need to call cli_state_receive_next() or we got the response for chained requests. Both means that we have to use tevent_req_defer_callback(). metze
* s3:libsmb: make use of cli_state_receive_next() in cli_smb_received()Stefan Metzmacher2011-08-121-17/+2
| | | | metze
* s3:libsmb: notify all request about failures in cli_smb_req_set_pending()Stefan Metzmacher2011-08-121-0/+7
| | | | | | | | It's up to the caller to notify the current request, but we have to notify all other pending requests if we're not able to read the next response from the server. metze
* s3:libsmb: split out cli_state_receive_next() from cli_smb_req_set_pending()Stefan Metzmacher2011-08-121-2/+25
| | | | metze
* s3:libsmb: use talloc_stackframe() in cli_smb_received()Stefan Metzmacher2011-08-121-8/+12
| | | | metze
* s3:libsmb: call cli_smb_req_unset_pending() before tevent_req_done() also ↵Stefan Metzmacher2011-08-121-0/+1
| | | | | | for chained requests metze
* s3:libsmb: reset the destructor in cli_smb_req_unset_pending()Stefan Metzmacher2011-08-121-1/+2
| | | | metze
* s3:libsmb: add cli_state_notify_pending() and use itStefan Metzmacher2011-08-121-25/+45
| | | | | | | | | | If we got a problem on the connection we need to notify every pending request. But we need to make use of tevent_req_defer_callback() before tevent_req_nterror(), otherwise the callback, triggered by tevent_req_nterror(), could invalidate the state of current caller, which will likely cause segfaults. metze
* s4-test: use standard process model for 'dc' serverAndrew Tridgell2011-08-121-20/+12
| | | | | | | | | | | this provides us with both 'standard' and 'single' process models in selftest, ensuring that we test the standard process model in the build farm Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Fri Aug 12 11:06:50 CEST 2011 on sn-devel-104
* socket-wrapped: added wrappers for dup() and dup2()Andrew Tridgell2011-08-122-2/+131
| | | | | | | | | | The Samba4 standard process model uses dup() on incoming sockets as an optimisation (it makes select() a tiny bit faster when used). Adding dup() to socket wrapper allows us to use the standard process model in selftest Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s3:selftest: run smbtorture3 CHAIN1/CHAIN2 testsStefan Metzmacher2011-08-122-2/+1
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Fri Aug 12 09:37:04 CEST 2011 on sn-devel-104
* tevent: don't force the nesting flag to false in the destructorAndrew Tridgell2011-08-121-3/+7
| | | | | | | | | | | the tevent destructor is called in tevent_re_initialise(), to reset the event context back to its original state for creating child processes. We need the nesting flag to stay the same Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Fri Aug 12 05:18:25 CEST 2011 on sn-devel-104
* s4-dbcheck: offer to fix dsServiceName to be in GUID formAndrew Tridgell2011-08-121-0/+43
| | | | | | this fixes the dsServiceName so it can handle server renames Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-dsdb: don't cache the NTDS settings DNAndrew Tridgell2011-08-121-9/+8
| | | | | | | | | this DN can change due to a server rename, so we cannot cache it. It is set by provision, but not anywhere else. This seems to not have a large performance impact Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-join: make dsServiceName a GUID in @ROOTDSE on joinAndrew Tridgell2011-08-121-3/+5
| | | | | | | when joining another domain as a DC we should setup our dsServiceName in @ROOTDSE to be a GUID so we can cope with later server renames Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-provision: create dsServiceName in @ROOTDSE in GUID formAndrew Tridgell2011-08-122-1/+4
| | | | | | this allows for handling of server renames as the GUID doesn't change Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-dsdb: expand dsServiceName from GUID form at runtimeAndrew Tridgell2011-08-121-6/+54
| | | | | | | this allows dsServiceName to be stored as an extended DN or GUID form in @ROOTDSE, and its string form will be found at runtime. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-dsdb: remove the naming_fsmo and pdc_fsmo modulesAndrew Tridgell2011-08-123-42/+0
| | | | | | | these are not needed now that the rootdse modules calculates the validFSMOs attribute at runtime Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-dsdb: calculate validFSMOs at runtime instead of pre-computingAndrew Tridgell2011-08-123-251/+45
| | | | | | | | this changes the rootdse to compute the validFSMOs attribute at runtime by checking the fSMORoleOwner attribute on the appropriate DN. This avoids the need for the pdc_fsmo and naming_fsmo modules. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* tevent: fix documentation for tevent_context_init_byname()Sumit Bose2011-08-111-2/+2
| | | | | | | Signed-off-by: Simo Sorce <idra@samba.org> Autobuild-User: Simo Sorce <idra@samba.org> Autobuild-Date: Thu Aug 11 21:56:37 CEST 2011 on sn-devel-104
* tevent: Set FD_CLOEXEC on epoll handleSumit Bose2011-08-114-2/+52
| | | | | | | | If an application using libtevent starts a new process the epoll file descriptor is leaked to the new process if the event context is not freed explicitly. By setting FD_CLOEXEC this is not needed anymore. Signed-off-by: Simo Sorce <idra@samba.org>
* s3-messaging: Do not register to classes we are not going to use.Simo Sorce2011-08-113-5/+4
| | | | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Autobuild-User: Andreas Schneider <asn@cryptomilk.org> Autobuild-Date: Thu Aug 11 17:09:30 CEST 2011 on sn-devel-104
* s3-messaging: Change classification of MSG_SMB_CONF_UPDATED.Simo Sorce2011-08-112-2/+4
| | | | | | | | smbd is not the only daemon interested in smb.conf changes. Move this message to the GENERAL class so that all interested partied (nmbd, winbindd, spoolssd, etc..) can receive this notification. Signed-off-by: Andreas Schneider <asn@samba.org>
* s3-messaging: Fix messaging classes.Simo Sorce2011-08-115-12/+19
| | | | | | | | | | | | This has been broken since ff0ac5b0 (May 2007). Basically all messages were belonging to the General class except for CTDB messages. This fixed the message_send_all() function to correctly compute the class, and fixes registrations to include all they need to cope with the fact not all messages are of calss general (registrations rotted a bit because as long as FLAG_MSG_GENERAL was defined the process woould receive all messages). Signed-off-by: Andreas Schneider <asn@samba.org>
* s3-messaging: Remove obsolete class.Simo Sorce2011-08-115-19/+2
| | | | | | | The FLAG_MSG_PRINT_NOTIFY class is actually obsolete and never used, as the only message belonging to it is not used either. Signed-off-by: Andreas Schneider <asn@samba.org>
* s3:build(autoconf): fix bug #8369: remove irritating "." targets when recent ↵Michael Adam2011-08-113-9/+19
| | | | | | | system libs exist Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Thu Aug 11 13:26:27 CEST 2011 on sn-devel-104
* Adapt tally_histogram to Samba coding conventionsVolker Lendecke2011-08-101-10/+16
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Aug 10 21:12:59 CEST 2011 on sn-devel-104
* Adapt get_max_bucket to Samba coding conventionsVolker Lendecke2011-08-101-2/+4
|
* Adapt tally_approx_median to Samba coding conventionsVolker Lendecke2011-08-101-1/+2
|
* Adapt bucket_range to Samba coding conventionsVolker Lendecke2011-08-101-2/+3
|
* Adapt tally_mean to Samba coding conventionsVolker Lendecke2011-08-101-1/+2
|
* Adapt divls64 to Samba coding conventionsVolker Lendecke2011-08-101-1/+2
|
* Avoid some // style comments in divls64Volker Lendecke2011-08-101-9/+10
|
* Adapt divlu64 to Samba coding conventionsVolker Lendecke2011-08-101-2/+5
|
* Avoid some // style comments in divlu64Volker Lendecke2011-08-101-26/+26
|
* Adapt fls64 to Samba coding conventionsVolker Lendecke2011-08-101-1/+2
|
* Adapt tally_num to Samba coding conventionsVolker Lendecke2011-08-101-1/+2
|
* Adapt tally_add to Samba coding conventionsVolker Lendecke2011-08-101-3/+5
|
* Adapt renormalize to Samba coding conventionsVolker Lendecke2011-08-101-1/+2
|
* Adapt shift_overflows to Samba coding conventionsVolker Lendecke2011-08-101-1/+2
|
* Adapt bucket_min to Samba coding conventionsVolker Lendecke2011-08-101-1/+2
|
* Adapt bucket_of to Samba coding conventionsVolker Lendecke2011-08-101-1/+2
|
* Adapt tally_new to Samba coding conventionsVolker Lendecke2011-08-101-2/+5
|
* Slightly simplify tally_newVolker Lendecke2011-08-101-7/+9
|
* Fix a c++ warningVolker Lendecke2011-08-101-1/+1
|
* Fix a c++ warningVolker Lendecke2011-08-101-1/+2
|
* s3: Adapt msg_idmap.c to Samba coding conventionsVolker Lendecke2011-08-101-5/+5
|
* s3: Fix some nonempty blank linesVolker Lendecke2011-08-101-1/+1
|