1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-19 21:57:57 +03:00

1670 Commits

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

metze
2007-10-10 12:28:56 -05:00
Volker Lendecke
839d64add4 r23974: Fix Coverity ID 361. num_rids == 0 is caught on function entry 2007-10-10 12:28:51 -05:00
Michael Adam
2c2a1ff2c2 r23931: Use the new tdb_validate_and_backup function instead of pure tdb_validate
in winbindd cache validation.

Michael
2007-10-10 12:28:46 -05:00
Günther Deschner
1e1e480115 r23928: Merge all "copy-info3-groups-to-sid-array" blocks to a sid_array_from_info3()
function.

Guenther
2007-10-10 12:28:45 -05:00
Volker Lendecke
86476efc7a r23884: Fix Coverity ID 379 2007-10-10 12:28:38 -05:00
Andrew Tridgell
87c91e4362 r23801: The FSF has moved around a lot. This fixes their Mass Ave address. 2007-10-10 12:28:27 -05:00
Andrew Tridgell
727a6cf2cb r23800: LGPL is now called GNU Lesser General Public License
not GNU Library General Public License
2007-10-10 12:28:26 -05:00
Andrew Tridgell
c676a97114 r23798: updated old Temple Place FSF addresses to new URL 2007-10-10 12:28:26 -05:00
Andrew Tridgell
f3df6cd87e r23794: convert more code from LGPLv2+ to LGPLv3+ 2007-10-10 12:28:25 -05:00
Andrew Tridgell
b6cbac3db3 r23791: found some more v2->v3 conversions 2007-10-10 12:28:25 -05:00
Andrew Tridgell
b0132e94fc r23784: use the GPLv3 boilerplate as recommended by the FSF and the license text 2007-10-10 12:28:22 -05:00
Jeremy Allison
407e6e695b r23779: Change from v2 or later to v3 or later.
Jeremy.
2007-10-10 12:28:20 -05:00
Michael Adam
821bc84109 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
2007-10-10 12:23:55 -05:00
Michael Adam
0ae6ae4ee8 r23763: Fix a typo in DEBUG message.
Thanks to Karolin Seeger (ks@sernet.de)
2007-10-10 12:23:53 -05:00
Lars Müller
5be96d09a7 r23733: Limit LDAP lookup in lookup_usergroups_member() to security groups.
Credits to Ralf Haferkamp for the discussion and help on this.
2007-10-10 12:23:50 -05:00
Gerald Carter
dfb89dfcaa 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.
2007-10-10 12:23:49 -05:00
Lars Müller
d1d1baa264 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.
2007-10-10 12:23:47 -05:00
Lars Müller
3a82ec943a 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().
2007-10-10 12:23:47 -05:00
Lars Müller
d26914c978 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!
2007-10-10 12:23:46 -05:00
Günther Deschner
eeed62b6ca r23672: Allow msrpc_name_to_sid() to be called without a domain_name and just a name.
Guenther
2007-10-10 12:23:45 -05:00
Gerald Carter
04ae193ec4 r23632: Correctly return the new_group list pointer from expand_groups
or else getgrnam() always  acts like 'winbind expand groups = 1'
2007-10-10 12:23:38 -05:00
Günther Deschner
e9a7512a9f r23627: Allow to pass down the lookup-level to rpccli_lsa_lookup_names().
Guenther
2007-10-10 12:23:38 -05:00
Günther Deschner
555ae4a19b r23625: Reformating WBFLAGs, just a cosmetic change.
Guenther
2007-10-10 12:23:38 -05:00
Gerald Carter
05520d6b0a r23619: Fix compile warning in fill_grent_mem() caused by mismatched counter size. 2007-10-10 12:23:37 -05:00
James Peach
8ee76e4384 r23611: Fix typo in error message. 2007-10-10 12:23:36 -05:00
Michael Adam
062d8c6129 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
2007-10-10 12:23:36 -05:00
Günther Deschner
90c810674d r23608: Just inline comment cosmetics.
Guenther
2007-10-10 12:23:36 -05:00
Günther Deschner
11b390309b r23607: Add legacy support for Services for Unix (SFU) 2.0.
Guenther
2007-10-10 12:23:35 -05:00
Gerald Carter
5e0f8b114b 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 2007-10-10 12:23:35 -05:00
Michael Adam
527edfa0cb 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
2007-10-10 12:23:35 -05:00
Jeremy Allison
e076dc1646 r23577: Fix winbindd (sorry). Ensure I set the new child_pid
variable at the correct point just before the write
call is scheduled.
Jeremy.
2007-10-10 12:23:31 -05:00
Jeremy Allison
f075620d20 r23574: Remove double-null check (I hate people bitching at me
on the lists :-).
Jeremy.
2007-10-10 12:23:31 -05:00
Jeremy Allison
c366df2fe7 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.
2007-10-10 12:23:31 -05:00
Günther Deschner
7514a370ca 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
2007-10-10 12:23:30 -05:00
Günther Deschner
5456ea59ba r23565: Avoid double NULL pointer checks.
Guenther
2007-10-10 12:23:30 -05:00
Günther Deschner
2592e68a43 r23564: Handle MSG_DUMP_EVENT_LIST only in winbindd for now.
Guenther
2007-10-10 12:23:29 -05:00
Kai Blin
13c6eacff0 r23539: Remove code duplication and unify behaviour of winbind_nss_*.h files 2007-10-10 12:23:26 -05:00
Simo Sorce
3635b30415 r23525: I believe this patch is ok, got no reply of it being not ok.
This closes #4624 for me.
2007-10-10 12:23:25 -05:00
Jeremy Allison
5b2836e2d5 r23515: Ensure status isn't used uninitialized.
Jeremy.
2007-10-10 12:23:24 -05:00
James Peach
171dc060e2 r23510: Tidy calls to smb_panic by removing trailing newlines. Print the
failed expression in SMB_ASSERT.
2007-10-10 12:23:23 -05:00
Gerald Carter
4d4c1eca30 r23496: Fix logic error in getgrnam_recv() that broke
getgrnam() for machine and domain local groups.
2007-10-10 12:23:21 -05:00
Gerald Carter
cbd33da9f7 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.
2007-10-10 12:23:19 -05:00
Gerald Carter
3d3a813035 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.
2007-10-10 12:23:19 -05:00
Jeremy Allison
bcfce39094 r23448: Doh ! Don't call winbind_child_died() *before* the
kill call as that sets pid = 0 ! :-).
Jeremy.
2007-10-10 12:23:17 -05:00
Jeremy Allison
ade91e78cb r23447: Add kill signal to child dead path. After talking
to Jerry add to 3.0.25b.
Jeremy.
2007-10-10 12:23:16 -05:00
Volker Lendecke
5b983957e3 r23446: Restore Jeremy's original formatting, just fix the comment. 2007-10-10 12:23:16 -05:00
Volker Lendecke
6729a4df4b 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.
2007-10-10 12:23:15 -05:00
Jeremy Allison
0c7ce6a682 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.
2007-10-10 12:23:15 -05:00
Volker Lendecke
15553d6327 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
2007-10-10 12:23:14 -05:00