summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
|
* s3: Fix some typos -- Simo, please checkVolker Lendecke2011-08-101-7/+7
|
* selftest: Always test the spoolss deamon.Andreas Schneider2011-08-101-0/+1
| | | | | Autobuild-User: Andreas Schneider <asn@cryptomilk.org> Autobuild-Date: Wed Aug 10 19:29:14 CEST 2011 on sn-devel-104
* s3-spoolss: Fix prototypes warnings.Andreas Schneider2011-08-101-1/+4
| | | | Signed-off-by: Andreas Schneider <asn@samba.org>
* s3-printing: Do not try to force reload.Simo Sorce2011-08-102-3/+7
| | | | | | | | | | Be more correct in load printers at startup. If async process have already started we do not need to force a reload, but we just need to load the printers. If other process have not finished initializing it makes no sense to try to force them as they are masking SIGHUP unitl init is done anyway. Signed-off-by: Andreas Schneider <asn@samba.org>
* s3-spoolss: do not call pcap_cache_reload() directlySimo Sorce2011-08-101-5/+17
| | | | | | | The background queue process is repsonsible for that. Just reload printers if necessary or wait for a message from bq to do that. Signed-off-by: Andreas Schneider <asn@samba.org>
* s3-printing: Add child handler to bq processSimo Sorce2011-08-101-4/+32
| | | | | | | | The cups backend forks a child to do asynchronous work. We need a sigchld handler in bq to properly wait for the chilod to finish and reap it, otherwise it hangs the forever as a zombie process. Signed-off-by: Andreas Schneider <asn@samba.org>
* s3-spoolss: Fix printers related messagingSimo Sorce2011-08-101-4/+34
| | | | | | | Children were not properly receiving messages to reload printers when the background queue process was dispatching them. Signed-off-by: Andreas Schneider <asn@samba.org>
* s3-prefork: Fix use of child id.Simo Sorce2011-08-102-12/+11
| | | | | | | | | Children Ids must start at 1 as 0 represent the father. Also fix callbacks that restart logs to use a procedd global variable that holds the Id so that they work correctly both fot the parent process and the children. Signed-off-by: Andreas Schneider <asn@samba.org>
* s3-printing: make sure to block SIGHUP ...Simo Sorce2011-08-102-4/+39
| | | | | | | | ... until we are ready to handle it. Also make us ready as early as possible in spoolssd. Signed-off-by: Andreas Schneider <asn@samba.org>
* s3-spoolss: Use a global variable for the poolSimo Sorce2011-08-101-60/+31
| | | | | | | | | This allows for setting up signal handlers earlier which is needed for the following patch. It also simplify the code in a few places. After all we never have more than pool active at any time during spoolssd life span. Signed-off-by: Andreas Schneider <asn@samba.org>
* s3-printing: Allow bq process to have own logfileSimo Sorce2011-08-103-26/+55
| | | | Signed-off-by: Andreas Schneider <asn@samba.org>
* s3-spoolssd: Use the child_id to open log filesSimo Sorce2011-08-101-15/+43
| | | | | | | This way each child has its own log file and avoid mixing all logs form all children in the same parent log file. Signed-off-by: Andreas Schneider <asn@samba.org>
* s3-prefork: Pass the child a child_idSimo Sorce2011-08-103-2/+4
| | | | Signed-off-by: Andreas Schneider <asn@samba.org>
* s3-printing: Force pcap reload when all readySimo Sorce2011-08-104-5/+18
| | | | | | | This way we are sure the cache is primed properly and messages can be sent to processes if necessary as all messaging has been set up. Signed-off-by: Andreas Schneider <asn@samba.org>
* s3-prefork: Return tsocket_address for client and serverSimo Sorce2011-08-103-32/+68
| | | | Signed-off-by: Andreas Schneider <asn@samba.org>