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

16812 Commits

Author SHA1 Message Date
Jeremy Allison
8ae10c74ec r2317: Fixup error messages and reformat.
Jeremy.
2007-10-10 10:52:39 -05:00
Jeremy Allison
e2b0b9fb72 r2312: Fix for bugid #1667, smbpasswd file could be left locked on
some error exits.
Jeremy.
2007-10-10 10:52:39 -05:00
Gerald Carter
98799dc782 r2292: changing version to 3.0.8pre1 2007-10-10 10:52:39 -05:00
John Terpstra
6ed4d26b08 r2279: Clarification changes only. 2007-10-10 10:52:38 -05:00
John Terpstra
c48151d013 r2269: Copied from SAMBA_3_RELEASE 3.0.7 branch. 2007-10-10 10:52:38 -05:00
Jeremy Allison
bfdeb22c69 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.
2007-10-10 10:52:38 -05:00
Tim Potter
3d275d1eee r2264: Fix for #1741. Define a struct nss_groupsbymem (thanks lukeh!) for
HPUX 11 which doesn't have one of its own.
2007-10-10 10:52:38 -05:00
Tim Potter
a754f29ef8 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.
2007-10-10 10:52:38 -05:00
Gerald Carter
8ad147508a r2261: fix getdc mailslot checks; testing with Windows 98se, WinME, WinNT 4.0/200x/XP 2007-10-10 10:52:38 -05:00
Volker Lendecke
2707401899 r2258: Attempt to fix Bug 1715. Not sure if all of ldapsam_compat works now, but this
definitely fixes two segfaults.

