1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00
Commit Graph

30060 Commits

Author SHA1 Message Date
Steve French
34c073c351 mount.cifs: unclear error message with "credentials"
Thanks to Christophe Curis for the suggestion
(This used to be commit 3b5ad9190d)
2008-08-27 17:00:00 -05:00
Jeremy Allison
e588f0bc36 Be explicit about setting perms for the ldb. Helps others who may use this api.
Jeremy.
(This used to be commit f0ea0f3502)
2008-08-27 11:28:18 -07:00
Karolin Seeger
dee5f09357 ldb: Fix permissions of new ldg files.
This one fixes together with 2eaf4ed62 bug #5715 and CVE-2008-3789.

Thanks to Steve Langasek <vorlon@debian.org> for reporting!

Karolin
(cherry picked from commit b666d0a4b5)
(This used to be commit 73f54df7fe)
2008-08-27 13:32:09 +02:00
Andrew Tridgell
9a89e30229 ldb: Fix permissions of group_mapping.ldb.
This one fixes bug #5715 and CVE-2008-3789.
(cherry picked from commit a94f44c49f)
(This used to be commit 2eaf4ed622)
2008-08-27 12:08:39 +02:00
Jeremy Allison
dc3f6b0861 Fix bug spotted by Simo - don't use legacy if expired entry.
Jeremy.
(This used to be commit a7bbd33139)
2008-08-26 18:05:34 -07:00
Jeremy Allison
d1f140a9ba Don't ask winbindd if we got a -ve cache entry.
Jeremy.
(This used to be commit 91f85d0dca)
2008-08-26 16:14:25 -07:00
Jeremy Allison
95cc5ee395 Fix the build :-(. Ask winbindd if we find a negative cache entry (or should
we just call the legacy function ?).
Jeremy.
(This used to be commit 566d3b6e76)
2008-08-26 15:51:56 -07:00
Jeremy Allison
d2f223d83d Get smbd to look (read-only) into the winbindd cache for uid/gid <--> sid mappings.
Jeremy.
(This used to be commit 31ba955d69)
2008-08-26 14:52:11 -07:00
Volker Lendecke
c529cd153f Increase the default positive idmap cache time to a week
(This used to be commit 60af636750)
2008-08-26 13:01:11 -07:00
Volker Lendecke
13c66c8eb1 Move idmap_cache.c from winbindd/ to lib/
(This used to be commit fe70dcc1b6)
2008-08-26 12:56:47 -07:00
Michael Adam
95fc1e56fb run make idl after idl change "Handle arbitrary new PAC types"
Michael
(This used to be commit 5de253ba13)
2008-08-26 16:09:50 +02:00
Andrew Tridgell
5b851c93bd Handle arbitrary new PAC types
When MS introduces a new PAC type, we should just ignore it, not
generate a parse error. New PAC info structures are supposed to be
backwards compatible with old ones
(This used to be commit 2971b926c8)
2008-08-26 15:07:29 +02:00
Andrew Tridgell
39697d5745 EINVAL is also a valid error return, meaning "this filesystem
cannot do sendfile for this file"
(This used to be commit 737f664604)
2008-08-26 14:39:43 +02:00
Andrew Tridgell
563a7ccdd9 become root for AIO operations
We need to become root for AIO read and write to allow the AIO thread
to send a completion signal to the parent process when the IO
completes
(This used to be commit c548e5c69f)
2008-08-26 14:39:43 +02:00
Andrew Tridgell
d9f61dbdc9 Avoid a race condition in glibc between AIO and setresuid().
See this test: http://samba.org/~tridge/junkcode/aio_uid.c

The problem is that setresuid() tries to be clever about threads, and
tries to change the euid of any threads that are running. If a AIO read
or write completes while this is going on then the signal from the thread
where the IO completed is lost, as it gets -1/EPERM from rt_sigqueueinfo()

The simplest fix is to try to use setreuid() instead of setresuid(),
as setreuid() doesn't try to be clever. Unfortunately this also means
we must use become_root()/unbecome_root() in the aio code.
(This used to be commit 56c5a6f024)
2008-08-26 14:39:42 +02:00
Andrew Tridgell
52c39dd55d fixed an errno handling bug that could lead to an infinite loop
(This used to be commit 5ccdc58ce9)
2008-08-26 14:39:42 +02:00
Andrew Tridgell
f09e8ce2ce fixed tsmsm_sendfile(). The logic was totally broken.
(This used to be commit 794e48b809)
2008-08-26 14:39:42 +02:00
Günther Deschner
98c3324cc3 build: make sure to create CODEPAGEDIR and MODULESDIR.
Guenther
(This used to be commit d31683cdc8)
2008-08-26 13:47:43 +02:00
David Leonard
9f93d4e5e1 Fix bug 4516, no IPv6 on Solaris 2.6.
(This used to be commit b5d0f751e4)
2008-08-25 15:17:53 -07:00
Günther Deschner
e682f09da5 winbindd: use set_auth_errors() in winbindd_dual_check_machine_acct as well.
Guenther
(This used to be commit bb9c59e892)
2008-08-25 13:18:02 +02:00
Günther Deschner
66fa77ba9e winbindd: move set_auth_errors to util functions.
Guenther
(This used to be commit ae3fa60c45)
2008-08-25 13:18:01 +02:00
Günther Deschner
fd5b2f4206 winbindd: only create machine pwd change event when in primary domain child.
Guenther
(This used to be commit 543dfdc1cf)
2008-08-25 11:37:57 +02:00
Günther Deschner
ab5076d9fd auth: Fix build warning.
Guenther
(This used to be commit 4661ef625a)
2008-08-25 11:36:56 +02:00
Volker Lendecke
4e479737f3 Fix some nonempty blank lines
(This used to be commit 010c7101e5)
2008-08-24 12:48:30 +02:00
Volker Lendecke
3d13cdfa92 Fix some C++ warnings
(This used to be commit dd9e4e6db0)
2008-08-24 12:48:23 +02:00
Volker Lendecke
1924e7931c Revert "Protect against short read&x replies"
This reverts commit 4ed73cbbbe.

... how did this end up here??

Volker
(This used to be commit 7dd9fd0956)
2008-08-23 15:41:00 +02:00
Volker Lendecke
56cd17dfe1 Protect against short read&x replies
(This used to be commit 4ed73cbbbe)
2008-08-23 15:12:39 +02:00
Volker Lendecke
d7d3b37d56 Fix some nonempty blank lines
(This used to be commit 541e088656)
2008-08-23 15:12:10 +02:00
Volker Lendecke
c33e648fa5 Use talloc_stackframe() in machine_password_change_handler
(This used to be commit 79103000b1)
2008-08-23 13:19:35 +02:00
Volker Lendecke
03dfaf37fd Fix a memleak in calculate_next_machine_pwd_change
(This used to be commit 5314f06dcd)
2008-08-23 13:19:35 +02:00
Günther Deschner
6e89443eba winbindd: add event based machine password change.
Guenther
(This used to be commit 15b72d44cb)
2008-08-23 13:19:35 +02:00
Jeremy Allison
4a5ccfb91f Don't re-initialize a token when we already have one. This fixes the build farm failures when winbindd connects as guest.
This one took a *lot* of tracking down :-).
Jeremy.
(This used to be commit dca8277912)
2008-08-22 13:49:46 -07:00
Gerald (Jerry) Carter
5571bd2913 idmap_gid_to_sid: Fix a cut-a-npaste error.
The call was looking up a uid and not gid in the cache.
(This used to be commit 25293ba150)
2008-08-22 14:54:50 -05:00
Gerald (Jerry) Carter
7e0314f6a2 winbindd: Fix crash in cm_connect_sam()
Fix segv when talking to parent DC (joined to child domain).

