1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00
Commit Graph

1670 Commits

Author SHA1 Message Date
Volker Lendecke
e198b9d167 r24087: Fix bug 4836, patch by Matthijs Kooijman <matthijs@stdin.nl>. Thanks!
Volker
(This used to be commit 6c3813cf65)
2007-10-10 12:29:04 -05:00
Stefan Metzmacher
c8a07d8431 r24017: merge from http://samba.org/~tridge/samba_3_2_ctdb/:
add add_trusted_domain() can return NULL

metze
(This used to be commit 12440efe0b)
2007-10-10 12:28:56 -05:00
Volker Lendecke
9a97fb7ff3 r23974: Fix Coverity ID 361. num_rids == 0 is caught on function entry
(This used to be commit 839d64add4)
2007-10-10 12:28:51 -05:00
Michael Adam
b82060b88f r23931: Use the new tdb_validate_and_backup function instead of pure tdb_validate
in winbindd cache validation.

Michael
(This used to be commit 2c2a1ff2c2)
2007-10-10 12:28:46 -05:00
Günther Deschner
4b4a3c7df1 r23928: Merge all "copy-info3-groups-to-sid-array" blocks to a sid_array_from_info3()
function.

Guenther
(This used to be commit 1e1e480115)
2007-10-10 12:28:45 -05:00
Volker Lendecke
ffd2b4e4cd r23884: Fix Coverity ID 379
(This used to be commit 86476efc7a)
2007-10-10 12:28:38 -05:00
Andrew Tridgell
153cfb9c83 r23801: The FSF has moved around a lot. This fixes their Mass Ave address.
(This used to be commit 87c91e4362)
2007-10-10 12:28:27 -05:00
Andrew Tridgell
28b9d61076 r23800: LGPL is now called GNU Lesser General Public License
not GNU Library General Public License
(This used to be commit 727a6cf2cb)
2007-10-10 12:28:26 -05:00
Andrew Tridgell
9fa1c63578 r23798: updated old Temple Place FSF addresses to new URL
(This used to be commit c676a97114)
2007-10-10 12:28:26 -05:00
Andrew Tridgell
fd881dad3f r23794: convert more code from LGPLv2+ to LGPLv3+
(This used to be commit f3df6cd87e)
2007-10-10 12:28:25 -05:00
Andrew Tridgell
34bb47c9b0 r23791: found some more v2->v3 conversions
(This used to be commit b6cbac3db3)
2007-10-10 12:28:25 -05:00
Andrew Tridgell
5e54558c6d r23784: use the GPLv3 boilerplate as recommended by the FSF and the license text
(This used to be commit b0132e94fc)
2007-10-10 12:28:22 -05:00
Jeremy Allison
d824b98f80 r23779: Change from v2 or later to v3 or later.
Jeremy.
(This used to be commit 407e6e695b)
2007-10-10 12:28:20 -05:00
Michael Adam
5e4962d9e7 r23769: Move removal of the tdb from the generic tdb_validate function
to the caller (winbindd_validate_cache in this case).
Next, there will be a backup handling for the tdb files.

Michael
(This used to be commit 821bc84109)
2007-10-10 12:23:55 -05:00
Michael Adam
9406f7d4d2 r23763: Fix a typo in DEBUG message.
Thanks to Karolin Seeger (ks@sernet.de)
(This used to be commit 0ae6ae4ee8)
2007-10-10 12:23:53 -05:00
Lars Müller
c05cbbe41c r23733: Limit LDAP lookup in lookup_usergroups_member() to security groups.
Credits to Ralf Haferkamp for the discussion and help on this.
(This used to be commit 5be96d09a7)
2007-10-10 12:23:50 -05:00
Gerald Carter
a6706eee9b r23730: Squashed commit of the following:
commit 3941269fa01038fca242a197e8d7c1f234d45ea7
Author: Gerald (Jerry) Carter <jerry@samba.org>
Date:   Thu Jul 5 14:52:03 2007 -0500

    Two fixes for "winbind expand groups".

    (a) Update the counter for the number of new groups to resolve else
        we'll only expand one group member per level and drop the rest.
    (b) Don't reset the num_names counter in winbindd_ads.c:lookup_groupmem()
        or we'll drop the SIDs resolved to names via cache from the resulting
        list.
(This used to be commit dfb89dfcaa)
2007-10-10 12:23:49 -05:00
Lars Müller
b824a665bb r23708: - Add define for WINBIND_WARN_PWD_EXPIRE.
- Add parameter config_flag to get_config_item_int() and do the same
  check as in get_conf_item_string.
