1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

19852 Commits

Author SHA1 Message Date
Stefan Metzmacher
385fa8cafb r15732: samba3 now passes BASE-DENY1
metze
(This used to be commit e5a8553a57e0b1463a421ba69631f234184404b0)
2007-10-10 11:17:09 -05:00
Jeremy Allison
799f8c75b9 r15729: Second part of Aleksey Fedoseev <fedoseev@ru.ibm.com> patch.
Jeremy.
(This used to be commit 5137006233a0c2de94ce3da7340ff0032ef7426d)
2007-10-10 11:17:09 -05:00
Jeremy Allison
4aead7efa3 r15727: Fix msgtest - noticed by Aleksey Fedoseev <fedoseev@ru.ibm.com>.
Jeremy.
(This used to be commit 9f5c95c41872deac5e029b69daa5004d5c0fb4cc)
2007-10-10 11:17:09 -05:00
Gerald Carter
bc77e15c30 r15717: BUG 3711: patch from Leonid Kabanov <lkabanov@mail.ru> for some solaris sheel scripting bugs with 'make test'
(This used to be commit 94e0bc50135646039a2ebcf5c922a82cc0c4a2e7)
2007-10-10 11:17:09 -05:00
Gerald Carter
679e539655 r15712: BUG 3435: patch from volker to fix 'msdfs root = yes' in [homes]
(This used to be commit 466478f07e6233b89f442660ad42ef7ee870ad48)
2007-10-10 11:17:09 -05:00
Volker Lendecke
511f1cef23 r15705: Fix bug number 3788. Thanks to Jeff Wright.
Volker
(This used to be commit e4a2cb4b9143394a54ae1de91e59722c11a0b2e4)
2007-10-10 11:17:09 -05:00
Günther Deschner
1e3147cf12 r15704: Prefer LDAP error codes in ads_search_retry_sid().
Guenther
(This used to be commit 6cfc65ea20793a72ff1666759bd4e8e446247071)
2007-10-10 11:17:08 -05:00
Günther Deschner
ae4a2a2b9d r15703: Fix d_printf call.
Guenther
(This used to be commit 741602e03ad2404d4e38e55b9e5fd20b85fd205d)
2007-10-10 11:17:08 -05:00
Gerald Carter
463e7c1171 r15701: change 'net ads leave' to disable the machine account in the domain (since removal implies greater permissions that Windows clients require)
(This used to be commit ad1f947625612ef16adb69fc2cfeffc68a9a2e02)
2007-10-10 11:17:08 -05:00
Jeremy Allison
0648638fef r15700: Make nmbd udp sockets non-blocking to prevent problem
with select returning true but no data being available.
Fix for bug #3779.
Jeremy.
(This used to be commit e5787cf75b2e7d50f551f34f28d280c27b0aa134)
2007-10-10 11:17:08 -05:00
Günther Deschner
c60e96c392 r15698: An attempt to make the winbind lookup_usergroups() call in security=ads
more scalable:

The most efficient way is to use the "tokenGroups" attribute which gives
the nested group membership. As this attribute can not always be
retrieved when binding with the machine account (the only garanteed way
to get the tokenGroups I could find is when the machine account is a
member of the "Pre Win2k Access" builtin group).

Our current fallback when "tokenGroups" failed is looking for all groups
where the userdn was in the "member" attribute. This behaves not very
well in very large AD domains.

The patch first tries the "memberOf" attribute on the user's dn in that
case and directly retrieves the group's sids by using the LDAP Extended
DN control from the user's object.

The way to pass down the control to the ldap search call is rather
painfull and probably will be rearranged later on.

Successfully tested on win2k sp0, win2k sp4, wink3 sp1 and win2k3 r2.

Guenther
(This used to be commit 7d766b5505e4099ef7dd4e88bb000ebe38d71bd0)
2007-10-10 11:17:08 -05:00
Günther Deschner
39c45ce4f1 r15697: I take no comments as no objections :)
Expand the "winbind nss info" to also take "rfc2307" to support the
plain posix attributes LDAP schema from win2k3-r2.

