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

14121 Commits

Author SHA1 Message Date
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
Volker Lendecke
922d51b522 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
(This used to be commit de0eaf7be7d0c3aaf4e17b63653ca68b4332c982)
2007-10-10 10:52:31 -05:00
Gerald Carter
725d939548 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
(This used to be commit 2bf08aaa37f41681b3154514792bf29a3abfdbfd)
2007-10-10 10:52:31 -05:00
Gerald Carter
a5489bb831 r2090: fix formatting that was bugging me
(This used to be commit 5d3ba1fac0ccb7024b72fd3a672e14fab062ef0b)
2007-10-10 10:52:31 -05:00
Gerald Carter
ed5fd7117e r2086: fix bug with winbindd_getpwnam() caused by Microsoft DC's not filling in the username in the user_info3
(This used to be commit 4703a71fa88dff8bdc932f6c9af3a9d25a88938f)
2007-10-10 10:52:31 -05:00
Jeremy Allison
69e87ef8c3 r2083: Fix memleak on return code path.
Jeremy.
(This used to be commit b0af241fd1fc58c1cbaadcbf6832b608923382ff)
2007-10-10 10:52:31 -05:00
Jeremy Allison
5ef08833b8 r2082: lp_path should be lp_pathname.
Paranoia fix on mangle prefix.
Jeremy.
(This used to be commit cc91bbe20d9cb26e52ad417f279e2d60c85af2dc)
2007-10-10 10:52:30 -05:00
Günther Deschner
e4c4d91896 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
(This used to be commit 0cfd2866dfe5e959ede169a77c39480790300de3)
2007-10-10 10:52:30 -05:00
Günther Deschner
f5a2dd73da r2079: Clear the publish-bit from the attributes-mask when migrating
printer-settings. publishing-info is not handled yet.

Guenther
(This used to be commit 1d76adb93c98857ed3460db241847e423c021a99)
2007-10-10 10:52:30 -05:00
Gerald Carter
df5ee6a6ba r2077: fix logic bug in the check for creating a user's home directory in register_vuid(); add a few extra debug lines
(This used to be commit 02571e7f5040a577840c969ff9c46a1e533edc21)
2007-10-10 10:52:30 -05:00
Jeremy Allison
db2ffe10f9 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.
(This used to be commit ba473a580245430009245a4c8b8dcaf9fc4b6406)
2007-10-10 10:52:30 -05:00
Günther Deschner
bf645415f6 r2073: Adding getprinter level 7 to rpcclient.
Is there any other rpc-call to get the guid of a published printer?

Guenther
(This used to be commit 944ad569c7a88e1d2f14311eed10f80ea9861963)
2007-10-10 10:52:30 -05:00
Simo Sorce
804cfb20a0 r2070: Let's try to overload srnlen and strndup for AIX where they are natly broken.
(This used to be commit 98feb3318f54bb48ce56fc8f4721fec4967b9dd9)
2007-10-10 10:52:29 -05:00
Günther Deschner
5b1c7afe9b r2068: Use SMB_ASSERT to track down empty printername (thanks jerry).
Guenther
(This used to be commit 9d8fdd5f323951d3d9b581e9edbf89b05c897af7)
2007-10-10 10:52:29 -05:00
Günther Deschner
b4ec659c76 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
(This used to be commit 531a23d1d22a9951cce5f657df46bd27840eac3d)
2007-10-10 10:52:29 -05:00
Günther Deschner
77cc4121cf 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
(This used to be commit cca660e109cc94b49ac6bf1f2802235d1d4d4383)
2007-10-10 10:52:29 -05:00
Jeremy Allison
f98af01f43 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.
(This used to be commit d7ea1ea8fb3420ca1ad8d95acdc43313898200ff)
2007-10-10 10:52:29 -05:00
Jeremy Allison
a96dfe038e r2027: Fix for but #1657, used initialized variable, from
Helmut Heinreichsberger <helmut.heinreichsberger@chello.at>.
Jeremy.
(This used to be commit 07f7aa6afb0945bb0e108981c4984a6c04c42a53)
2007-10-10 10:52:29 -05:00
Jeremy Allison
fcbb2d3132 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.
(This used to be commit 3fbadac85b8cad89b93d295968e99c38c8677575)
2007-10-10 10:52:29 -05:00
Volker Lendecke
990d9d15db 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
(This used to be commit bf8773b094d41941478f0164ce33838027fadc09)
2007-10-10 10:52:28 -05:00
Günther Deschner
c542a2c179 r2022: Add net_copy_fileattr as a separate function to copy just ACLs, attrs
and timestamps. This makes net_copy_file less complex.