(This used to be commit d1d1baa264)
2007-10-10 12:23:47 -05:00
Lars Müller
2f6b9c1ec4 r23707: - Move the asprintf() call to create the key even in
get_conf_item_string() to the later if statement.
- Also move the key definition to the later if statement in
  get_conf_item_string() and get_conf_item_int().
(This used to be commit 3a82ec943a)
2007-10-10 12:23:47 -05:00
Lars Müller
a3de7e9b9d r23704: Add pam_pwd_expire feature as discussed on samba-technical.
This is a slightly modified version to set warn_pwd_expire to the
default value if 0, no, or a broken value is set.

This version also has one if statement less in get_config_item_int().

Thanks a lot to Andreas 'GlaDiaC' Schneider for this feature!
(This used to be commit d26914c978)
2007-10-10 12:23:46 -05:00
Günther Deschner
7d6b8ff5b7 r23672: Allow msrpc_name_to_sid() to be called without a domain_name and just a name.
Guenther
(This used to be commit eeed62b6ca)
2007-10-10 12:23:45 -05:00
Gerald Carter
e10258ff05 r23632: Correctly return the new_group list pointer from expand_groups
or else getgrnam() always  acts like 'winbind expand groups = 1'
(This used to be commit 04ae193ec4)
2007-10-10 12:23:38 -05:00
Günther Deschner
7eb828135b r23627: Allow to pass down the lookup-level to rpccli_lsa_lookup_names().
Guenther
(This used to be commit e9a7512a9f)
2007-10-10 12:23:38 -05:00
Günther Deschner
d4a2898943 r23625: Reformating WBFLAGs, just a cosmetic change.
Guenther
(This used to be commit 555ae4a19b)
2007-10-10 12:23:38 -05:00
Gerald Carter
a500b34feb r23619: Fix compile warning in fill_grent_mem() caused by mismatched counter size.
(This used to be commit 05520d6b0a)
2007-10-10 12:23:37 -05:00
James Peach
d30d4383c2 r23611: Fix typo in error message.
(This used to be commit 8ee76e4384)
2007-10-10 12:23:36 -05:00
Michael Adam
7c48598e86 r23610: Move some winbindd_cache specific flags and actions
back to winbindd_cache.c. The generic mechanism
should open the cache tdb readonly and with default
flags.

Michael
(This used to be commit 062d8c6129)
2007-10-10 12:23:36 -05:00
Günther Deschner
2afb72337a r23608: Just inline comment cosmetics.
Guenther
(This used to be commit 90c810674d)
2007-10-10 12:23:36 -05:00
Günther Deschner
47bd42ab1c r23607: Add legacy support for Services for Unix (SFU) 2.0.
Guenther
(This used to be commit 11b390309b)
2007-10-10 12:23:35 -05:00
Gerald Carter
e1319eb0e8 r23601: BUG 4579: Don't mark the SAM domain on a Samba DC as an internal domain or else all network connections from the local winbindd will fail
(This used to be commit 5e0f8b114b)
2007-10-10 12:23:35 -05:00
Michael Adam
133472ac66 r23600: First step in abstracting the winbindd cache validation
code into a generic tdb validation code.
In lib/util_tdb.c for a start.

Michael
(This used to be commit 527edfa0cb)
2007-10-10 12:23:35 -05:00
Jeremy Allison
f1d263eb62 r23577: Fix winbindd (sorry). Ensure I set the new child_pid
variable at the correct point just before the write
call is scheduled.
Jeremy.
(This used to be commit e076dc1646)
2007-10-10 12:23:31 -05:00
Jeremy Allison
ead4ea509e r23574: Remove double-null check (I hate people bitching at me
on the lists :-).
Jeremy.
(This used to be commit f075620d20)
2007-10-10 12:23:31 -05:00
Jeremy Allison
8be22f89f0 r23573: Cope with terminating winbindd children on read/write/timeout
communication failures. Set timeout to 5 mins. Ensure that
we're terminating the correct child (the one we thought we
were talking to). Still setting up my testing environment
but I have high hopes for this being the fix for the 3.0.25b
showstopper.
Jeremy.
(This used to be commit c366df2fe7)
2007-10-10 12:23:31 -05:00
Günther Deschner
d7c9bbccfd r23568: Remove last traces of Heimdal KCM support (and don't misuse wbinfo where a
torture test would be much more appropriate). Fix #4408.

