summaryrefslogtreecommitdiffstats
path: root/source
Commit message (Collapse)AuthorAgeFilesLines
...
* r24903: One more tick in #if 0 codeVolker Lendecke2007-09-021-1/+1
|
* r24902: DEBUG might use talloc_tos() itself...Volker Lendecke2007-09-021-1/+1
|
* r24879: Activate the winbindd cache-validation message handler.Michael Adam2007-09-021-4/+38
| | | | | | | | | | | Now the winbindd cache can be checked at runtime by calling "smbcontrol winbindd validate-cache". For the execution of the validation code, I fork a child and in the child restore the default SIGCHLD handler in order for the fork/waitpid mechanism of tdb_validate to work. Michael
* r24877: Don't panic in tdb validation code when the fork or waitpid fails.Michael Adam2007-09-021-5/+7
| | | | | | Return error instead. Michael
* r24865: - Correct failure of libsmbclient against a version of Windows found ↵Derrell Lipman2007-09-011-24/+2
| | | | | | | | | | | | | | | | | | | | on a NAS device. The device resets a NBT connection on port 139 when it receives a NetBIOS keepalive request. That request should be supported when NetBIOS is in use; Windows is behaving badly. libsmbclient needs a way to determine if a connection is still alive, and was using a NetBIOS keepalive request if port 139 was in use (on the assumption that it was probably NBT), and getpeername() when port 139 was not being used (assuming naked transport). This patch simplifies the code by exclusively using getpeername() to check whether a connection is still alive. The NetBIOS keepalive request is optional anyway (with preference being given to using TCP mechanisms for the same purpose), so this should be both simpler and more reliable. Derrell
* r24854: Rename function as Jerry asked.Rafal Szczesniak2007-08-312-5/+5
| | | | | | | s/net_use_upn_machine_account/net_use_krb_machine_account/ rafal
* r24848: Make tdb_validate() take an open tdb handle instead of a file name.Michael Adam2007-08-312-17/+47
| | | | | | | | | | | A new wrapper tdb_validate_open() takes a filename an opens and closes the tdb before and after calling tdb_validate() respectively. winbindd_validata_cache_nobackup() now dynamically calls one of the above functions depending on whether the cache tdb has already been opened or not. Michael
* r24847: Change standard failure return code of tdb_validate from "-1" to "1".Michael Adam2007-08-311-2/+2
| | | | | | (This is more safely used with casts from int to uint8, e.g.) Michael
* r24845: Fix a segfault in smbcontrol when called with parameters but no ↵Michael Adam2007-08-311-3/+5
| | | | | | extra args. Michael
* r24843: Add a "validate-cache" control message to winbindd.Michael Adam2007-08-313-0/+71
| | | | | | | | | | | So there is a new subcommand "smbcontrol winbindd validate-cache" now. This change provides the infrastructure: The function currently returns "true" unconditionally. The call of a real cache validation function will be incorporated in subsequent changes. Michael
* r24842: Fix build warning.Günther Deschner2007-08-311-1/+1
| | | | Guenther
* r24841: The locator has no dependencies to ldap libs anymore. Also fix the ↵Günther Deschner2007-08-311-2/+1
| | | | | | build. Guenther
* r24838: Now for real: build the locator, if we can.Günther Deschner2007-08-311-2/+4
| | | | Guenther
* r24836: Initialize some uninitialized variables.Michael Adam2007-08-311-3/+5
| | | | | | | This prevents a segfault when get_kdc_ip_string() is called with sitename == NULL. Michael
* r24833: Move locator to nsswitch (does not belong to libads anymore).Günther Deschner2007-08-312-1/+1
| | | | Guenther
* r24832: In the winbind-locator recursion case, try to pick up the kdc from theGünther Deschner2007-08-311-3/+22
| | | | | | environment. Guenther
* r24830: Add a winbindd cache validation function that does not doMichael Adam2007-08-311-0/+25
| | | | | backup and corrupt file handling. (To be used in subsequent changes.)
* r24829: Make use of a variable, that is available... :-)Michael Adam2007-08-311-2/+1
|
* r24828: Give smbcontrol an initial talloc stackframe.Michael Adam2007-08-311-1/+6
|
* r24827: Give smbstatus an initial talloc stackframe.Michael Adam2007-08-311-14/+24
| | | | | | | Rewrite main() so as to exit only at a single point where the stack frame is freed, too. Michael
* r24826: Fix two memleaks in idmap_cache.c, bug 4917Volker Lendecke2007-08-311-2/+4
| | | | | | Thanks again to Patrick Rynhart for persisting :-) Simo, please check!
* r24825: Give testparm an initial talloc stackframe, so it does not complainMichael Adam2007-08-311-0/+3
| | | | it is leaking.
* r24824: Create an initial talloc stackframe for the net binary.Michael Adam2007-08-311-0/+3
|
* r24813: Reformat to 80 columns.Jeremy Allison2007-08-301-19/+32
| | | | Jeremy.
* r24811: Simple reformatting to fit the 80 columns rule.Jeremy Allison2007-08-301-63/+96
| | | | Jeremy.
* r24809: Consolidate the use of temporary talloc contexts.Volker Lendecke2007-08-3035-231/+300
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds the two functions talloc_stackframe() and talloc_tos(). * When a new talloc stackframe is allocated with talloc_stackframe(), then * the TALLOC_CTX returned with talloc_tos() is reset to that new * frame. Whenever that stack frame is TALLOC_FREE()'ed, then the reverse * happens: The previous talloc_tos() is restored. * * This API is designed to be robust in the sense that if someone forgets to * TALLOC_FREE() a stackframe, then the next outer one correctly cleans up and * resets the talloc_tos(). The original motivation for this patch was to get rid of the sid_string_static & friends buffers. Explicitly passing talloc context everywhere clutters code too much for my taste, so an implicit talloc_tos() is introduced here. Many of these static buffers are replaced by a single static pointer. The intended use would thus be that low-level functions can rather freely push stuff to talloc_tos, the upper layers clean up by freeing the stackframe. The more of these stackframes are used and correctly freed the more exact the memory cleanup happens. This patch removes the main_loop_talloc_ctx, tmp_talloc_ctx and lp_talloc_ctx (did I forget any?) So, never do a tmp_ctx = talloc_init("foo"); anymore, instead, use tmp_ctx = talloc_stackframe() :-) Volker
* r24808: Fix the same problem Volker noticed.Jeremy Allison2007-08-301-1/+1
| | | | | | For some funny reason us4/gcc seems to fall over the ' Jeremy.
* r24807: Add WINBINDD_LOCATOR_KDC_ADDRESS env which will be used for the case ↵Günther Deschner2007-08-302-0/+34
| | | | | | | | when the locator gets called from within winbindd. Guenther
* r24806: Fix the build, sorry...Günther Deschner2007-08-301-2/+2
| | | | Guenther
* r24805: When we can build the locator, build it.Günther Deschner2007-08-301-1/+1
| | | | Guenther
* r24804: As a temporary workaround, also try to guess the server's principal ↵Günther Deschner2007-08-303-41/+72
| | | | | | | | | in the "not_defined_in_RFC4178@please_ignore" case to make at least LDAP SASL binds succeed with windows server 2008. Guenther
* r24803: For some funny reason us4/gcc seems to fall over the 'Volker Lendecke2007-08-301-1/+1
|
* r24802: Activate new testsVolker Lendecke2007-08-302-0/+2
| | | | RAW-SAMBA3CASEINSENSITIVE and RAW-SAMBA3POSIXTIMEDLOCK
* r24801: When told to ignore the winbind cache also do so while trying to ↵Günther Deschner2007-08-301-0/+4
| | | | | | | | store entries. Thanks Michael for pointing this out. Guenther
* r24799: Prefer IP address to dns name when replying in winbindd dsgetdcname.Günther Deschner2007-08-301-1/+17
| | | | Guenther
* r24797: Fix logic in dsgetdcname().Günther Deschner2007-08-301-1/+1
| | | | Guenther
* r24792: Merge from 3_2:Rafal Szczesniak2007-08-293-7/+42
| | | | | | | | | Add machine-authenticated connections to netlogon pipe of win2k and newer (which may have anonymous connections restricted) and leave anonymous for winnt domain. rafal
* r24791: Fix logic error in timeout of blocking lock processing found byJeremy Allison2007-08-291-23/+29
| | | | | | Ronnie. If a lock timeout expires, we must check we can get the lock before responding with failure. Volker is writing a torture test. Jeremy.
* r24788: Cleanup some linking msgs and remove references to libmsrpc Gerald Carter2007-08-291-27/+11
| | | | in SAMBA_3_2_0
* r24787: Janitor for Mimir. Mimir, you checked into SAMBA_3_2 andJeremy Allison2007-08-292-41/+60
| | | | | | | | | | SAMBA_3_0 - this second branch is defunct. You should be checking into SAMBA_3_2_0 instead - this is what we will be shipping as 3.2.0. Jeremy. Use infolevel 25 to set the machine account's password (just like winxp). This correctly updates pwdLastSet field on win2k3 server.
* r24786: Fix another build warning.Günther Deschner2007-08-291-5/+5
| | | | Guenther
* r24785: Put checks in parentheses.Günther Deschner2007-08-291-1/+1
| | | | Guenther
* r24784: Initialize uninitalized data to prevent segfaults.Michael Adam2007-08-291-0/+5
| | | | | | Thanks to Volker for the hint! Michael
* r24783: Remove unused off_t type.Günther Deschner2007-08-292-5/+3
| | | | Guenther
* r24782: Fix C++ warningsVolker Lendecke2007-08-291-3/+4
|
* r24781: Fix build warning.Günther Deschner2007-08-291-1/+1
| | | | Guenther
* r24778: Make sure krb5 locator requests go to a separate locator winbind child.Günther Deschner2007-08-294-5/+31
| | | | Guenther
* r24776: Remove accidentially commited flag checks.Günther Deschner2007-08-291-8/+0
| | | | Guenther
* r24773: Fix a ctdb connection lockupVolker Lendecke2007-08-293-13/+57
| | | | | | | | | The lockup could happen when packet_read_sync() gets two packets in a row, the first one being an async message, and the second one being the response to a ctdb request. Also add some debug msg to ctdb_conn.c, and cut off the "locking key" messages to only dump 20 hex chars at debug level 10. >10 will dump everything.
* r24769: Merge error handling for locator plugin.Günther Deschner2007-08-291-17/+5
| | | | Guenther