1
0
Fork 0
mirror of https://git.freebsd.org/ports.git synced 2025-07-17 09:19:15 -04:00
ports/net/samba3/files/patch-samba3-undo_the_right_thing2.patch
Timur I. Bakeyev 2a1c6bc502 This is a cummulative update of net/samba3 from version 3.0.25a to
3.0.26a. Detailed list of all the changes can be found:

  http://www.samba.org/samba/history/samba-3.0.26a.html

Changes are:
o Memory leaks in Winbind's IDMap manager.
o CVE-2007-4138 - Incorrect primary group assignment for domain
  users using the rfc2307 or sfu winbind nss info plugin.
o File sharing with Widows 9x clients.
o Winbind running out of file descriptors due to stalled child
  processes.
o MS-DFS inter-operability issues.
o Offline caching of files with Windows XP/Vista clients.
o Improper cleanup of expired or invalid byte range locks on files.
o Crashes is idmap_ldap and idmap_rid.

Approved by:	shaun (mentor)
2007-09-18 22:27:58 +00:00

14 lines
596 B
Diff

Index: nsswitch/winbindd_cache.c
===================================================================
--- nsswitch/winbindd_cache.c (Revision 15137)
+++ nsswitch/winbindd_cache.c (Arbeitskopie)
@@ -121,7 +121,8 @@
if ( !domain->primary )
our_domain = find_our_domain();
- if ( (our_domain->active_directory || IS_DC) && domain->active_directory ) {
+ if ( (our_domain->active_directory || IS_DC) && domain->active_directory &&
+ (lp_security()==SEC_ADS)) {
DEBUG(5,("get_cache: Setting ADS methods for domain %s\n", domain->name));
domain->backend = &ads_methods;
} else {