Guenther
(This used to be commit 7514a370ca)
2007-10-10 12:23:30 -05:00
Günther Deschner
f4eb916e85 r23565: Avoid double NULL pointer checks.
Guenther
(This used to be commit 5456ea59ba)
2007-10-10 12:23:30 -05:00
Günther Deschner
fd881f4067 r23564: Handle MSG_DUMP_EVENT_LIST only in winbindd for now.
Guenther
(This used to be commit 2592e68a43)
2007-10-10 12:23:29 -05:00
Kai Blin
fb2246f303 r23539: Remove code duplication and unify behaviour of winbind_nss_*.h files
(This used to be commit 13c6eacff0)
2007-10-10 12:23:26 -05:00
Simo Sorce
f46690c3bb r23525: I believe this patch is ok, got no reply of it being not ok.
This closes #4624 for me.
(This used to be commit 3635b30415)
2007-10-10 12:23:25 -05:00
Jeremy Allison
b877360b2e r23515: Ensure status isn't used uninitialized.
Jeremy.
(This used to be commit 5b2836e2d5)
2007-10-10 12:23:24 -05:00
James Peach
b1ce226af8 r23510: Tidy calls to smb_panic by removing trailing newlines. Print the
failed expression in SMB_ASSERT.
(This used to be commit 171dc060e2)
2007-10-10 12:23:23 -05:00
Gerald Carter
7f7ef53720 r23496: Fix logic error in getgrnam_recv() that broke
getgrnam() for machine and domain local groups.
(This used to be commit 4d4c1eca30)
2007-10-10 12:23:21 -05:00
Gerald Carter
4caefdf348 r23474: Here's a small patch that disables the libkrb5.so replay cache
when verifying a ticket from winbindd_pam.c.

I've found during multiple, fast, automated SSH logins (such
as from a cron script) that the replay cache in MIT's krb5
lib will occasionally fail the krb5_rd_req() as a replay attack.

There seems to be a small window during which the MIT krb5
libs could reproduce identical time stamps for ctime and cusec
in the authenticator since Unix systems only give back
milli-seconds rather than the micro-seconds needed by the
authenticator.  Checked against MIT 1.5.1.  Have not
researched how Heimdal does it.

My thinking is that if someone can spoof the KDC and TDS
services we are pretty hopeless anyways.
(This used to be commit cbd33da9f7)
2007-10-10 12:23:19 -05:00
Gerald Carter
78d6b95e18 r23471: Here's a rough patch for expanding domain group membership
in the winbindd_getgrnam() call.  Couple of comments:

* Adds "winbind expand groups" parameter which defines the
  max depth winbindd will expand group members.  The default
  is the current behavior of one level of expansion.
* The entire getrgnam() interface should be async.  I
  haven't done that.
* Refactors the domain users hack in fill_grent_mem() into
  its own function.
(This used to be commit 3d3a813035)
2007-10-10 12:23:19 -05:00
Jeremy Allison
5aadea741f r23448: Doh ! Don't call winbind_child_died() *before* the
kill call as that sets pid = 0 ! :-).
Jeremy.
(This used to be commit bcfce39094)
2007-10-10 12:23:17 -05:00
Jeremy Allison
a5f3e848c0 r23447: Add kill signal to child dead path. After talking
to Jerry add to 3.0.25b.
Jeremy.
(This used to be commit ade91e78cb)
2007-10-10 12:23:16 -05:00
Volker Lendecke
07d2301040 r23446: Restore Jeremy's original formatting, just fix the comment.
(This used to be commit 5b983957e3)
2007-10-10 12:23:16 -05:00
Volker Lendecke
501d97c653 r23426: Correct a comment. The default timeout is not 1min, but 30s. While
there, do some reformatting.

Jeremy, I think we should also kill the child. It might hang in
something (an fcntl lock for example) that the next child might run into
immediately again.
(This used to be commit 6729a4df4b)
2007-10-10 12:23:15 -05:00
Jeremy Allison
24e05d4df2 r23424: Thanks to Jerry, we finally tracked down the :
winbindd: Exceeding 200 client connections, no idle connection found"
bug #3204. This fixes it in Jerry's testing !
Jeremy.
(This used to be commit 0c7ce6a682)
2007-10-10 12:23:15 -05:00
Volker Lendecke
de565785f5 r23410: Merge the core of the cluster code.
I'm 100% certain I've forgotten to merge something, but the main code
should be in. It's mainly in dbwrap_ctdb.c, ctdbd_conn.c and
messages_ctdbd.c.

There should be no changes to the non-cluster case, it does survive make
test on my laptop.

It survives some very basic tests with ctdbd enables, I did not do the
full test suite for clusters yet.

Phew...

Volker
(This used to be commit 15553d6327)
2007-10-10 12:23:14 -05:00