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

17017 Commits

Author SHA1 Message Date
Volker Lendecke
7f53bb13da r2340: Solve the problem of user sids ending up with gid's and vice versa: This
belongs into winbind itself, not into wbinfo.

Volker
(This used to be commit 75e5c13d5d4c1da9bbb60f4e93183995c05a89ac)
2007-10-10 10:52:40 -05:00
Tim Potter
3a6c8a8ae7 r2338: Remove lonely looking definition of DYNEXP for HPUX in the configure
"CPPFLAG settings for strange OS's section".  DYNEXP should only be
set in the shared library configure section.
(This used to be commit 8d00f7310c934dcecac4b0af01e74836f62fa539)
2007-10-10 10:52:40 -05:00
Tim Potter
defc3d82e7 r2334: Update LDSHFLAGS for HPUX as -Wl is not necessary as we are invoking LD
directly.  Should fix #1731.
(This used to be commit 9f241a8f2a590acd31f59f689b7eb17b6ae4f3dd)
2007-10-10 10:52:39 -05:00
Simo Sorce
5e2bac3df4 r2333: check the script is not a 0 lenght string
(This used to be commit 05a80c37375b3186b02b8430033796ab7a7d68bb)
2007-10-10 10:52:39 -05:00
Simo Sorce
410a6c72ea r2331: check password script code and example from trunk
(This used to be commit f836be323a233f3a28cbaa04c532e83ea98ead89)
2007-10-10 10:52:39 -05:00
Jeremy Allison
c0b43349b3 r2317: Fixup error messages and reformat.
Jeremy.
(This used to be commit 8ae10c74ec45f1493aa15ee812ff37b86c8fc439)
2007-10-10 10:52:39 -05:00
Jeremy Allison
92c1eba403 r2312: Fix for bugid #1667, smbpasswd file could be left locked on
some error exits.
Jeremy.
(This used to be commit e2b0b9fb72559a9629b116a7e063de08a12e9eb1)
2007-10-10 10:52:39 -05:00
Gerald Carter
4b9cba501e r2292: changing version to 3.0.8pre1
(This used to be commit 98799dc78236a76506d2848b7434bd521c9aca8f)
2007-10-10 10:52:39 -05:00
John Terpstra
4038d42bc6 r2279: Clarification changes only.
(This used to be commit 6ed4d26b08f0fde400c37042f6012a25d095594d)
2007-10-10 10:52:38 -05:00
John Terpstra
baafbf4917 r2269: Copied from SAMBA_3_RELEASE 3.0.7 branch.
(This used to be commit c48151d013b81cbcd172d0259b1b653cba800716)
2007-10-10 10:52:38 -05:00
Jeremy Allison
39a9c5dcc6 r2265: Volkers change to HEAD looks very good. Commit message
from HEAD follows :
While torturing winbind a bit I found the following unfortunate behaviour:

Sending multiple requests at a high rate for a slow operation exposed that no
response comes back until the last request in the queue has been
processed. This is an unfortunate result of serially going through all sockets> that have shown to be readable or writable. All client sockets become readable> at the same time, none of them is writable. We go through them, read the
request, process the complete request. Before we enter the select system call
the next time all requests have to have completed.

This patch optimizes this by first looking at the sockets for writability. A
write on a socket that came back from select does not block, so this
additional loop might have a non-zero cost, but it can't prevent other
operations from proceeding.

After a possibly long-running winbindd_process() we directly start select()
again. To avoid starvation the currently processed client is demoted to be the> last one in the list of clients.

Jeremy.
(This used to be commit bfdeb22c69d09eb73305b6034fa6d0ec67275789)
2007-10-10 10:52:38 -05:00
Tim Potter
516753896a r2264: Fix for #1741. Define a struct nss_groupsbymem (thanks lukeh!) for
HPUX 11 which doesn't have one of its own.
(This used to be commit 3d275d1eee9644651dcbb61a342648e878fe3506)
2007-10-10 10:52:38 -05:00
Tim Potter
f9ebee99a7 r2263: When testing whether building shared libraries actually works, use
$SHLD and $LDSHFLAGS instead of $CC, $CPPFLAGS and $CFLAGS as this is
more likely to actually work.  Bugzilla #1731.

