1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-09 08:58:35 +03:00

23973 Commits

Author SHA1 Message Date
Mike Sweet
9fb111ba5f 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.
(This used to be commit 8eff35bc4acc13807c895af43b52db79ee195cb5)
2008-04-21 09:19:51 -07:00
Mike Sweet
7e166858c3 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.
(This used to be commit 8c12c5cea01d9b801fe80c2a87b8139c488a62a5)
2008-04-21 09:16:01 -07:00
Andrew Bartlett
154f4837b3 Add in a nice big comment explaining why SamLogonEx matters.
Andrew Bartlett
(This used to be commit 87232351b5e66728f8d602259961909e8c1dfcb6)
2008-04-21 17:48:31 +02:00
Günther Deschner
937091161b winbind: Use libnbt for NTLOGON SAMLOGON mailslot request and reply.
Guenther
(This used to be commit 2d6a1c5da64195784b0b102edb268356a24d84b5)
2008-04-21 11:03:32 +02:00
Günther Deschner
b437f09595 samlogoncache: Use data_blob_const in netsamlogon_cache_get.
Guenther
(This used to be commit f27a20f25c9b2038621a6394821bbedbf17daa73)
2008-04-21 10:25:28 +02:00
Michael Adam
0db7aba8af Remove redundant parameter fd from SMB_VFS_CLOSE().
Now all those redundant fd's have vanished from the VFS API.

Michael
(This used to be commit 14294535512a7f191c5008e622b6708e417854ae)
2008-04-21 00:22:42 +02:00
Michael Adam
8c9060240e Slight reformatting of fd_close_posix(), while I'm at it.
Wrap lines and remove trailing space.

Michael
(This used to be commit 74ed53a115b2063d4d5c8572af8f1302bc658882)
2008-04-21 00:21:24 +02:00
Michael Adam
2f8dde9ec8 Change fd_close_posix() to return int instead of NTSTATUS.
The errno is handed up through the VFS layer to the callers.

Michael
(This used to be commit d928e6648d61cf2d3c1b77db440efb835b729a84)
2008-04-21 00:21:24 +02:00
Michael Adam
96e9e83ee0 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
(This used to be commit df264bf3e00d7d77afcf55e54d2669b9ffa9af4a)
2008-04-21 00:21:24 +02:00
Michael Adam
3756467db6 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
(This used to be commit 3cf56b124a2886c6260455bba4bf77d08e9a4f77)
2008-04-21 00:21:23 +02:00
Michael Adam
00210d773b loadparm: reformat - fix whitespace/tab
Michael
(This used to be commit 3acc0d84dc8f29b67ddaa1124224a93cb43b07ad)
2008-04-21 00:21:23 +02:00
Michael Adam
4244655e5b loadparm: rename bNoIncludes to bAllowIncludeRegistry (inverting logic)
This is what that variable controls now...