The root cause was

(a) storing the parent domain in the cli_state struct caused
    the NTLMSSP pipe bind to fail which made us fallover to
    the schannel code path
(b) the dcinfo pointer in cm_get_schannel_dcinfo() was returning
    NULL even though the function indicated success.
(This used to be commit 5ce4a2ae66)
2008-08-22 14:50:58 -05:00
Jeff Layton
2ed60a4f6a cifs.upcall: bump SPNEGO msg version number and don't reject old versions
When we added the ability for the kernel to send sec=mskrb5 to the
upcall, we subtly broke old cifs.upcall versions that don't understand
it. Bump the spnego message version to 2 to make this clear. Also,
change cifs.upcall to not reject requests with a version that's lower
than the current one, and to send the reply with the same version that
the request sent. The idea is to try and keep cifs.upcall backward
compatible with old kernels.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
(This used to be commit b868463015)
2008-08-22 13:29:16 -04:00
Karolin Seeger
2f02c33982 manpages: Add documentation for new 'net rpc vampire' subcommands.
Karolin
(This used to be commit 8d0a16d803)
2008-08-22 17:23:36 +02:00
Karolin Seeger
2d2646e13d net: Add missing colon to unify usage messages.
Karolin
(This used to be commit c7aef4b38b)
2008-08-22 16:47:19 +02:00
Karolin Seeger
981431fb93 manpages: Add manpage for "init logon delayed hosts".
Karolin
(This used to be commit a415244365)
2008-08-22 11:04:49 +02:00
Karolin Seeger
d5fa943cbd manpages: Add manpage for "init logon delay".
Karolin
(This used to be commit fc5010e6d9)
2008-08-22 11:04:16 +02:00
Karolin Seeger
b90607e6e8 loadparm: idmap backend is not depracated any longer.
Karolin
(This used to be commit fcfab47036)
2008-08-22 10:06:26 +02:00
Jeff Layton
e1523fdce4 cifs.upcall: fix build warning
Signed-off-by: Jeff Layton <jlayton@redhat.com>
(This used to be commit aa3443492c)
2008-08-21 21:21:48 -04:00
Jeff Layton
2c96b1fd5b cifs.upcall: enable building by default on linux
When building on linux, default to building cifs.upcall. Throw a
warning if ADS support is disabled or keyutils isn't installed.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
(This used to be commit d8018d15f0)
2008-08-21 19:41:14 -04:00
Jeff Layton
a835c28bb7 cifs.upcall: move default install location to EPREFIX/sbin
cifs.upcall links to libraries that live under /usr, so installing it
in /sbin doesn't seem appropriate. Move it to EPREFIX/sbin instead
(i.e. /usr/sbin).