I'm checking this in to 3.0 so it can hit the build farm and flush out
any problems with other architectures.  With a bit of luck this should
go in to Samba 3.0.8.
(This used to be commit a754f29ef819e1cf7ea31c117e5ef1487cb5cb5e)
2007-10-10 10:52:38 -05:00
Gerald Carter
1ee9f9ad81 r2261: fix getdc mailslot checks; testing with Windows 98se, WinME, WinNT 4.0/200x/XP
(This used to be commit 8ad147508ac653698ebacf9fd19fc5eb5863db28)
2007-10-10 10:52:38 -05:00
Volker Lendecke
debfeb8878 r2258: Attempt to fix Bug 1715. Not sure if all of ldapsam_compat works now, but this
definitely fixes two segfaults.

Volker
(This used to be commit 270740189995c56c4d0341aeded364efffec86f2)
2007-10-10 10:52:37 -05:00
Tim Potter
17f2560ce6 r2248: Merge of tridge's PRINTF_ATTRIBUTE fixes from samba4.
(This used to be commit 53bfb76608efa347d5fe154c5583a5e8e3d53740)
2007-10-10 10:52:37 -05:00
Tim Potter
fc84e916f6 r2246: Some good fixes for HPUX from JBravo on #samba-technical:
- Fix linker options so that stuff actually builds (oops - part of this
    commit was accidentally made in -r2245)

  - Add some preprocessor magic to avoid warnings being printed for every
    single C file being compiled.  This was due to a bug in the HPUX system
    header files.

