1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-14 19:24:43 +03:00

1974 Commits

Author SHA1 Message Date
Tim Potter
ec49fc8ab7 This ldap_value_free() looks like it was part of Jeremy's recent rampage
so I'm putting it back in.
-
Tim Potter
9df18a6c4e Merge from Samba 3.0:
>Still on my mb rampage. Ensure smbldap_make_mod() correctly detects old
>values.
>Jeremy.
-
Tim Potter
299eb0abd3 I think this is a bugfix that somehow was dropped from the 3.0 tree. -
Tim Potter
67acde75d3 Merge from Samba 3.0:
>Fix for MacOS/X which uses STUPID BROKEN UNICODE COMPOSE CHARACTERS !
>(rant off :-). Inspired by work from Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>.
>Also add MacOSX/Darwin configure fixes.
>Jerry - can we put this in 3.0 release ? :-).
>Jeremy.
-
Tim Potter
be91bbd570 Merge from Samba 3.0:
>For some reason testparm runs at debug level 2 which causes the module probe functions to
>display verbose debugs.  Increase the probe debugs to level 3.
-
Tim Potter
d71a7470d7 For some reason testparm runs at debug level 2 which causes the module probe functions to
display verbose debugs.  Increase the probe debugs to level 3.
-
Jeremy Allison
f23acb4ca5 Fix for MacOS/X which uses STUPID BROKEN UNICODE COMPOSE CHARACTERS !
(rant off :-). Inspired by work from Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>.
Also add MacOSX/Darwin configure fixes.
Jerry - can we put this in 3.0 release ? :-).
Jeremy.
-
Jeremy Allison
f23c9d36b0 Fix from Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>. Revered
condition meant fast-path in strchr_m was not being used. Doh !
Jeremy.
-
Jeremy Allison
41e4479aa9 Still on my mb rampage. Ensure smbldap_make_mod() correctly detects old
values.
Jeremy.
-
Jeremy Allison
910d21d316 Fix a nasty mess, and also bug #296. passdb/pdb_ldap.c was not converting
to/from utf8 for some calls. The libads code gets this right. Wonder why
the passdb code doesn't use it ?
Jeremy.
-
Jeremy Allison
c5ed59b37b Fix stupid typo bug causing CPU spin. Spotted by Markus Ungermann <ungermann@elzet80.de>
Jeremy.
-
Tim Potter
a5656a5756 Remove another dead file. -
Jeremy Allison
035f595995 Fix mb bug in fast path code. strlen_w() returns number of *characters*
not number of bytes. Reproduce this by trying to rename the file named :
sibrseau -> sibrseaU
from Windows 2000 explorer.
Jeremy.
-
Gerald Carter
c17a7dc9a1 sync 3.0 into HEAD for the last time -
Jeremy Allison
514d9361c7 Don't double-increment p in hash calculation. Found by valgrind.
Jeremy.
-
Jeremy Allison
6fc0e529f7 Fix valgrind-found read of uninit variable (ensure length is right).
Jeremy.
-
Gerald Carter
15d53fd53c fix compile error on HP-UX 10.20 -
Tim Potter
3aab7a3bc7 Reformat debug. -
Volker Lendecke
5775690ee8 Nobody complained on the team-list, so commit it ...
This implements some kind of improved AFS support for Samba on Linux with
OpenAFS 1.2.10. ./configure --with-fake-kaserver assumes that you have
OpenAFS on your machine. To use this, you have to put the AFS server's KeyFile
into secrets.tdb with 'net afskey'. If this is done, on each tree connect
smbd creates a Kerberos V4 ticket suitable for use by the AFS client and
gives it to the kernel via the AFS syscall. This is meant to be very
light-weight, so I did not link in a whole lot of libraries to be more
platform-independent using the ka_SetToken function call.

