summaryrefslogtreecommitdiffstats
path: root/source3
Commit message (Collapse)AuthorAgeFilesLines
...
* s3: Remove talloc_autofree_context() from dmapi.cVolker Lendecke2010-10-031-2/+1
| | | | | This is a place where an explicit dmapi_destroy_session would be needed. But we don't use a destructor for this.
* s3: Remove talloc_autofree_context() from unexpected.cVolker Lendecke2010-10-031-2/+1
| | | | | Same argument as in 997a64f6fb11e19d78c: If tdb_close() was needed at exit time, we'd have more severe problems by now.
* s3: Remove talloc_autofree_context() from srv_samr_nt.cVolker Lendecke2010-10-031-4/+2
| | | | | The dispinfo structs need to survive within a process across pipe opens, but they don't have a special destructor
* s3: Remove talloc_autofree_context from pdb_interfaceVolker Lendecke2010-10-031-1/+1
| | | | | None of the pdb backends have special destructors that need to be run at program exit.
* s3: Attempt to fix the non-ads buildVolker Lendecke2010-10-031-1/+1
|
* s3: Attempt to fix bug 7665Volker Lendecke2010-10-0211-136/+295
| | | | | | | Quite a few of our internal routines put stuff on talloc_tos() these days. In top-level netapi routines, properly allocate a stackframe and clean it again. Also, don't leak memory in the rpccli_ callers onto the libnetapi context.
* s3-spoolss: Strip off ", DrvConvert" and ",LocalOnly" in OpenPrinterEx as ↵Günther Deschner2010-10-021-0/+13
| | | | | | | | seen from Win7 clients. These suffixes and their meaning are not documented (yet). Guenther
* s3-spoolss: Fixed print job access.Andreas Schneider2010-10-021-4/+4
|
* s3-spoolss: Fixed print_access_check server_info.Andreas Schneider2010-10-022-3/+3
|
* s3:smbd: Increase unsupported IOCTL debug message to 2Steven Danneman2010-10-011-2/+4
| | | | | | Even printing once per connection, level 0 was too spammy with Windows clients frequently sending FSCTL_GET_OBJECT_ID which is unsupported.
* s3:events: Call all ready fd event handlers on each iteration of the main loopSteven Danneman2010-10-015-33/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, only one fd handler was being called per main message loop in all smbd child processes. In the case where multiple fds are available for reading the fd corresponding to the event closest to the beginning of the event list would be run. Obviously this is arbitrary and could cause unfairness. Usually, the first event fd is the network socket, meaning heavy load of client requests can starve out other fd events such as oplock or notify upcalls from the kernel. In this patch, I have changed the behavior of run_events() to unset any fd that it has already called a handler function, as well as decrement the number of fds that were returned from select(). This allows the caller of run_events() to iterate it, until all available fds have been handled. I then changed the main loop in smbd child processes to iterate run_events(). This way, all available fds are handled on each wake of select, while still checking for timed or signalled events between each handler function call. I also added an explicit check for EINTR from select(), which previously was masked by the fact that run_events() would handle any signal event before the return code was checked. This required a signature change to run_events() but all other callers should have no change in their behavior. I also fixed a bug in run_events() where it could be called with a selrtn value of -1, doing unecessary looping through the fd_event list when no fds were available. Also, remove the temporary echo handler hack, as all fds should be treated fairly now.
* s3-dcerpc: no point for printing NDR twice for internal pipes in log level 10.Günther Deschner2010-10-011-1/+1
| | | | Guenther
* samba: share readline wrappers among all buildsystems.Günther Deschner2010-10-019-193/+12
| | | | Guenther
* s3-readline: move cmd_history to smbclient, the only user.Günther Deschner2010-10-013-22/+20
| | | | Guenther
* samba: share select wrappers.Günther Deschner2010-10-0115-217/+17
| | | | Guenther
* s3-selftest: fix prefix in subunit output.Jelmer Vernooij2010-10-011-3/+3
|
* s3: Add subunit-test target.Jelmer Vernooij2010-10-012-1/+7
|
* s3-configure: Require at least version 1.2.6 of external TDB, which hasJelmer Vernooij2010-10-011-1/+1
| | | | TDB_INCOMPATIBLE_HASH.
* s3-spoolss: fix do_drv_upgrade_printer() which must have been broken since theGünther Deschner2010-10-011-3/+6
| | | | | | days we moved away from fstrings. Guenther
* s3-net: better handle obscure 0x80070002 error reply when trying to update anGünther Deschner2010-10-011-3/+7
| | | | | | not yet published printer. Guenther
* s3-net: make sure we dont crash when publishing a single printer.Günther Deschner2010-10-011-0/+5
| | | | Guenther
* s3-spoolss: make sure we dont crash on NULL setprinter level2 elements as ↵Günther Deschner2010-10-011-7/+13
| | | | | | seen from win7. Guenther
* s3-spoolss: dont overwrite location change notify.Günther Deschner2010-10-013-3/+19
| | | | Guenther
* s3-selftest: added samba3.posix_s3.rpc.spoolss.printer to knownfailAndrew Tridgell2010-10-011-0/+1
| | | | | | | | this fails intermittently on sn-devel. Guenther suggested adding it to knownfail Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Fri Oct 1 04:37:36 UTC 2010 on sn-devel-104
* s3: Add "smbcontrol winbindd ip-dropped <local-ip>"Volker Lendecke2010-09-306-0/+87
| | | | | | | | This is supposed to improve the winbind reconnect time after an ip address has been moved away from a box. Any kind of HA scenario will benefit from this, because winbindd does not have to wait for the TCP timeout to kick in when a local IP address has been dropped and DC replies are not received anymore.
* s3: Re-introduce a procid_self()Volker Lendecke2010-09-301-1/+1
| | | | | Giving the parent pid to reinit_after_fork is not a good idea.... None of the other callers do this, checked it.
* s3: Fix a typo in dump-domain-list smbcontrol usage msgVolker Lendecke2010-09-301-1/+1
|
* s3-spoolss: make sure to exit early and with the appropriate error code inGünther Deschner2010-09-301-0/+4
| | | | | | _spoolss_GetPrinterDriver2. Guenther
* s3-spoolss: Fix servername/printername handling which turns out to be very ↵Günther Deschner2010-09-306-141/+189
| | | | | | important to get right. Guenther
* s3-waf: add basic make test infrastructure, not able to test yet.Günther Deschner2010-09-293-0/+158
| | | | Guenther
* s3-waf: clean up socket-wrapper and nss-wrapper a little.Günther Deschner2010-09-291-15/+5
| | | | Guenther
* s3-waf: add vlp binary.Günther Deschner2010-09-291-0/+5
| | | | Guenther
* s3-printing: skip metadata entry when traversing printerlist.Günther Deschner2010-09-291-0/+5
| | | | | | | | | We were creating a new printer (with a very broken name) out of the lasttimestamp entry all the time. Simo, please check. Guenther
* s3-waf: add in a little hack to deal with the ECHO rpc module for ↵Günther Deschner2010-09-281-0/+4
| | | | | | | | non-developer builds. This will be removed once we have the rpc modules subsystem in place. Guenther
* waf: we don't need the preprocessor recursion limit any moreAndrew Tridgell2010-09-281-3/+0
| | | | thanks to ita for this
* s3-waf: add AUTH_SCRIPT module to AUTH subsystem (which is build as sharedGünther Deschner2010-09-281-0/+7
| | | | | | module by default). Guenther
* s3-waf: add vfs_linux_xfs_sgid to the list of default shared modules.Günther Deschner2010-09-281-1/+1
| | | | Guenther
* s3: Attempt to fix bug 7518Volker Lendecke2010-09-281-6/+6
| | | | | | | | | | | If select returns -1, we can't rely on the fd sets. The current code might loop endlessly because when putting an invalid fd (the closed socket?) on the read set, a select implementation might choose not to touch it but directly return with EINVAL. Thus run_events will see the socket readable, which leads to a "return true", and thus a NT_STATUS_RETRY -> same game again. We should never get into this situation, but to me the logfiles given in bug 7518 do not reveal enough information to understand how this can happen.
* s3: Increase the debuglevel for connection termination msgsVolker Lendecke2010-09-281-2/+2
|
* s3-waf: fix dependencies in most of our module subsystems.Günther Deschner2010-09-284-23/+3
| | | | Guenther
* s3-waf: add pam_smbpass.Günther Deschner2010-09-283-6/+18
| | | | Guenther
* s3-auth_util: make sure the system server info actually contains S-1-5-18.Günther Deschner2010-09-281-0/+9
| | | | | | | | | Without this, all security descriptor checks for the winreg spoolss backend fail and make our spoolss system in its current shape basically unusable. Andreas, please check. Guenther
* s3-printing: remove unused old structs.Günther Deschner2010-09-281-60/+0
| | | | Guenther
* s3: Lift smbd_messaging_context() from open_sockets_smbd()Volker Lendecke2010-09-281-16/+14
|
* s3: Remove two calls to procid_self()Volker Lendecke2010-09-281-2/+4
|
* s3: Remove talloc_autofree_context() from myhostname()Volker Lendecke2010-09-281-3/+1
| | | | No destructor needed, so we can as well use the NULL context
* s3: Remove some remaining files.c globals to sconnVolker Lendecke2010-09-283-53/+49
|
* s3: Remove talloc_autofree_context() from files.cVolker Lendecke2010-09-283-7/+10
|
* s3: Lift smbd_server_conn from file_find_fdVolker Lendecke2010-09-284-7/+9
|
* s3: Remove smbd_server_conn from file_fspVolker Lendecke2010-09-281-1/+1
|