This should make the HPUX build farm machine build again.
(This used to be commit 46b9d6dcb5bdd47ea82f904d8fac4efe8dc94c9f)
2007-10-10 10:52:37 -05:00
Tim Potter
12c03ce05f r2245: Typo fix from trunk.
(This used to be commit 93ddf001e3e079fd1d17096afd91eb93ae17474f)
2007-10-10 10:52:37 -05:00
Jim McDonough
a1763b39a3 r2239: Fixup formatting errors in TDB_LOG calls. Add printf attribute support to
tdb log functions.
(This used to be commit 67c737118faaeae9bd723516ea60657046e135a8)
2007-10-10 10:52:37 -05:00
Andrew Tridgell
bf43c1ae13 r2233: fixed 3 places where == is mistakenly used instead of = in bourne
shell script statements in configure.
(This used to be commit 8470968cc6884605cdf2587a2c7f9ecf7b46ded6)
2007-10-10 10:52:37 -05:00
Paul Green
b887c41253 r2231: Fix iconv.c to use the Samba-supplied uint8 type not the uint8_t type, which does not exist on all platforms.
(This used to be commit acc793ead7e61f1eb87864b676d26f5791367228)
2007-10-10 10:52:36 -05:00
Jeremy Allison
571cc4811b r2224: Make nmbd more robust against bad netbios packets.
Jeremy.
(This used to be commit dd9b17abd6b32c090840c1a0b797fd774711cb3a)
2007-10-10 10:52:36 -05:00
Jeremy Allison
b755bdaa8e r2219: Remember to count bad_components only on pathname boundaries.
Jeremy.
(This used to be commit ee8ac9e51a0aefd41df56de4d6deac522bdee4a3)
2007-10-10 10:52:36 -05:00
Jeremy Allison
a34e4db047 r2215: I think I'm really close now. The key is to count the number of
bad components once you've hit one, and keep track of how many
there are (going up a level removes one - maybe it needs to be ./
in order to be removed, need to check). And remember to change the error
code return depending on whether you're called from ff or chkpath.
Jeremy.
(This used to be commit beda1aee795971fa600af65caa749694bb0dfea5)
2007-10-10 10:52:36 -05:00
Jeremy Allison
5480cfc26b r2213: Optimisation. Passes masktest against W2K3.
Jeremy.
(This used to be commit 5dc3324c4f1ae10c96b6d385531369e0eeee4c40)
2007-10-10 10:52:36 -05:00
Simo Sorce
fef54a21b1 r2210: Fix misleading comment found by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>
(This used to be commit 3a88ee4c444c7b953c9f88b19998a5d84fc5e17c)
2007-10-10 10:52:36 -05:00
Tim Potter
0f0b985bdc r2198: Correct fix for #1360. Need to use -Wl when passing flags to the linker.
(This used to be commit 274a1eda7863368a0d46aed6600c29ec5e30f406)
2007-10-10 10:52:35 -05:00
Jeremy Allison
51336f2751 r2196: This error code change is incorrect. Still working on it...
Jeremy.
(This used to be commit 3dbd822f5e4a241ac12fa6c75de93013f80f00f4)
2007-10-10 10:52:35 -05:00
Jeremy Allison
649e1274c7 r2194: Here is the efforts of much pain reproducing W2K3 pathname
parsing. :-(. One more check for CreateFile() needed.
Jeremy.
(This used to be commit 294e2021b34c806900ec65ecbf17d9038ac6229a)
2007-10-10 10:52:35 -05:00
Gerald Carter
12172c91da r2191: ensure that we assign our pid to print jobs (and not our parent's pid); ensures that spooling jobs from dead smbds are removed from the tdb
(This used to be commit 9e42d016e1fee9ac999dadc383eb5db45ed79b00)
2007-10-10 10:52:35 -05:00
Gerald Carter
3fe747bfdc r2190: disable 'winbind enable local accounts' by default (had to be done doctor)
(This used to be commit 1f71295801c7af554fba293069e52666083d7bc5)
2007-10-10 10:52:35 -05:00
Gerald Carter
0211bf0dee r2189: adding some comments to the schema file
(This used to be commit 1438c2960f1213ddf98e7e874e1d060f2d57089c)
2007-10-10 10:52:35 -05:00
Gerald Carter
a2829891cd r2188: adding some initial checks for DragonFly (same as FreeBSD 4.1)
(This used to be commit dd84bedaca9c8e802fc4cae5b73128c94f38c086)
2007-10-10 10:52:34 -05:00
Gerald Carter
0138c08516 r2177: use the correct counter when copying group rids from the user_info3 struct; patch from Dimitri van der Spek <dwspek@aboveit.nl>
(This used to be commit aa89806deb9d4c9cbd23ccdd41bb98346e395078)
2007-10-10 10:52:34 -05:00
Jeremy Allison
c5b11b56aa r2175: Fix for #1546 from fumiya@samba.gr.jp. Preserve errno in MB strupper_m/strlower_m.
Jeremy.
(This used to be commit 615aa6e914e6bc3691156a3b80244fc98d8ecc56)
2007-10-10 10:52:34 -05:00
Andrew Tridgell
d9a1327474 r2163: converted samba3 to use the new utf-16 aware iconv code. Also changed
iconv to recognise UCS-2LE and UTF-16LE as synonyms, which means this
change should be more robust when applied in trees that treat UCS-2LE
or UTF-16LE as correct.
(This used to be commit 92c9fcaec4299ddc16f9d6568a695b1fe161be33)
2007-10-10 10:52:34 -05:00
Andrew Tridgell
018de0186b r2160: fixed the uuid pack/unpack routines (they could go past the end of the UUID structure)
(This used to be commit 43cf57e86bfae3ab68e97c2238338581411eb2ff)
2007-10-10 10:52:34 -05:00
Andrew Bartlett
6667776e87 r2157: This parameter in loadparm appears compleatly unused.
Andrew Bartlett
(This used to be commit 3dabe879f74d2ea3b379a00a3778ee76051a359a)
2007-10-10 10:52:34 -05:00
Jeremy Allison
b0b317edbf r2155: Reformat, plus steal from Samba4 :-).
tridge:
the lp_use_mmap() in map_file() is inappropriate for 2 reasons, so I have removed it.

 - lp_use_mmap() is really meant to cope with systems that have broken
   mmap coherence, but map_file() doesn't need coherence, as its maps
   read only

 - map_file() is used to map the charset files before loadparm has
   loaded, so lp_use_mmap() is always returning false for the major
   use of map_file()

Jeremy.
(This used to be commit 3716dbc0cb9a8ca4027217b24dbf62a62f44e9f6)
2007-10-10 10:52:33 -05:00
Jeremy Allison
3f9bc7fe07 r2152: Fix for bug #1674, move the symlinks checks into reduce_name().
Jeremy.
(This used to be commit 341771857fecf9ef72a436c42e0571d486fa0dde)
2007-10-10 10:52:33 -05:00
Jeremy Allison
e197fb368a r2150: Fix parsing of names ending in dot and a few other error returns
(commit to Samba4 smbtorture will exercise these fixes).
Jeremy.
(This used to be commit ff20dacc68c78b8d30993712366af30a64e960aa)
2007-10-10 10:52:33 -05:00
Andrew Bartlett
f4c2e60ed0 r2147: Fix utility name in error message (pre-emptivly merged to trunk ;-)
Andrew Bartlett
(This used to be commit 657bb14789bcec65668d072fec0f954d1e5322ef)
2007-10-10 10:52:33 -05:00
Andrew Bartlett
0fc457be2f r2137: This is a patch I've been running at Hawker for a while.
The purpose of this patch is to avoid changing the machine account
password, when it has 'already been changed'.  This occours in
situations where the secure channel between the workstation and the DC
breaks down, such as occoured in the MS04-11 security patch.  This
avoids LDAP replication load issues, due to the client changing the
password repeatedly.

We also now set the LM password to NULL explicitly, rather than the NT
password value, as this is what we get out of a vampire, or when a
long password is set (as XP seems to do these days).

Andrew Bartlett
(This used to be commit 1ad1317a815898b52b1803211ab7b502e331e782)
2007-10-10 10:52:33 -05:00
Gerald Carter
4c20275f51 r2135: BUG 1464: make sure that printing commands are initialized even if the 'printing' parameter is not explicitly set
(This used to be commit 8ae57a8e8d7334bc0feb2c8afb673bd5c53bffca)
2007-10-10 10:52:33 -05:00
Gerald Carter
278f9467f2 r2133: Several fixes:
* BUG 1627: fix for NIS compiles on HPUX 11.00, AIX 4.3 and 5.1
  patch from Olaf Flebbe <o.flebbe@science-computing.de>.
  Will need to watch this one in the build farm.

* Fix bug found by rwf@loonybin.net where the PRINT_ATTRIBUTE_PUBLISHED
  was getting reset by attempts to sanitize the defined attributes
  (PRINTER_ATTRIBUTE_SAMBA)

* Resolve name conflict on DEC OSF-5.1 (inspired by patch from
  Adharsh Praveen <rprav@india.hp.com>)

* Work around parsing error in the print change notify code
  (not that the alignment bug is still there but reording the
   entries in the array works around it).

* remove duplicate declaration of getprintprocdir from rpcclient.
(This used to be commit 7474c6a446037f3ca2546cb6984d800bfc524029)
2007-10-10 10:52:32 -05:00
Jim McDonough
a79469a27f r2131: Fixup format string. The magic value format specifier was missing, so
the logged offset was really the magic value, and the true offset was
never displayed.
(This used to be commit 30da4e777191c557226d5615cee5a9e28b198a8b)
2007-10-10 10:52:32 -05:00
Jeremy Allison
1d7f22c9ae r2116: Ensure statcache has large enough tdb memory hash size (1031).
Jeremy.
(This used to be commit dad4d65787df7bd28351cb8f8724d3ae5387ca12)
2007-10-10 10:52:32 -05:00
Jeremy Allison
651daa4b42 r2114: Shameless theft of iconv commit from Samba4 to keep the two libs more in sync :-).
try to cope with a wider range of UTF-16 characters when we are using
an external libiconv library.
Jeremy.
(This used to be commit 5d04cd6804f6fc3b556e7c3b53fa0d7af39797c1)
2007-10-10 10:52:32 -05:00
Jeremy Allison
f1688d61df r2112: Simplify the mangle hash code to use an in-memory tdb.
Should be ready for the new directory code now...
Jeremy.
(This used to be commit c2eff8ef1b65570d2e590f62f026cc18f9142652)
2007-10-10 10:52:32 -05:00
Jeremy Allison
58a1460330 r2111: Fix memleak with valid names.
Jeremy.
(This used to be commit 3f0707132afc66109701766528cb0bd1e1c7cd8c)
2007-10-10 10:52:31 -05:00