1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00

16782 Commits

Author SHA1 Message Date
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
Jeremy Allison
cc91bbe20d r2082: lp_path should be lp_pathname.
Paranoia fix on mangle prefix.
Jeremy.
2007-10-10 10:52:30 -05:00
Günther Deschner
0cfd2866df r2080: Remove last traces of static migration to localhost. Needed to allow a
local netbios-alias bound to non-loopback interface as a migration target.

It's now possible to migrate printers|shares|files from Server A to
Server B while running the net-command on client C.

Guenther
2007-10-10 10:52:30 -05:00
Günther Deschner
1d76adb93c r2079: Clear the publish-bit from the attributes-mask when migrating
printer-settings. publishing-info is not handled yet.

Guenther
2007-10-10 10:52:30 -05:00
Gerald Carter
02571e7f50 r2077: fix logic bug in the check for creating a user's home directory in register_vuid(); add a few extra debug lines 2007-10-10 10:52:30 -05:00
Jeremy Allison
ba473a5802 r2076: Removed old dir caching code - not being used now we have the
statcache anyway. New dir caching will be done on nanosecond
timestamps.
Jeremy.
2007-10-10 10:52:30 -05:00
Günther Deschner
944ad569c7 r2073: Adding getprinter level 7 to rpcclient.
Is there any other rpc-call to get the guid of a published printer?

Guenther
2007-10-10 10:52:30 -05:00
Simo Sorce
98feb3318f r2070: Let's try to overload srnlen and strndup for AIX where they are natly broken. 2007-10-10 10:52:29 -05:00
Günther Deschner
9d8fdd5f32 r2068: Use SMB_ASSERT to track down empty printername (thanks jerry).
Guenther
2007-10-10 10:52:29 -05:00
Günther Deschner
531a23d1d2 r2067: Prevent nameless $LIBDIR/printing/.tdb from beeing created.
I've seen these on several sites now without knowing how they could get
created.

Guenther
2007-10-10 10:52:29 -05:00
Günther Deschner
cca660e109 r2057: Although rarely used, prevent "net lookup kdc" from segfaulting when
using our own implementation of krb5_lookup_kdc with heimdal. Also,
heimdals krb5_krbhst_next() obviously does not retrieve the struct
addrinfo in the krb5_krbhst_info-struct, using
krb5_krbhst_get_addrinfo() instead.

Guenther
2007-10-10 10:52:29 -05:00
Jeremy Allison
d7ea1ea8fb r2032: If you're selecting a hash algorithm for tdb, you need to do it at open time,
it doesn't make sense anywhere else.
Jeremy.
2007-10-10 10:52:29 -05:00
Jeremy Allison
07f7aa6afb r2027: Fix for but #1657, used initialized variable, from
Helmut Heinreichsberger <helmut.heinreichsberger@chello.at>.
Jeremy.
2007-10-10 10:52:29 -05:00
Jeremy Allison
3fbadac85b r2026: Simplify statcache to use an in-memory tdb. Modify tdb to use
a customer hash function for this tdb (yes it does make a difference
on benchmarks). Remove the no longer used hash.c code.
Jeremy.
2007-10-10 10:52:29 -05:00
Volker Lendecke
bf8773b094 r2023: If there's garbage in the pidfile, we should not panic but assume that no one
else is around. We can't find the other guy anyway.

Volker
2007-10-10 10:52:28 -05:00
Günther Deschner
43af9e67dd r2022: Add net_copy_fileattr as a separate function to copy just ACLs, attrs
and timestamps. This makes net_copy_file less complex.

Guenther
2007-10-10 10:52:28 -05:00
Gerald Carter
1acbd40b26 r2018: updating syntax for enable-cups check 2007-10-10 10:52:28 -05:00
Günther Deschner
bc64bb0d20 r2016: Add message to ease access-control-debugging.
Guenther
2007-10-10 10:52:28 -05:00
Günther Deschner
67bffc5034 r2015: Reverting fix for #1474.
Jelmer, we need to find another way to solve this bug. This way,
rpcclient is linked to libxml2, libmysqlclient and libpg (with according
dependencies in samba-client.rpm's) if one just wants to build the more
experimental pdb-modules as well.

Guenther
2007-10-10 10:52:28 -05:00
Gerald Carter
2f4a699631 r2014: BUG 1656: rename auto.a to auto.smb 2007-10-10 10:52:27 -05:00
Gerald Carter
22cde8f665 r2013: BUG 1658: little bit of const (patch from : Helmut Heinreichsberger <helmut.heinreichsberger@chello.at>) 2007-10-10 10:52:27 -05:00
Günther Deschner
2e954709de r2009: compile-fix for #1626 (spotted by Olaf Flebbe
<o.flebbe@science-computing.de>).

Guenther
2007-10-10 10:52:27 -05:00
Tim Potter
4c881b7a9e r2007: Fix typo in Jeremy's copyright. From the output of cvs annotate a year
in the late 1990's may be more appropriate though.
2007-10-10 10:52:27 -05:00
Tim Potter
bba8e7956a r2006: Fix bug 1653 discovered by Luke Mewburn. The script code to generate the
svn version number broke out-of-tree builds.
2007-10-10 10:52:27 -05:00
Volker Lendecke
0a3413fbe3 r2001: Fix bug 1622. Thanks to Qiao Yang for the patch and Sven Thomsen for testing
it.

Volker
2007-10-10 10:52:27 -05:00
Jeremy Allison
275a0010f4 r1980: Re-apply (remember to remove entry from list on delete this time :-).
Jeremy.
2007-10-10 10:52:26 -05:00
Jeremy Allison
f16aa99f8c r1978: Roll it back until I do it right.... :-).
Jeremy.
2007-10-10 10:52:26 -05:00
Jeremy Allison
776c28133d r1976: Simplify, use standard dlist interface.
Jeremy.
2007-10-10 10:52:26 -05:00
Jeremy Allison
77bddd40b0 r1974: Just use a simple linked list for this.
Jeremy.
2007-10-10 10:52:26 -05:00
Günther Deschner
74287178d2 r1971: move counter.
Guenther
2007-10-10 10:52:26 -05:00
Jeremy Allison
80f7c3141c r1968: Remove spurious "A" spotted by Jason Mader <jason@ncac.gwu.edu>.
Jeremy.
2007-10-10 10:52:26 -05:00