Volker
-
Jeremy Allison
f094555ed9 Use djb-algorithm string hash - faster than the tdb one we used to use.
Jeremy.
-
Jeremy Allison
8cb9ec5d53 More cachegrind tuning, plus fix an error message.
Jeremy.
-
Jeremy Allison
f35e9a8b90 More tuning from cachegrind. Change most trim_string() calls to trim_char(0,
as that's what they do. Fix string_replace() to fast-path ascii.
Jeremy.
-
Gerald Carter
62d5611df0 fix bug 397: use a variant of alloc_sub_basic() for string lists. -
Jeremy Allison
a9709700ee Hand optimisatinos for strrchr_m using the properties we know about MB
character sets and how we use this call.
Jeremy.
-
Jeremy Allison
b3176f2ec2 Fastpath strchr_m for ASCII.
Jeremy.
-
Jeremy Allison
467cafdb1f More hand-tuning of the fastpath. Don't do strlen() when we're doing
to walk to the end anyway.
Jeremy.
-
Jeremy Allison
e98fbfaf38 Remove convert_string_internal completely from fast path when processing
NBENCH calls. Requires fixed buffer size for strdup_upper().
Jeremy.
-
Tim Potter
24a1720472 Quieten level 0 debug when probing for modules. We shouldn't display so loud
an error when a smb_probe_module() fails.  Also tidy up debugs a bit.

Bug 375.
-
Jeremy Allison
ef140d15ea Used cachegrind to track down some bottlenecks.
Removed calls to clobber_region when not compiling with developer as
they were hiding speed problems.
Added fast path to convert_string() when dealing with ascii -> ascii,
ucs2-le to ascii and ascii to ucs2-le with values <= 0x7F. This
gives a speedup of 22% on my nbench tests.
Next I will do this on convert_string_allocate.
Jeremy.
-
Jeremy Allison
e0c1460c6b Fix up overlapping memcpy -> memmove found by valgrind.
Jeremy.
-
Jeremy Allison
d405a93a9d Fix bug found by tridge in 2.2.x. Ensure that %U substitution is
restored on next valid packet if a logon fails. This has relevence
if people are using su.exe within logon scripts !
Jeremy.
-
Gerald Carter
66dd20c7ea fix bug 289; make sure to reset the offset into a string when reallocating space -
Jeremy Allison
236d6adadf Half-way though the big conversion of all nmbd access to wire elements being
converted to pull/push_ascii. This will not work right at the moment for non
English codepages, but compiles - I will finish the work over the weekend.
Then nmbd should be completely codepage correct.
Jeremy.
-
Jeremy Allison
94d0f888c9 Shut conversion errors up when initialising tables.
Jeremy.
-
Jeremy Allison
cfde7477fd Attempt to fix the charcnv issues causing nmbd to crash. If we get a failed
conversion simply copy as is. Also fixed the horrid malloc-twice-copy code
in the convert alloc path.
Jeremy.
-
Gerald Carter
ae452e51b0 metze's autogenerate patch for version.h -
Herb Lewis
398bd14fc6 get rid of more compiler warnings -
Herb Lewis
ae25e7746e get rid of compiler warnings -
Herb Lewis
61bea183a2 get rid of const as these things really are not const -
Herb Lewis
a6a39c61e8 get rid of some sompiler warnings on IRIX -
Herb Lewis
589e94f4ff add IRIX EA support -
Andrew Bartlett
3547cb3def Change Samba to always use extended security for it's guest logins, (ie,
NTLMSSP with "" username, NULL password), and add --machine-pass (-P) to
all of Samba's clients.

When connecting to an Active Directory DC, you must initiate the CIFS level
session setup with Kerberos, not a guest login.  If you don't, your machine
account is demoted to NT4.

Andrew Bartlett
-
Gerald Carter
a030fa373a 2 fixes
* bug #280 (my fault) - initialize sambaNextUserRid and
   sambaNextGroupRid

 * Unix users shared vis LDAP or NIS between a samba domain member
   of a Samba domain are not seen as domain users on the member servers.
   not as local users.
-
Jeremy Allison
6f68b8de47 Fix for bugid #205 - work by Andrew Bartlet (modified to use
fixed buffer by me).
Jeremy.
-
Volker Lendecke
a4d2dd1d40 Fix client autonegotiate signing.
Jeremy.
-
Volker Lendecke
502b45b55d Apply some const -
Simo Sorce
3101c236b8 port latest changes from SAMBA_3_0 tree -
Jim McDonough
c9b209be2b Update my copyrights according to my agreement with IBM -
Jim McDonough
15d2bc4785 Fix copyright statements for various pieces of Anthony Liguori's work. -
Alexander Bokovoy
44bae9da9e Return proper error when it is impossible to change quota flags -