Volker
2007-10-10 10:52:37 -05:00
Tim Potter
53bfb76608 r2248: Merge of tridge's PRINTF_ATTRIBUTE fixes from samba4. 2007-10-10 10:52:37 -05:00
Tim Potter
46b9d6dcb5 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.
2007-10-10 10:52:37 -05:00
Tim Potter
93ddf001e3 r2245: Typo fix from trunk. 2007-10-10 10:52:37 -05:00
Jim McDonough
67c737118f r2239: Fixup formatting errors in TDB_LOG calls. Add printf attribute support to
tdb log functions.
2007-10-10 10:52:37 -05:00
Andrew Tridgell
8470968cc6 r2233: fixed 3 places where == is mistakenly used instead of = in bourne
shell script statements in configure.
2007-10-10 10:52:37 -05:00
Paul Green
acc793ead7 r2231: Fix iconv.c to use the Samba-supplied uint8 type not the uint8_t type, which does not exist on all platforms. 2007-10-10 10:52:36 -05:00
Jeremy Allison
dd9b17abd6 r2224: Make nmbd more robust against bad netbios packets.
Jeremy.
2007-10-10 10:52:36 -05:00
Jeremy Allison
ee8ac9e51a r2219: Remember to count bad_components only on pathname boundaries.
Jeremy.
2007-10-10 10:52:36 -05:00
Jeremy Allison
beda1aee79 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.
2007-10-10 10:52:36 -05:00
Jeremy Allison
5dc3324c4f r2213: Optimisation. Passes masktest against W2K3.
Jeremy.
2007-10-10 10:52:36 -05:00
Simo Sorce
3a88ee4c44 r2210: Fix misleading comment found by Heinrich Mislik <Heinrich.Mislik@univie.ac.at> 2007-10-10 10:52:36 -05:00
Tim Potter
274a1eda78 r2198: Correct fix for #1360. Need to use -Wl when passing flags to the linker. 2007-10-10 10:52:35 -05:00
Jeremy Allison
3dbd822f5e r2196: This error code change is incorrect. Still working on it...
Jeremy.
2007-10-10 10:52:35 -05:00
Jeremy Allison
294e2021b3 r2194: Here is the efforts of much pain reproducing W2K3 pathname
parsing. :-(. One more check for CreateFile() needed.
Jeremy.
2007-10-10 10:52:35 -05:00
Gerald Carter
9e42d016e1 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 2007-10-10 10:52:35 -05:00
Gerald Carter
1f71295801 r2190: disable 'winbind enable local accounts' by default (had to be done doctor) 2007-10-10 10:52:35 -05:00
Gerald Carter
1438c2960f r2189: adding some comments to the schema file 2007-10-10 10:52:35 -05:00
Gerald Carter
dd84bedaca r2188: adding some initial checks for DragonFly (same as FreeBSD 4.1) 2007-10-10 10:52:34 -05:00
Gerald Carter
aa89806deb r2177: use the correct counter when copying group rids from the user_info3 struct; patch from Dimitri van der Spek <dwspek@aboveit.nl> 2007-10-10 10:52:34 -05:00
Jeremy Allison
615aa6e914 r2175: Fix for #1546 from fumiya@samba.gr.jp. Preserve errno in MB strupper_m/strlower_m.
Jeremy.
2007-10-10 10:52:34 -05:00
Andrew Tridgell
92c9fcaec4 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.
2007-10-10 10:52:34 -05:00
Andrew Tridgell
43cf57e86b r2160: fixed the uuid pack/unpack routines (they could go past the end of the UUID structure) 2007-10-10 10:52:34 -05:00
Andrew Bartlett
3dabe879f7 r2157: This parameter in loadparm appears compleatly unused.
Andrew Bartlett
2007-10-10 10:52:34 -05:00
Jeremy Allison
3716dbc0cb 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.
2007-10-10 10:52:33 -05:00
Jeremy Allison
341771857f r2152: Fix for bug #1674, move the symlinks checks into reduce_name().
Jeremy.
2007-10-10 10:52:33 -05:00
Jeremy Allison
ff20dacc68 r2150: Fix parsing of names ending in dot and a few other error returns
(commit to Samba4 smbtorture will exercise these fixes).
Jeremy.
2007-10-10 10:52:33 -05:00
Andrew Bartlett
657bb14789 r2147: Fix utility name in error message (pre-emptivly merged to trunk ;-)
Andrew Bartlett
2007-10-10 10:52:33 -05:00
Andrew Bartlett
1ad1317a81 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
2007-10-10 10:52:33 -05:00
Gerald Carter
8ae57a8e8d r2135: BUG 1464: make sure that printing commands are initialized even if the 'printing' parameter is not explicitly set 2007-10-10 10:52:33 -05:00
Gerald Carter
7474c6a446 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.
2007-10-10 10:52:32 -05:00
Jim McDonough
30da4e7771 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.
2007-10-10 10:52:32 -05:00
Jeremy Allison
dad4d65787 r2116: Ensure statcache has large enough tdb memory hash size (1031).
Jeremy.
2007-10-10 10:52:32 -05:00
Jeremy Allison
5d04cd6804 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.
2007-10-10 10:52:32 -05:00
Jeremy Allison
c2eff8ef1b r2112: Simplify the mangle hash code to use an in-memory tdb.
Should be ready for the new directory code now...
Jeremy.
2007-10-10 10:52:32 -05:00
Jeremy Allison
3f0707132a r2111: Fix memleak with valid names.
Jeremy.
2007-10-10 10:52:31 -05:00
Volker Lendecke
de0eaf7be7 r2093: Fix for Bug 1416. This must have been a cut&paste error from add_gid....
Thanks to Jonas Olsson for the bug report & fix.

Volker
2007-10-10 10:52:31 -05:00
Gerald Carter
2bf08aaa37 r2091: only use sAMAccountName and not userPrincipalName since the breaks winbindd (lookup_name() only works with the sAMAccountName) -- *please* test this change. My tests all pass but there is probably something I missed 2007-10-10 10:52:31 -05:00
Gerald Carter
5d3ba1fac0 r2090: fix formatting that was bugging me 2007-10-10 10:52:31 -05:00
Gerald Carter
4703a71fa8 r2086: fix bug with winbindd_getpwnam() caused by Microsoft DC's not filling in the username in the user_info3 2007-10-10 10:52:31 -05:00
Jeremy Allison
b0af241fd1 r2083: Fix memleak on return code path.
Jeremy.
2007-10-10 10:52:31 -05:00