Signed-off-by: Jeff Layton <jlayton@redhat.com>
(This used to be commit 5c9a1b2c98)
2008-08-21 19:40:14 -04:00
Jeff Layton
6cbebac514 cifs.upcall: handle MSKRB5 OID properly
When the kernel sends the upcall a sec=mskrb5 parameter, that means
the the MSKRB5 OID is preferred by the server. This patch fixes the
upcall to use that OID in place of the "normal" krb5 OID when it
gets a sec=mskrb5 parameter.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Acked-by: Steve French <smfrench@gmail.com>
(This used to be commit 6287e13b34)
2008-08-21 19:38:41 -04:00
Jeff Layton
3be3dac17d mount.cifs: don't prompt for password on krb5 mounts
krb5 mounts require that the user already have a valid krb5 ticket.
Since we can't currently use the password entered, don't prompt for it.

Also, switch to using strncmp instead of strcmp here.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
(This used to be commit c75791c34a)
2008-08-21 19:38:35 -04:00
Jeremy Allison
129e71a97a Fix broken net rpc join message when DC can't be found. Ensure we pass in a domain name.
Jeremy.
(This used to be commit 33019fe2b5)
2008-08-21 15:27:22 -07:00
Günther Deschner
efbb8c189d rpc_server: make it a little more obvious what flags we send to a client.
Guenther
(This used to be commit f3791e03ab)
2008-08-22 00:21:31 +02:00
Günther Deschner
b67adb49ec Fix Bug #5710 and make machine account password changing work again.
When we negotiated NETLOGON_NEG_PASSWORD_SET2 we need to use
NetrServerPasswordSet2 to change the machine password.

Tested with NT4, W2k, W2k3 and W2k8.

Guenther
(This used to be commit 5820360451)
2008-08-21 23:45:24 +02:00
Jeremy Allison
9efccda1cc Fix bug 5698 - mixup of TALLOC/malloc. Spotted by Douglas Wegscheid <Douglas_E_Wegscheid@whirlpool.com>.
Jeremy.
(This used to be commit 1295bb9787)
2008-08-21 10:25:02 -07:00
Günther Deschner
f2564f1dcc re-run make idl.
Guenther
(This used to be commit f24cef9fa7)
2008-08-21 15:06:38 +02:00