Michael
(This used to be commit bba04a8fba6fd5cf62578733cfdabea590e8ff51)
2008-04-21 00:21:23 +02:00
Michael Adam
318c983d82 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
(This used to be commit 1bb28bc1d8e83d174cd171e9d96f22ac524187c3)
2008-04-21 00:21:23 +02:00
Günther Deschner
50e64115fc libnetapi: Add Doxyfile.
Guenther
(This used to be commit a34801d67789340b515c5e575c3fd3175dddbecf)
2008-04-20 23:20:21 +02:00
Günther Deschner
25c454cbba netdomjoin-gui: Omit warning when unjoining a domain fails.
Guenther
(This used to be commit ba1d2e87614a98b4f811c75a0d9cfa8491f5cb4d)
2008-04-20 23:20:21 +02:00
Günther Deschner
e03321697e cli_cm: Make nicer password prompt in do_connect().
Guenther
(This used to be commit cc967e76a39808e8311cc96c17078a0fce26c11a)
2008-04-20 23:20:21 +02:00
Michael Adam
8caaf0dc43 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
(This used to be commit f81da8e8ed8e2d75c77bd8b5e7fdd7c53bab7e49)
2008-04-20 22:29:36 +02:00
Michael Adam
d7da0f57fa 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
(This used to be commit 13cfa7f48a541a934a129fab0544cbf66029c4c7)
2008-04-20 22:29:36 +02:00
Michael Adam
166efed281 rpc_parse: fix "assignment discards qualifier" warning by using CONST_DISCARD.
Michael
(This used to be commit 0de001a5446545b928eb88e1916b4fe674017424)
2008-04-20 22:29:36 +02:00
Michael Adam
c57f1ab345 vfs_cacheprime: fix C++ warning - make implicit cast explicit
Michael
(This used to be commit 04d671b8c9bd5bf811e6dbd6981f1874eb49740c)
2008-04-20 22:29:35 +02:00
Volker Lendecke
712e40dad2 Fix some empty lines with just spaces
(This used to be commit f8fb9b7e3759bec7fbcf93b27438ca6b03202ddb)
2008-04-20 16:23:48 +02:00
Volker Lendecke
cee268b5cb Make convert_samr_dispinfo_to_NET_DISPLAY() static
(This used to be commit a30a26d471a572167ee13bf10be1a275a6592851)
2008-04-20 14:08:17 +02:00
Volker Lendecke
b9cc055062 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.
(This used to be commit c56e1c08cef107ff33a34346ceeca3475a102b19)
2008-04-20 14:08:16 +02:00
Volker Lendecke
0c17878e21 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.
(This used to be commit 7331c4c2781bf7904942c119f1a8de8eda00ae7e)
2008-04-20 14:08:16 +02:00
Volker Lendecke
e73e8297f5 Replace cli_rpc_pipe_close by a talloc destructor on rpc_pipe_struct
(This used to be commit 99fc3283c4ecc791f5a242bd1983b4352ce3e6cf)
2008-04-20 14:08:16 +02:00
Volker Lendecke
33592bdcb9 Refactoring: Move stuff around for creating a pipe
(This used to be commit 45be749ed69f8c1ad3ebe8ea1f35c806db2ed5d0)
2008-04-20 14:08:10 +02:00
Volker Lendecke
f56eedb95c Remove the pipe_idx variable from rpc_pipe_client
(This used to be commit 4840febcd481563c3d9b2fabc1fe1b2ae5a76cf6)
2008-04-20 11:47:33 +02:00
Volker Lendecke
ff8aa642f3 Remove some unused code referencing pipe_names[]
(This used to be commit d8a04b798c44c26a91a37fa7090dd071a1909166)
2008-04-20 11:27:24 +02:00
Volker Lendecke
cf2442bdcb 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.
(This used to be commit 3f6c5b99664a75a6f490ee3b6980b89cacf7f579)
2008-04-20 00:14:40 +02:00
Volker Lendecke
e1102b8f48 Introduce rpccli_set_timeout()
Reduce dependency on "cli" member of rpc_pipe_client struct
(This used to be commit 2e4c1ba38963cffe4c3f25ab24bc28975f2fc291)
2008-04-20 00:14:26 +02:00
Volker Lendecke
9048cafbea Move srv_name_slash from cli_state to rpc_pipe_client
(This used to be commit a9061e52e1ff8e31aa480f4a30cda64c9d93214e)
2008-04-20 00:14:13 +02:00
Volker Lendecke
4c857010e7 Fix two "ignoring asprintf result" warnings
(This used to be commit 1d261e78b38e8080ca7122037d33c8ef913a4558)
2008-04-20 00:13:39 +02:00
Volker Lendecke
2a2188591b Add "desthost" to rpc_pipe_client
This reduces the dependency on cli_state
(This used to be commit 783afab9c891dd7bcb78895b2a639b6f3a0edf5b)
2008-04-20 00:13:09 +02:00
Volker Lendecke
b46d340fd5 Refactoring: Make struct rpc_pipe_client its own talloc parent
(This used to be commit a6d74a5a562b54f0b36934965f545fdeb1e8b34a)
2008-04-20 00:12:52 +02:00
Volker Lendecke
fb73de3b92 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
(This used to be commit b90062e33cbde7de4961414fd35a3a588760d002)
2008-04-19 23:54:01 +02:00
Volker Lendecke
e7f2dc9889 Fix a bogus uninitialized variable warning in IDL-based nbt code
(This used to be commit 06c5076f8ef23ac36d234ed417b80a58ab8dd7b4)
2008-04-19 17:56:35 +02:00
Volker Lendecke
9ccbef219c Fix bug 5400
Thanks to Jason Mader!

