]>
git.ipfire.org Git - thirdparty/samba.git/log
Mike Sweet [Mon, 21 Apr 2008 16:19:51 +0000 (09:19 -0700)]
smbspool: Fix CUPS authentication protocol support.
There were a couple of places where we weren't checking for
authentication correctly. This chance fixes those places and properly
supports Kerberos where available.
Mike Sweet [Mon, 21 Apr 2008 16:16:01 +0000 (09:16 -0700)]
smbspool: fix Kerberos support for CUPS 1.3.
To summarize the changes, the patches remove the old (probably non-
working) Kerberos support code which is unnecessary with CUPS 1.3
and adds some checks on the NT status we get back to see whether
the connection error is related to authentication. If so, we send
the ATTR: message to tell CUPS we need a username and password and
return exit code 2 so cupsd will do the right thing.
AUTH_USERNAME, AUTH_PASSWORD, and KRB5CCNAME are set and supported
by CUPS 1.3. The new exit code is supported by CUPS 1.2.x and 1.3,
and it treated as a general failure in CUPS 1.1. The ATTR: message
is only supported by CUPS 1.3, while CUPS 1.2 will assume the
"username,password" value we are setting.
The current code only uses the AUTH_* env vars if they are set.
If not, we fall back to the previous behavior.
I really can't tell whether the Kerberos code that was in there
would work at all. It did not work for Mac OS X which is why
I dropped it.
Andrew Bartlett [Mon, 21 Apr 2008 15:48:31 +0000 (17:48 +0200)]
Add in a nice big comment explaining why SamLogonEx matters.
Andrew Bartlett
Günther Deschner [Mon, 21 Apr 2008 08:55:23 +0000 (10:55 +0200)]
winbind: Use libnbt for NTLOGON SAMLOGON mailslot request and reply.
Guenther
Günther Deschner [Mon, 21 Apr 2008 08:25:28 +0000 (10:25 +0200)]
samlogoncache: Use data_blob_const in netsamlogon_cache_get.
Guenther
Alexander Bokovoy [Mon, 21 Apr 2008 07:38:20 +0000 (11:38 +0400)]
Merge branch 'v3-2-test' of ssh://git.samba.org/data/git/samba into v3-2-test
Alexander Bokovoy [Mon, 21 Apr 2008 07:37:25 +0000 (11:37 +0400)]
Ignore Emacs' semantic.cache
Michael Adam [Fri, 11 Jan 2008 13:19:28 +0000 (14:19 +0100)]
Remove redundant parameter fd from SMB_VFS_CLOSE().
Now all those redundant fd's have vanished from the VFS API.
Michael
Michael Adam [Fri, 11 Jan 2008 12:41:46 +0000 (13:41 +0100)]
Slight reformatting of fd_close_posix(), while I'm at it.
Wrap lines and remove trailing space.
Michael
Michael Adam [Fri, 11 Jan 2008 12:28:28 +0000 (13:28 +0100)]
Change fd_close_posix() to return int instead of NTSTATUS.
The errno is handed up through the VFS layer to the callers.
Michael
Michael Adam [Fri, 11 Jan 2008 12:03:16 +0000 (13:03 +0100)]
Don't modify the fsp in fd_close_posix() anymore.
Now that it is inside the vfs layer, this function should
not alter the fsp (i.e. set fsp->fh->fd = -1) anymore.
That belongs above the vfs layer.
Michael
Michael Adam [Fri, 11 Jan 2008 11:18:33 +0000 (12:18 +0100)]
Move the posix pending close functionality down into the VFS layer.
This hides the pending close fds from the outside. Call order
of SMB_VFS_CLOSE is reversed. Originally, it was:
fd_close -> fd_close_posix -> SMB_VFS_CLOSE -> close
And now it is:
fd_close -> SMB_VFS_CLOSE -> fd_close_posix -> close
This is in preparation of removing the fd parameter
from the SMB_VFS_CLOSE function. But it is also the right
place for the pending close calls anyways.
Michael
Michael Adam [Sun, 20 Apr 2008 22:20:35 +0000 (00:20 +0200)]
loadparm: reformat - fix whitespace/tab
Michael
Michael Adam [Sun, 20 Apr 2008 22:17:49 +0000 (00:17 +0200)]
loadparm: rename bNoIncludes to bAllowIncludeRegistry (inverting logic)
This is what that variable controls now...
Michael
Michael Adam [Sun, 20 Apr 2008 22:06:45 +0000 (00:06 +0200)]
loadparm: make lo_load_initial() only skip registry include.
This is only to be able to set everything properly for registry
before reading registry includes.
This fixes "make test" as non-root user in a directory, where
root-daemons have already created a messaging.tdb in the compiled
in lockdir...
Michael
Günther Deschner [Sun, 20 Apr 2008 21:03:33 +0000 (23:03 +0200)]
libnetapi: Add Doxyfile.
Guenther
Günther Deschner [Sun, 20 Apr 2008 20:58:52 +0000 (22:58 +0200)]
netdomjoin-gui: Omit warning when unjoining a domain fails.
Guenther
Günther Deschner [Sun, 20 Apr 2008 20:56:09 +0000 (22:56 +0200)]
cli_cm: Make nicer password prompt in do_connect().
Guenther
Michael Adam [Sun, 20 Apr 2008 20:17:39 +0000 (22:17 +0200)]
libwbclient: change wbcResolveWinsByIP() to take char ** instead of const char **
Fix a compile warning. This seems the right thing since the data is created
by talloc_strdup...
Michael
Michael Adam [Sun, 20 Apr 2008 20:13:40 +0000 (22:13 +0200)]
libwbclient: fix wbcResolveWinsByName() to take char * instead of const char **
This fixes a compile warning and seems the correct thing to me as
the returned data is talloc_strdup't, so not const anyways.
Michael
Michael Adam [Sun, 20 Apr 2008 20:06:37 +0000 (22:06 +0200)]
rpc_parse: fix "assignment discards qualifier" warning by using CONST_DISCARD.
Michael
Michael Adam [Sun, 20 Apr 2008 19:49:01 +0000 (21:49 +0200)]
vfs_cacheprime: fix C++ warning - make implicit cast explicit
Michael
Volker Lendecke [Sun, 20 Apr 2008 14:23:48 +0000 (16:23 +0200)]
Fix some empty lines with just spaces
Volker Lendecke [Sun, 20 Apr 2008 12:07:38 +0000 (14:07 +0200)]
Make convert_samr_dispinfo_to_NET_DISPLAY() static
Volker Lendecke [Sun, 20 Apr 2008 12:05:25 +0000 (14:05 +0200)]
Introduce rpc_pipe_np_smb_conn()
This abstracts away all references to rpc_pipe_client->cli, the only reference
is now in cli_pipe.c.
Volker Lendecke [Sun, 20 Apr 2008 12:02:21 +0000 (14:02 +0200)]
Remove a redundant reference to rpc_pipe_state->cli from srv_spoolss
This assignment is done in cli_rpc_pipe_open called from
cli_rpc_pipe_open_noauth already.
Volker Lendecke [Sun, 20 Apr 2008 11:51:46 +0000 (13:51 +0200)]
Replace cli_rpc_pipe_close by a talloc destructor on rpc_pipe_struct
Volker Lendecke [Sun, 20 Apr 2008 10:19:27 +0000 (12:19 +0200)]
Refactoring: Move stuff around for creating a pipe
Volker Lendecke [Sun, 20 Apr 2008 09:45:41 +0000 (11:45 +0200)]
Remove the pipe_idx variable from rpc_pipe_client
Volker Lendecke [Sun, 20 Apr 2008 09:27:24 +0000 (11:27 +0200)]
Remove some unused code referencing pipe_names[]
Volker Lendecke [Sat, 19 Apr 2008 22:01:52 +0000 (00:01 +0200)]
Use rpc_pipe_client->user_name instead of rpc_pipe_client->cli->user_name
Also make sure that rpc_pipe_client->user_name is always talloced.
Volker Lendecke [Sat, 19 Apr 2008 21:27:35 +0000 (23:27 +0200)]
Introduce rpccli_set_timeout()
Reduce dependency on "cli" member of rpc_pipe_client struct
Volker Lendecke [Sat, 19 Apr 2008 21:03:16 +0000 (23:03 +0200)]
Move srv_name_slash from cli_state to rpc_pipe_client
Volker Lendecke [Sat, 19 Apr 2008 20:05:13 +0000 (22:05 +0200)]
Fix two "ignoring asprintf result" warnings
Volker Lendecke [Sat, 19 Apr 2008 19:56:43 +0000 (21:56 +0200)]
Add "desthost" to rpc_pipe_client
This reduces the dependency on cli_state
Volker Lendecke [Sat, 19 Apr 2008 16:17:13 +0000 (18:17 +0200)]
Refactoring: Make struct rpc_pipe_client its own talloc parent
Volker Lendecke [Sat, 19 Apr 2008 21:50:58 +0000 (23:50 +0200)]
Set the right domain\user in cli_rpc_pipe_open_ntlmssp_internal
This probably does not matter in current code, but without this it's not
possible to do the bind as a different user than the underlying smb user.
Jeremy, please check!
Thanks,
Volker
Volker Lendecke [Sat, 19 Apr 2008 15:58:53 +0000 (17:58 +0200)]
Fix a bogus uninitialized variable warning in IDL-based nbt code
Volker Lendecke [Sat, 19 Apr 2008 14:56:44 +0000 (16:56 +0200)]
Fix bug 5400
Thanks to Jason Mader!
Volker
Volker Lendecke [Sat, 19 Apr 2008 14:54:26 +0000 (16:54 +0200)]
Fix bug 5399
Thanks to Jason Mader!
Volker
Volker Lendecke [Sat, 19 Apr 2008 11:08:14 +0000 (13:08 +0200)]
Fix bug 5398
Thanks to Jason Mader for sending the compiler output :-)
Volker
Volker Lendecke [Sat, 19 Apr 2008 15:04:46 +0000 (17:04 +0200)]
Fix an uninitialized variable
Stefan Metzmacher [Sat, 19 Apr 2008 00:45:10 +0000 (02:45 +0200)]
WHATNEW.txt: add my latest changes
metze
Stefan Metzmacher [Tue, 15 Apr 2008 08:57:16 +0000 (10:57 +0200)]
winbindd: create the messaging conntext earlier
metze
Stefan Metzmacher [Mon, 14 Apr 2008 23:02:42 +0000 (01:02 +0200)]
winbindd: call reinit_after_fork() in the child processes
metze
Stefan Metzmacher [Tue, 15 Apr 2008 08:50:27 +0000 (10:50 +0200)]
nmbd: create the messaging conntext earlier
metze
Stefan Metzmacher [Tue, 15 Apr 2008 08:38:21 +0000 (10:38 +0200)]
nmbd: call reinit_after_fork() in all needed cases
metze
Stefan Metzmacher [Mon, 14 Apr 2008 23:48:44 +0000 (01:48 +0200)]
printing: call reinit_after_fork() in the backgroundqueue process
metze
Stefan Metzmacher [Tue, 15 Apr 2008 08:57:45 +0000 (10:57 +0200)]
smbd: create the messaging conntext earlier
metze
Stefan Metzmacher [Mon, 14 Apr 2008 23:01:59 +0000 (01:01 +0200)]
smbd: call reinit_after_fork() in the needed places
metze
Stefan Metzmacher [Fri, 18 Apr 2008 08:20:01 +0000 (10:20 +0200)]
loadparm: make it possible to just load the config without following "include =" statements
metze
Stefan Metzmacher [Tue, 15 Apr 2008 08:36:15 +0000 (10:36 +0200)]
util: add reinit_after_fork() function
metze
Stefan Metzmacher [Mon, 14 Apr 2008 23:50:13 +0000 (01:50 +0200)]
smbd: merge "smbd:backgroundqueue=no" option from the v3-0-ctdb tree
metze
Stefan Metzmacher [Mon, 14 Apr 2008 23:18:50 +0000 (01:18 +0200)]
messages_ctdbd: autocreate a ctdb connection, this will fix segfaults in the client tools
metze
Stefan Metzmacher [Mon, 14 Apr 2008 23:18:06 +0000 (01:18 +0200)]
messages_ctdbd: make sure a ctdbd connection is only used in the process that created it
metze
Günther Deschner [Fri, 18 Apr 2008 09:42:51 +0000 (11:42 +0200)]
IDL: make idl.
Guenther
Günther Deschner [Fri, 18 Apr 2008 09:41:35 +0000 (11:41 +0200)]
IDL: Add type 23 in nbt_ntlogon_request reply packets.
Guenther
Jeremy Allison [Fri, 18 Apr 2008 07:30:50 +0000 (00:30 -0700)]
Janitor for tridge. Keep lib/replace in sync with the gcc4
changes.
Jeremy.
Günther Deschner [Thu, 17 Apr 2008 16:29:48 +0000 (18:29 +0200)]
IDL: Re-run make idl and hand merge some required functions from Samba 4.
Guenther
Günther Deschner [Thu, 17 Apr 2008 16:18:57 +0000 (18:18 +0200)]
IDL: add dom_sid0 to security.idl (hand merge from samba4).
Guenther
Michael Adam [Sun, 6 Apr 2008 20:23:54 +0000 (22:23 +0200)]
loadparm: reactivate special semantics of "include = registry" for now.
This includes the configuration stored in HKLM/Software/Samba/smbconf .
Michael
Jeremy Allison [Thu, 17 Apr 2008 16:25:45 +0000 (09:25 -0700)]
Merge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test
Jeremy Allison [Thu, 17 Apr 2008 16:24:54 +0000 (09:24 -0700)]
Fix the problem when -L is used with IPv6 addresses. Don't try to
connect on port 139 with IPv6. Found by David Holder @ Erion.
Karolin please merge to 3.2-stable.
Jeremy.
Gerald W. Carter [Thu, 17 Apr 2008 16:11:22 +0000 (18:11 +0200)]
Merge commit 'samba/v3-2-test' into wbc-test
Gerald W. Carter [Thu, 17 Apr 2008 16:09:08 +0000 (18:09 +0200)]
Remove unused variable from wbcCheckTrustCredentials().
Gerald W. Carter [Thu, 17 Apr 2008 16:07:18 +0000 (18:07 +0200)]
Convert "wbinfo -m" to use wbcListTrusts() API call.
Gerald W. Carter [Thu, 17 Apr 2008 16:06:10 +0000 (18:06 +0200)]
Add wbcListTrusts() API call to libwbclient.so
Stefan Metzmacher [Thu, 17 Apr 2008 14:26:59 +0000 (16:26 +0200)]
nbt.idl: fix parsing und pushing of dom_sids by using dom_sid0
metze
(cherry picked from commit
0e2f6d481b3e35ed392b2b3340b244c77593819c )
Jelmer Vernooij [Thu, 17 Apr 2008 15:44:40 +0000 (17:44 +0200)]
rpc_parse: Use UUIDs from librpc/gen_ndr/ when possible to reduce
duplication.
Gerald W. Carter [Thu, 17 Apr 2008 15:49:53 +0000 (17:49 +0200)]
Follow error code name convention in libwbclient.
s/WBC_INVALID_RESPONSE/WBC_ERR_INVALID_RESPONSE/
Jeremy Allison [Thu, 17 Apr 2008 15:02:46 +0000 (08:02 -0700)]
Fix gcc uninitialized variable used warning.
Jeremy.
Michael Adam [Thu, 17 Apr 2008 13:22:41 +0000 (15:22 +0200)]
build: add missing dependency for libtdb.so to pam_smbpass
Thanks to Andreas Schneider for noticing.
Michael
Günther Deschner [Wed, 16 Apr 2008 21:52:34 +0000 (23:52 +0200)]
Move GETDC mailslot out of winbindd.
Guenther
Günther Deschner [Wed, 16 Apr 2008 21:23:24 +0000 (23:23 +0200)]
IDL: build generated nbt code.
Guenther
Günther Deschner [Wed, 16 Apr 2008 21:16:59 +0000 (23:16 +0200)]
IDL: Add autogenerated nbt files.
Guenther
Günther Deschner [Wed, 16 Apr 2008 21:15:26 +0000 (23:15 +0200)]
IDL: Build nbt.idl always.
Guenther
Günther Deschner [Wed, 16 Apr 2008 21:12:03 +0000 (23:12 +0200)]
IDL: Add nbt.idl from Samba4.
Guenther
Günther Deschner [Thu, 17 Apr 2008 12:40:55 +0000 (14:40 +0200)]
wbclient: Remove unused string.
Guenther
Günther Deschner [Thu, 17 Apr 2008 12:09:29 +0000 (14:09 +0200)]
libnetapi: Disable talloc_enable_leak_report.
Guenther
Günther Deschner [Thu, 17 Apr 2008 12:07:53 +0000 (14:07 +0200)]
netdomjoin-gui: Fix label alignment showing up with lower screen-resolution.
Guenther
Günther Deschner [Thu, 17 Apr 2008 12:04:18 +0000 (14:04 +0200)]
libgpo: try nicer output when dumping gpo registry values.
Guenther
Günther Deschner [Thu, 17 Apr 2008 12:02:37 +0000 (14:02 +0200)]
libgpo: Fallback to NTLMSSP fails while pulling policy from SYSVOL.
Guenther
Jelmer Vernooij [Thu, 17 Apr 2008 11:51:00 +0000 (13:51 +0200)]
Add some comments.
Jelmer Vernooij [Thu, 17 Apr 2008 11:46:13 +0000 (13:46 +0200)]
Remove copying of interface syntax id.
Jelmer Vernooij [Tue, 15 Apr 2008 17:33:15 +0000 (19:33 +0200)]
fix return code.
Jelmer Vernooij [Tue, 15 Apr 2008 16:24:11 +0000 (18:24 +0200)]
Actually connect to RPC.
Jelmer Vernooij [Tue, 15 Apr 2008 15:55:44 +0000 (17:55 +0200)]
Add simple implementation of several functions in the Samba 4 RPC
library on top of the Samba 3 RPC library:
* dcerpc_pipe_connect
* dcerpc_ndr_request_recv
* dcerpc_ndr_request_send
These are the main functions used by the generated client calls in Samba
4.
Stefan Metzmacher [Wed, 16 Apr 2008 22:17:06 +0000 (00:17 +0200)]
wbinfo: use wbcCheckTrustCredentials()
metze
Stefan Metzmacher [Wed, 16 Apr 2008 21:35:12 +0000 (23:35 +0200)]
libwbclient: add wbcCheckTrustCredentials()
This only accepts NULL as domain for now,
because winbindd doesn't support checking
trust passwords as a domain controller.
metze
Stefan Metzmacher [Mon, 14 Apr 2008 07:35:15 +0000 (09:35 +0200)]
wbinfo: use wbcResolveWinsByName() and wbcResolveWinsByIP()
metze
Stefan Metzmacher [Mon, 14 Apr 2008 07:31:46 +0000 (09:31 +0200)]
libwbclient: add wbcResolveWinsByName() and wbcResolveWinsByIP()
metze
Günther Deschner [Wed, 16 Apr 2008 22:06:00 +0000 (00:06 +0200)]
net: Be more tolerant while joining.
Guenther
Günther Deschner [Wed, 16 Apr 2008 21:59:43 +0000 (23:59 +0200)]
NetrUnjoinDomain2: Honor registry config to try config changes.
Guenther
Günther Deschner [Wed, 16 Apr 2008 21:56:03 +0000 (23:56 +0200)]
dsgetdcname: Fix discover_dc_dns.
Guenther
Michael Adam [Wed, 16 Apr 2008 20:42:49 +0000 (22:42 +0200)]
libsmbconf: fix segfault in listing share names / config.
Discovered by Günther while giving a talk. - Sorry Günther!
Michael
Björn Jacke [Wed, 9 Apr 2008 14:27:20 +0000 (16:27 +0200)]
add AC_TRY_RUN_STRICT support for Sun Studio compiler
Gerald W. Carter [Wed, 16 Apr 2008 13:48:00 +0000 (15:48 +0200)]
Fix out of tree build. Remove the embedded srcdir path from talloc and tdb.
Günther Deschner [Wed, 16 Apr 2008 08:03:06 +0000 (10:03 +0200)]
libnetapi: Add initial inline doxygen comments.
Guenther
Günther Deschner [Wed, 16 Apr 2008 00:45:00 +0000 (02:45 +0200)]
net: Remove unused rpc_user_add/del_internals code.
Guenther
Günther Deschner [Wed, 16 Apr 2008 00:41:52 +0000 (02:41 +0200)]
net: Use NetUserAdd for "net rpc user add".
Guenther