Guenther
(This used to be commit 43af9e67dd7c0328f214def4b591041e9b69614a)
2007-10-10 10:52:28 -05:00
Gerald Carter
99dd2ded8a r2018: updating syntax for enable-cups check
(This used to be commit 1acbd40b2651d49811c0afa0f1c3b5eacd3171a0)
2007-10-10 10:52:28 -05:00
Günther Deschner
e091cd8148 r2016: Add message to ease access-control-debugging.
Guenther
(This used to be commit bc64bb0d206c54487e372824a14c38a4ba8f3c5a)
2007-10-10 10:52:28 -05:00
Günther Deschner
ba183f876e 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
(This used to be commit 67bffc5034121cc0069007a7b79ce189ab0d10be)
2007-10-10 10:52:28 -05:00
Gerald Carter
3be4c47b90 r2013: BUG 1658: little bit of const (patch from : Helmut Heinreichsberger <helmut.heinreichsberger@chello.at>)
(This used to be commit 22cde8f665f7ed52785699a1d58db3271125ab89)
2007-10-10 10:52:27 -05:00
Günther Deschner
93c20b30e4 r2009: compile-fix for #1626 (spotted by Olaf Flebbe
<o.flebbe@science-computing.de>).

Guenther
(This used to be commit 2e954709de6d0048fafc653b0d70af05cdb0d3c2)
2007-10-10 10:52:27 -05:00
Tim Potter
a68a17a11e 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.
(This used to be commit 4c881b7a9e40307710ec860375985dc2145f2dd8)
2007-10-10 10:52:27 -05:00
Tim Potter
fd63959c4d r2006: Fix bug 1653 discovered by Luke Mewburn. The script code to generate the
svn version number broke out-of-tree builds.
(This used to be commit bba8e7956a53067b0d51a12c6abfac24834e4603)
2007-10-10 10:52:27 -05:00
Volker Lendecke
8e309cc7c7 r2001: Fix bug 1622. Thanks to Qiao Yang for the patch and Sven Thomsen for testing
it.

Volker
(This used to be commit 0a3413fbe378bc378aea7ffe9a6af8b65ce49f4a)
2007-10-10 10:52:27 -05:00
Jeremy Allison
2ea1c9de9f r1980: Re-apply (remember to remove entry from list on delete this time :-).
Jeremy.
(This used to be commit 275a0010f487a06b3bc86f82e45d08c821a51b0e)
2007-10-10 10:52:26 -05:00
Jeremy Allison
d792569de6 r1978: Roll it back until I do it right.... :-).
Jeremy.
(This used to be commit f16aa99f8c2f8a31f82e2aedfe3ea6a7276db504)
2007-10-10 10:52:26 -05:00
Jeremy Allison
4e02b70863 r1976: Simplify, use standard dlist interface.
Jeremy.
(This used to be commit 776c28133dfa29320608829f15da2f1056454e4c)
2007-10-10 10:52:26 -05:00
Jeremy Allison
b894c95f8d r1974: Just use a simple linked list for this.
Jeremy.
(This used to be commit 77bddd40b0a3cb9d2a95b61c098468d3d98e41b0)
2007-10-10 10:52:26 -05:00
Günther Deschner
167299e17f r1971: move counter.
Guenther
(This used to be commit 74287178d208fd2f5b152314a3b797dcfea698a7)
2007-10-10 10:52:26 -05:00
Jeremy Allison
08e37cd693 r1968: Remove spurious "A" spotted by Jason Mader <jason@ncac.gwu.edu>.
Jeremy.
(This used to be commit 80f7c3141c0925b858cba4a276b370228777263d)
2007-10-10 10:52:26 -05:00
Günther Deschner
f1fd211e80 r1967: Fix a couple of krb5-DEBUG-messages.
Guenther
(This used to be commit 86a61c86a49a7e4d67e61201458c9b0229fb0825)
2007-10-10 10:52:25 -05:00
Günther Deschner
19e949a91b r1966: further work on and cleanup of the net-migration-tool.
It's now possible to migrate files preserving dos-attributes and correct
timestamps. Also added some small docu- and syntax-fixes.

Guenther
(This used to be commit 0e990582a0416933a8671ca660d22e980f828402)
2007-10-10 10:52:25 -05:00
Günther Deschner
3eb42d3b6e r1965: add cli_setattrE (inspired by samba4-code). needed for further
migration-work. could someone possibly double-check the byte-count?

Guenther
(This used to be commit 27302905e88960d774c82eab6207ff6a918b0235)
2007-10-10 10:52:25 -05:00
John Terpstra
9e20bb59fb r1942: Add missing semicolon.
(This used to be commit a0b80033c997d50562f66686e79a58fc9603217d)
2007-10-10 10:52:24 -05:00
Jeremy Allison
b447065629 r1939: Ensure with my new change we set extended security in flags2 in
the negprot reply.
Jeremy.
(This used to be commit 8b80b46b8b76ead72c17dc65f2de4c0cc0b263c7)
2007-10-10 10:52:24 -05:00
Jeremy Allison
6219c997cb r1936: Fix bug noticed by Steve - ensure extended security bit is on only
if we negotiated extended security. Do not merge for 3.0.6. Works
with W2K but needs further testing.
Jeremy.
(This used to be commit 284689aa18d2711a9041598cdf490359466f7f77)
2007-10-10 10:52:24 -05:00
Tim Potter
423d98fe93 r1908: Bugzilla #1541. Fix recursive ls in smbclient. Fix by Josef Zlomek.
(This used to be commit e59af43f6b8f824447bd20efc08dd81f2774e99c)
2007-10-10 10:52:23 -05:00