Volker
(This used to be commit 87d8a63ce4e6dd91ea3193d0a2574520a5857be2)
2008-04-19 17:04:09 +02:00
Volker Lendecke
b7d2e94296 Fix bug 5399
Thanks to Jason Mader!

Volker
(This used to be commit 36740f4959194cfaa98b1e37eed08f22edbda1e4)
2008-04-19 17:04:09 +02:00
Volker Lendecke
c071b941e6 Fix bug 5398
Thanks to Jason Mader for sending the compiler output :-)

Volker
(This used to be commit 7a57c2da1a6cc0fcea0b4d949c696219f1822694)
2008-04-19 17:04:09 +02:00
Volker Lendecke
a8ab283508 Fix an uninitialized variable
(This used to be commit 825f78d9f12b5b3e835bd91961e00402cab0bf60)
2008-04-19 17:03:09 +02:00
Stefan Metzmacher
913cd26b2b winbindd: create the messaging conntext earlier
metze
(This used to be commit 2e1b9130635235efdbf49d0b92a43b342114246c)
2008-04-18 15:00:20 +02:00
Stefan Metzmacher
94b603648f winbindd: call reinit_after_fork() in the child processes
metze
(This used to be commit 8e9fdef792e612e414444e7714a2fd4513892248)
2008-04-18 15:00:20 +02:00
Stefan Metzmacher
384282c35f nmbd: create the messaging conntext earlier
metze
(This used to be commit 056ff094ad2c59992cfdb8b29696c08dab4113d7)
2008-04-18 15:00:19 +02:00
Stefan Metzmacher
c5d1a3c710 nmbd: call reinit_after_fork() in all needed cases
metze
(This used to be commit f68829ff14c457bfa98cb2ef9e8ec2e1a0b1d64d)
2008-04-18 15:00:19 +02:00
Stefan Metzmacher
c5615c6113 printing: call reinit_after_fork() in the backgroundqueue process
metze
(This used to be commit 9adb675a86e81c90e2bddfe984b5ac8f201fec75)
2008-04-18 15:00:19 +02:00
Stefan Metzmacher
2df0ade13a smbd: create the messaging conntext earlier
metze
(This used to be commit 658d8475336c4397e0dad341f216baf9e1eb6aaf)
2008-04-18 15:00:19 +02:00
Stefan Metzmacher
f2067658df smbd: call reinit_after_fork() in the needed places
metze
(This used to be commit 425b3513a45cf98b53235470a3536be86d56d1c2)
2008-04-18 14:43:08 +02:00
Stefan Metzmacher
49bf9d35cd loadparm: make it possible to just load the config without following "include =" statements
metze
(This used to be commit 6b5c76bf1e880ec60d6b044c58115940549049e5)
2008-04-18 14:43:07 +02:00
Stefan Metzmacher
bd1b120c2d util: add reinit_after_fork() function
metze
(This used to be commit 5f6c3a4f6db68c985884cbe9401a4dbe515f756b)
2008-04-18 14:43:07 +02:00
Stefan Metzmacher
b7a141f8a7 smbd: merge "smbd:backgroundqueue=no" option from the v3-0-ctdb tree
metze
(This used to be commit 16d295d466eb18e3bccce6fb26d53012d5f2c3e8)
2008-04-18 14:43:07 +02:00