This work is based on patches from Howard Wilkinson and Bob Gautier
(and closes bug #3345).

Guenther
(This used to be commit 52423e01dc209ba5abde808a446287714ed11567)
2007-10-10 11:17:08 -05:00
Günther Deschner
e129dc40f7 r15696: Free LDAP search result.
Guenther
(This used to be commit ec26c355b3ef1d3d809c4fbe911ce6fcef5db955)
2007-10-10 11:17:07 -05:00
Stefan Metzmacher
c4d4e8dd31 r15691: - samba3 also pass RAW-CHKPATH, RAW-SEEK, RAW-SFILEINFO-BUG
- samba3 pass the limited version of RAW-LOCK
  (the lock cancel and error checking tests are skipped)

metze
(This used to be commit b79ceece9550c0fe9f59ae59bad6709351e93906)
2007-10-10 11:17:07 -05:00
Stefan Metzmacher
9b9c6c3632 r15686: - start testing the RAW-* tests in make test
- RAW-READ now passes samba3
- skip the rest for now

metze
(This used to be commit fc343051afe560b1ddb8715dbc574e2ae645571e)
2007-10-10 11:17:07 -05:00
Stefan Metzmacher
46586a1fd3 r15682: fix option passing
metze
(This used to be commit cd2fa1da6cdcaaa8a4d92a38163d54ecc0f9d756)
2007-10-10 11:17:07 -05:00
Gerald Carter
78eac3e24b r15681: fix segv in 'kinit && net ads join'
(This used to be commit d77768cb237461b06119ee19f822b120623d77dd)
2007-10-10 11:17:07 -05:00
Gerald Carter
13bc6d4666 r15680: use the user creds when calling net_set_machine_spn() rather than the machine creds (just like WinXP)
(This used to be commit ae2bf464c47eb52ff24400d1cc362e74e77fbac5)
2007-10-10 11:17:07 -05:00
Gerald Carter
8a9940b608 r15679: fix some popt warnings
(This used to be commit 126ab8ccec69240e8e526190f4712bd274237985)
2007-10-10 11:17:06 -05:00
Jeremy Allison
905bac92ba r15676: Fix meaningless debug statement from uninitialized variable.
Spotted by "John E. Malmberg" <wb8tyw@qsl.net>.
Jeremy.
(This used to be commit ff3fe39b837e0d0de2edaa284c2dd7d1c8161c46)
2007-10-10 11:17:06 -05:00
Jeremy Allison
a05d9e7261 r15675: Man pages say never look at the fd_set after a select
if it returned -1 (treat as undefined). Ensure we obey
this.
Jeremy.
(This used to be commit 256ae3a16bcafe70cc1a00496681c709380e4fc3)
2007-10-10 11:17:06 -05:00
Jeremy Allison
f895fcf109 r15672: Fix for bug #3783. winbindd_cm.c calls open_any_socket_out()
to make connections to ports 445 or 139 on the DC it's trying
to contact. It calls sys_select() on the non-blocking sockets,
not sys_select_intr(). This is a mistake (I believe) as it allows
a signal to early terminate the connection attempts - whereas
sys_select_intr() will ignore signals until we get back to
the main processing loop where they'll be handled correctly.
This change means winbindd_cm will not early terminate if it
gets a message whilst trying to connect to DC's.
Gunther, Volker and Jerry please review (but I think this
is correct).
Jeremy.
(This used to be commit 24aaa486771f797d35ea6b0711c12cd3e663dd8c)
2007-10-10 11:17:06 -05:00
Jeremy Allison
6a026d5618 r15670: Fix valgrind-spotted issue in BASE-DELETE test.
We were forgetting to increment after copying
the primary group gid.
Jeremy
(This used to be commit 31d16c434e1ee94691f013ed0b31d9f26baeb2cb)
2007-10-10 11:17:06 -05:00
Jeremy Allison
cc9ea93456 r15668: DOS or FCB opens share one share mode entry from different
fsp pointers. Ensure we cope with this to pass Samba4
DENY tests (we used to pass these, there must have been
a regression with newer code). We now pass them.
Jeremy
(This used to be commit fd6fa1d4eaf61783df74ee2da50d331477f06998)
2007-10-10 11:17:06 -05:00
Volker Lendecke
c91a675ac1 r15660: Without this when using smbcquotas I get
close fd=-1 fnum=4321 (numopen=1)
close_file: Could not get share mode lock for file $Extend/$Quota:$Q:$INDEX_ALLOCATION
unix_error_packet: error string = Das Argument ist ungültig
error packet at smbd/reply.c(3325) cmd=4 (SMBclose) NT_STATUS_INVALID_HANDLE

so a fake file needs special close handling I think. Jeremy, can you check
this?

Thanks,

Volker
(This used to be commit f66b9701b5c6bb6302fa11889adab6902cbaf2e3)
2007-10-10 11:17:06 -05:00
Volker Lendecke
a835209278 r15657: Fix some Tru64 warnings
(This used to be commit a85dfb9eff222142eb1f9d89beb3d156661dd047)
2007-10-10 11:17:05 -05:00
James Peach
89c6f04df0 r15655: Log the result of module initialisation if it fails.
(This used to be commit 3446ee5c00e114fd6697b2d70888d55ad79e63f9)
2007-10-10 11:17:05 -05:00
James Peach
dc64af1d2e r15654: Update our internal copy of popt to that distributed with the RPM 4.2
source code.
(This used to be commit 9559886a92b1fdd33d380bf0100dcddb12477ff2)
2007-10-10 11:17:05 -05:00
Günther Deschner
f81e4521bf r15649: Allow to store 24 password history entries in ldapsam (same limit as on
Windows). Fixes bug #1914.

Guenther
(This used to be commit b5a5d0b24ea5320cb2f28dbefe81ddf5c58baf77)
2007-10-10 11:17:05 -05:00
Simo Sorce
5e8221d909 r15646: Implement an setdomainsid command as well
(This used to be commit 51df47c772f8bdd5a2c3a1e9814e625406e79b5f)
2007-10-10 11:17:05 -05:00
Paul Green
5255388e95 r15644: Now that we are referencing uint32_t and other data types
defined in <stdint.h>, ensure that it is present. (Not all
implementations pull it in when <sys/types.h> is used).

Paul
(This used to be commit dafe36ec4cff4e5f94e35841966007e3e4758582)
2007-10-10 11:17:05 -05:00
Volker Lendecke
c290d34985 r15635: Fix a bogus gcc uninit variable message
(This used to be commit 53f7104b4fbb4f59c18458f589e25e7b536642cb)
2007-10-10 11:17:04 -05:00
Günther Deschner
ae0939ee66 r15634: Prevent passwords of winbindd's list of credential caches from beeing
swapped to disc using mlock(). (patch was reviewed by Jeremy).

Guenther
(This used to be commit 206cdbb8e9a4a0900060d56510e58b85a2b8aec5)
2007-10-10 11:17:04 -05:00
Günther Deschner
22bed618b6 r15633: Minor smbldap/pdb_ldap cleanup
Guenther
(This used to be commit 1b5a712467ab8f35211b59bb703a42bdc5e0dfc0)
2007-10-10 11:17:04 -05:00
Günther Deschner
651797b41e r15632: Remove length limitation from the winbind cache cleanup traversal.
Guenther
(This used to be commit 181fa02497e353a36e311f94f5bec2e9cfd1b56e)
2007-10-10 11:17:04 -05:00
James Peach
0ed76af63d r15631: Add a new option "enable core files". Administrators can use this to
disable automatic core file dumping. Core files are enabled by default.
(This used to be commit b59189280057849b67ac65f31cec23b859e21c91)
2007-10-10 11:17:03 -05:00
Jim McDonough
62f61caff4 r15630: adapt smbclient fix to smbtree to enable long share names
(This used to be commit ae56154fc7694042496a55d4dade8ef1a7ba361c)
2007-10-10 11:17:03 -05:00
Stefan Metzmacher
039113fe15 r15620: pass 'target:samba3=yes' to samba4's smbtorture when running samba3's make test
we can use this in samba4's smbtorture to disable tests sections which doesn't pass
against samba3

metze
(This used to be commit fab4de70b65ab5b9d3a93db46f13c7bab0e70464)
2007-10-10 11:17:03 -05:00
James Peach
39c7fe679e r15611: Remove used but uninitialised variable "count".
(This used to be commit 71fd0d3de4a02b9a7b67914f6412f18ec0bb5e7a)
2007-10-10 11:17:03 -05:00
Jeremy Allison
f9480025b5 r15610: Fix Coverity #288 - possible null deref.
Jeremy.
(This used to be commit b108ab7b122cc607f31772614b221379403b211b)
2007-10-10 11:17:03 -05:00
Volker Lendecke
bb4856b14a r15608: Fix a couple of Coverity errors
(This used to be commit 696e210bf6688e8b2f408559768173b4bdbda979)
2007-10-10 11:17:03 -05:00
Volker Lendecke
75d2304643 r15601: Fix segfaults with 'security=share' and 'guest only = yes'
Volker
(This used to be commit ea7cced6bcb3cb7d817e4cb072774692e4afedb0)
2007-10-10 11:17:03 -05:00
Volker Lendecke
990c406a89 r15600: Correctly fill in the gid for local users.
Volker
(This used to be commit 6071dd5db0dbb79a80b248ab93942911bf08fd2b)
2007-10-10 11:17:02 -05:00
Gerald Carter
b16bdf985d r15597: more ads join fixes -- we can only set the PWDNOEXP and DES_ONLY acb flags on the setuserinfo(), not the createuser info call
(This used to be commit d933ac273db5977fb41954175bdc228b688bfd6e)
2007-10-10 11:17:02 -05:00
Volker Lendecke
ee7b4b47cb r15589: While trying to understand the vuid code I found that security=share is broken
right now. r14112 broke it, in 3.0.22 register_vuid for security=share returns
UID_FIELD_INVALID which in current 3_0 is turned into an error condition. This
makes sure that we only call register_vuid if sec!=share and meanwhile also
fixes a little memleak.

Then I also found a crash in smbclient with sec=share and hostmsdfs=yes.

There's another crash with sec=share when coming from w2k3, but I need sleep
now.

Someone (jerry,jra?) please review the sesssetup.c change.

Thanks,

Volker
(This used to be commit 8059d0ae395604503cad3d9f197928305923e3f5)
2007-10-10 11:17:02 -05:00
Volker Lendecke
3895a5a1fc r15583: Add a comment while trying to understand this code
(This used to be commit 7945c935bf197afb61286ddeb0e579078362a1fc)
2007-10-10 11:17:02 -05:00
Volker Lendecke
91828b893d r15571: Fix Coverity bug #285
(This used to be commit 2cf503d7da08319f318217f6fe8f85c18bf0dffb)
2007-10-10 11:17:02 -05:00
Volker Lendecke
77aa11f4dc r15570: Fix Coverity bug # 286. I really wonder why gcc -O1 did not catch this one.
Volker
(This used to be commit c6bf2c8922e612278349fe53ca11f6be6c819009)
2007-10-10 11:17:02 -05:00
Volker Lendecke
5895967601 r15569: Fix Coverity bug # 287. Jerry, can you check if WERR_NOMEM is a correct error
code here?

Thanks,

Volker
(This used to be commit 5787bd0ee90b081ae12a4a976893cb297fa7bed4)
2007-10-10 11:17:01 -05:00
Volker Lendecke
f390936c5b r15566: Fix Coverity bug # 284. The lp_ldap_xx_suffix function only return NULL if
talloc fails.

Volker
(This used to be commit 0ece5b32f97f162be0af2ea3354a597c56ed4373)
2007-10-10 11:17:01 -05:00