samba.git
16 years agoFix debug message.
Jeremy Allison [Tue, 13 May 2008 22:25:14 +0000 (15:25 -0700)]
Fix debug message.
Jeremy.

16 years agoSecond part of patch for bug #5460. Cope with pathnames
Jeremy Allison [Tue, 13 May 2008 22:02:53 +0000 (15:02 -0700)]
Second part of patch for bug #5460. Cope with pathnames
that don't look like \xxx\yyy, cope with arbitrary length.
Jeremy.

16 years agoFix bug #5460. The problem is RHEL5.0 shipped a CIFS client
Jeremy Allison [Tue, 13 May 2008 21:03:21 +0000 (14:03 -0700)]
Fix bug #5460. The problem is RHEL5.0 shipped a CIFS client
that sets the DFS bit on pathnames but doesn't
send DFS paths. This causes lookups to fail as
the smbd/msdfs.c code now just eats the first
two parts of the pathname and uses the rest as
the local path. The previous hostname check
used to protect us from that as we knew that
when the hostname was invalid it was a local
path (and a broken client).
I didn't want to put that check back in, but
came up with another idea - even though the
hostname can be a different one, the sharename
must be valid on this machine. So we can check
for a valid sharename instead.
Jeremy.

16 years agoFix signing problem in the client with transs requests
Volker Lendecke [Tue, 13 May 2008 14:23:19 +0000 (16:23 +0200)]
Fix signing problem in the client with transs requests

This is a different fix than Jeremy put into 3-0-test with 040db1ce85 and other
branches with different hashes. Jeremy, I think your fix led to bug 5436, so I
reverted your fix. This fixes the original problem I found with the transs
requests for large rpc queries in a different way. Please check!

Thanks,

Volker

16 years agoRevert "Fix signing bug found by Volker. That one was *subtle*."
Volker Lendecke [Tue, 13 May 2008 14:56:06 +0000 (16:56 +0200)]
Revert "Fix signing bug found by Volker. That one was *subtle*."

This reverts commit 816aea6c1a426eb2450061b847729e22bdac33a0.

16 years agoman pages: Correct version string.
Karolin Seeger [Tue, 13 May 2008 08:18:37 +0000 (10:18 +0200)]
man pages: Correct version string.

As Samba 3.2 will be out soon, man pages should be correct for both versions,
Samba 3.0 and 3.2.

Karolin
(cherry picked from commit 9c59c1895d8d3621f38b67ecf88109c81130c886)

16 years agonet ads: Upper case he realm name when calling kinit() using machine creds.
coffeedude [Mon, 12 May 2008 22:33:01 +0000 (17:33 -0500)]
net ads: Upper case he realm name when calling kinit() using machine creds.

Needed fix for the DNS Update option as part of "net ads join"
(cherry picked from commit aebae0b71b427838fdc6344d69d6dea87a5dd58b)

16 years agoloadparm: Fix activation of registry globals in lp_load_*.
Michael Adam [Fri, 9 May 2008 22:13:11 +0000 (00:13 +0200)]
loadparm: Fix activation of registry globals in lp_load_*.

This completes bba04a8fba6fd5cf62578733cfdabea590e8ff51:
The reverted logic has to be put into the callers
lp_load() and lp_load_initial_only() of lp_load_ex(), too.
Silly bug.

Michael

16 years agoFix replacement getpass. If we ^C at the prompt echo was left off.
Jeremy Allison [Fri, 9 May 2008 21:54:06 +0000 (14:54 -0700)]
Fix replacement getpass. If we ^C at the prompt echo was left off.
Fix bug #5456. Karolin please pull for 3.2-stable.
Jeremy.

16 years agoWHATSNEW: Update changes since 3.2.0pre3.
Karolin Seeger [Fri, 9 May 2008 09:59:55 +0000 (11:59 +0200)]
WHATSNEW: Update changes since 3.2.0pre3.

Karolin

16 years agoFix bug #5452 - smbclient put always creates zero length
Jeremy Allison [Fri, 9 May 2008 05:07:27 +0000 (22:07 -0700)]
Fix bug #5452 - smbclient put always creates zero length
files. Thanks to Kai Engert <kengert@redhat.com> for
reporting.
Karolin - this is a showstopper and must be pulled
into 3.2-stable. Thanks !
Jeremy.

16 years agoRevert "IDL: Import drsuapi.idl from samba4."
Michael Adam [Thu, 8 May 2008 15:44:41 +0000 (17:44 +0200)]
Revert "IDL: Import drsuapi.idl from samba4."

This reverts commit f583e99cef55156fa5294c3eaef0cd29740af5f1.

16 years agoRevert "IDL: Fix several DRSUAPI calls."
Michael Adam [Thu, 8 May 2008 15:44:40 +0000 (17:44 +0200)]
Revert "IDL: Fix several DRSUAPI calls."

This reverts commit aa7308fbc37eb9a26b4583b1ce2ca435b0648541.

16 years agoRevert "IDL: For the fun of it, build drsuapi.idl."
Michael Adam [Thu, 8 May 2008 15:44:40 +0000 (17:44 +0200)]
Revert "IDL: For the fun of it, build drsuapi.idl."

This reverts commit 192645f63918c8656ca0fac5bb6d2704c9500a15.

16 years agoRevert "IDL: Add autogenerated drsuapi files."
Michael Adam [Thu, 8 May 2008 15:44:40 +0000 (17:44 +0200)]
Revert "IDL: Add autogenerated drsuapi files."

This reverts commit 192ffa3835c407d5603f47c1633a075869daae01.

16 years agoRevert "IDL: Build nbt.idl always."
Michael Adam [Thu, 8 May 2008 15:44:40 +0000 (17:44 +0200)]
Revert "IDL: Build nbt.idl always."

This reverts commit 933abaeb321428aa7092a5d87af77b981be6359e.

16 years agoregistry: refactor common part of registry initialization out.
Michael Adam [Sun, 13 Apr 2008 13:21:31 +0000 (15:21 +0200)]
registry: refactor common part of registry initialization out.

into a new function registry_init_common().

Michael
(cherry picked from commit 5da52b95ac69e4abfbc44335df2447bec8f16e13)

16 years agofix some extrasemi compile warnings
Björn Jacke [Wed, 9 Apr 2008 16:20:07 +0000 (18:20 +0200)]
fix some extrasemi compile warnings

(cherry picked from parts of cbdb79b7a1044945e515a294f487e4c1a9c91be5)
(cherry picked from commit 49be6c8dac6ddb90cd3ea2324d2dbc5d7cc503dd)

16 years agoregistry: change registry_init_basic() to return WERROR instead of bool
Michael Adam [Sun, 13 Apr 2008 13:12:04 +0000 (15:12 +0200)]
registry: change registry_init_basic() to return WERROR instead of bool

Michael
(cherry picked from commit 44018f864a40604196863c032e6f10ffbf7ee8b4)

16 years agoregistry: change registry_init_smbconf() to return WERROR instead of bool
Michael Adam [Sun, 13 Apr 2008 13:25:47 +0000 (15:25 +0200)]
registry: change registry_init_smbconf() to return WERROR instead of bool

Michael
(cherry picked from commit 7c343c60574cda091f59861fbcb2893aefb564e9)
(cherry picked from commit 6c898b0285a2f822fe401cd0ced1e82873ec7c6d)

16 years agonet_registry: fix build/linking of net_registry.
Michael Adam [Fri, 4 Apr 2008 10:59:21 +0000 (12:59 +0200)]
net_registry: fix build/linking of net_registry.

Michael

Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit 6acb709ed872c3864fde48eb396e7b9c3103c070)

16 years agoRevert "Add infrastructure for reading/storing Group Policy state and control data...
Michael Adam [Thu, 8 May 2008 15:44:03 +0000 (17:44 +0200)]
Revert "Add infrastructure for reading/storing Group Policy state and control data in the registry."

This reverts commit f673bbd300d972dd7ae2d092b3b1e642ed29cfd2.

16 years agoRevert "Add Group Policy extension infrastructure."
Michael Adam [Thu, 8 May 2008 15:44:03 +0000 (17:44 +0200)]
Revert "Add Group Policy extension infrastructure."

This reverts commit 6d543b1a1a5a7af98affc9aea2edf650cb476379.

16 years agoRevert "Add "registry" Group Policy extension."
Michael Adam [Thu, 8 May 2008 15:44:02 +0000 (17:44 +0200)]
Revert "Add "registry" Group Policy extension."

This reverts commit 4e93301ca4931908a7d1994be45c57002f8c6fea.

16 years agoRevert "Add gp_get_machine_token()."
Michael Adam [Thu, 8 May 2008 15:44:02 +0000 (17:44 +0200)]
Revert "Add gp_get_machine_token()."

This reverts commit 2f1bc7ddad97b9137ae4cce696bf4e08f9b7ca20.

16 years agoRevert "Fix the build w/o ldap."
Michael Adam [Thu, 8 May 2008 15:44:02 +0000 (17:44 +0200)]
Revert "Fix the build w/o ldap."

This reverts commit 5f592d030b7e94331a634e0d625aefc60cfb1f70.

16 years agoRevert "Fix gp_find_file() which broke during the pstring removal."
Michael Adam [Thu, 8 May 2008 15:44:01 +0000 (17:44 +0200)]
Revert "Fix gp_find_file() which broke during the pstring removal."

This reverts commit f18ba6c877fa934d19ecc6a65be74b8bad7ee7e4.

16 years agoRevert "Bind Group Policy processing closer to the samba registry."
Michael Adam [Thu, 8 May 2008 15:44:01 +0000 (17:44 +0200)]
Revert "Bind Group Policy processing closer to the samba registry."

This reverts commit e9c56250eb7a2dc4e69962c5b48875834941ccfc.

16 years agoRevert "libgpo: use reg_setkeysecurity() instead of regdb_set_secdesc()."
Michael Adam [Thu, 8 May 2008 15:44:01 +0000 (17:44 +0200)]
Revert "libgpo: use reg_setkeysecurity() instead of regdb_set_secdesc()."

This reverts commit 4717e6d0cf9df53a55e5d55ede5480181b33920d.

16 years agoRevert "libgpo: replace hand-crafted registry initialization by registry_init_basic."
Michael Adam [Thu, 8 May 2008 15:44:00 +0000 (17:44 +0200)]
Revert "libgpo: replace hand-crafted registry initialization by registry_init_basic."

This reverts commit 10ae8accb486956ebb1638cee540868a11623b11.

16 years agoRevert "libgpo: open the registry in gp_init_reg_ctx()."
Michael Adam [Thu, 8 May 2008 15:44:00 +0000 (17:44 +0200)]
Revert "libgpo: open the registry in gp_init_reg_ctx()."

This reverts commit 4185ed03a3879ab708b004ef87b9ffaa6a9e6f3d.

16 years agoRevert "Makefile: reassign reg_init_basic.o to REG_BASE_OBJ, where it belongs..."
Michael Adam [Thu, 8 May 2008 15:44:00 +0000 (17:44 +0200)]
Revert "Makefile: reassign reg_init_basic.o to REG_BASE_OBJ, where it belongs..."

This reverts commit 7b16cb1023abd4fb2b2f08cf723d38c8c6ae68a0.

16 years agoRevert "fix some extrasemi compile warnings"
Michael Adam [Thu, 8 May 2008 15:44:00 +0000 (17:44 +0200)]
Revert "fix some extrasemi compile warnings"

This reverts commit cbdb79b7a1044945e515a294f487e4c1a9c91be5.

16 years agoRevert "registry: change registry_init_basic() to return WERROR instead of bool"
Michael Adam [Thu, 8 May 2008 15:43:59 +0000 (17:43 +0200)]
Revert "registry: change registry_init_basic() to return WERROR instead of bool"

This reverts commit 6a31e659cb371395dff0906786f3c6ef0cc2b3de.

16 years agoRevert "registry: refactor common part of registry initialization out."
Michael Adam [Thu, 8 May 2008 15:43:59 +0000 (17:43 +0200)]
Revert "registry: refactor common part of registry initialization out."

This reverts commit 5da52b95ac69e4abfbc44335df2447bec8f16e13.

16 years agoRevert "registry: change registry_init_smbconf() to return WERROR instead of bool"
Michael Adam [Thu, 8 May 2008 15:43:59 +0000 (17:43 +0200)]
Revert "registry: change registry_init_smbconf() to return WERROR instead of bool"

This reverts commit 7c343c60574cda091f59861fbcb2893aefb564e9.

16 years agoRevert "gpo: make integer debug print more readable."
Michael Adam [Thu, 8 May 2008 15:43:59 +0000 (17:43 +0200)]
Revert "gpo: make integer debug print more readable."

This reverts commit b2cf8010aea3221bb6b108b9395b9d89cc1bc0d5.

16 years agoRevert "libgpo: fix build warning."
Michael Adam [Thu, 8 May 2008 15:43:58 +0000 (17:43 +0200)]
Revert "libgpo: fix build warning."

This reverts commit cb3f1df7d8f35848a432764ea7d6720ec131ede1.

16 years agoRevert "libgpo: try nicer output when dumping gpo registry values."
Michael Adam [Thu, 8 May 2008 15:43:58 +0000 (17:43 +0200)]
Revert "libgpo: try nicer output when dumping gpo registry values."

This reverts commit 2b788429478868d1b0cbfd88027809be33edcfc5.

16 years agoRevert "gpo: add scripts plugin."
Michael Adam [Thu, 8 May 2008 15:43:58 +0000 (17:43 +0200)]
Revert "gpo: add scripts plugin."

This reverts commit cd6388f04041a667bf0909d81e8af5f7b3bdc4af.

16 years agoRevert "libgpo: Fallback to NTLMSSP fails while pulling policy from SYSVOL."
Michael Adam [Thu, 8 May 2008 15:43:57 +0000 (17:43 +0200)]
Revert "libgpo: Fallback to NTLMSSP fails while pulling policy from SYSVOL."

This reverts commit 7ed1397e25d50e6616040677cfe26148e7211538.

16 years agoRevert Samba 4-compatible DCE/RPC API.
Jelmer Vernooij [Thu, 8 May 2008 09:36:51 +0000 (11:36 +0200)]
Revert Samba 4-compatible DCE/RPC API.

This code isn't finished yet.

16 years agonetapi: add -f switch for DsGetDCName() example and be more verbose on output.
Günther Deschner [Tue, 6 May 2008 15:09:44 +0000 (17:09 +0200)]
netapi: add -f switch for DsGetDCName() example and be more verbose on output.

Guenther
(cherry picked from commit 3feaa9829cc5bdeb7a5401c3c24b3811816396ce)

16 years agowins: fix null pointer crash in nss_wins module.
Günther Deschner [Tue, 6 May 2008 15:02:31 +0000 (17:02 +0200)]
wins: fix null pointer crash in nss_wins module.

Guenther
(cherry picked from commit 5bf47ebf0fb9f7d94ed36bce6bcaa31b508009bd)

16 years agoSamba Shared Repository - branch v3-3-test updated - release-3-2-0pre2-2315-g64d21f3
Volker Lendecke [Tue, 6 May 2008 13:07:52 +0000 (08:07 -0500)]
Samba Shared Repository - branch v3-3-test updated - release-3-2-0pre2-2315-g64d21f3

The branch, v3-3-test has been updated
       via  64d21f39636019d6a17f84efc6fb9e61e67a235e (commit)
      from  87383a4605ab99d32fccae7793dc5292b8f3e25b (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-3-test

- Log -----------------------------------------------------------------
commit 64d21f39636019d6a17f84efc6fb9e61e67a235e
Author: Volker Lendecke <vl@samba.org>
Date:   Tue May 6 15:06:12 2008 +0200

    Fix a memleak in construct_printer_info_7()

    Also fix a "ignoring asprintf result" warning

-----------------------------------------------------------------------

Summary of changes:
 source/rpc_server/srv_spoolss_nt.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

Changeset truncated at 500 lines:

16 years agoEnable tests for splice on Linux. Add a static (vl, I hate this)
Jeremy Allison [Tue, 6 May 2008 22:46:34 +0000 (15:46 -0700)]
Enable tests for splice on Linux. Add a static (vl, I hate this)
so we can detect broken Linux recvfile splice and correctly fall
back.
Karolin, I think this should be pulled into 3.2-stable even
though it's a feature change as otherwise there's no way for
3.2 to use recvfile zerocopy, which is an advertised feature.
Others please comment.
Jeremy.

16 years agoFix bug #5095, "Manage Documents privilege is not functional".
Jeremy Allison [Tue, 6 May 2008 16:23:00 +0000 (09:23 -0700)]
Fix bug #5095, "Manage Documents privilege is not functional".
Should map the created sd to printer jobs, not printer.
Confirmed fix by the reporter. Karolin please pull for 3.2-stable.
Jeremy.

16 years agoFix a panic in the [ug]id2sid valgrind bug fix
Volker Lendecke [Tue, 6 May 2008 11:53:45 +0000 (13:53 +0200)]
Fix a panic in the [ug]id2sid valgrind bug fix

Always, always run "make test" before pushing stuff :-)

16 years agoFix a valgrind bug in the new [ug]id2sid cache
Volker Lendecke [Sat, 3 May 2008 00:41:10 +0000 (02:41 +0200)]
Fix a valgrind bug in the new [ug]id2sid cache

When we're given a SID, it is not always padded with zeros. Only look at the
initialized parts in the SID.

16 years agobuild: fix the build w/o ldap.
Günther Deschner [Tue, 6 May 2008 07:48:16 +0000 (09:48 +0200)]
build: fix the build w/o ldap.

Guenther
(cherry picked from commit a159ec5f1f3ec8e9232b8f3230a996a3f9986bc1)

16 years agoSamba Shared Repository - branch v3-3-test updated - release-3-2-0pre2-2279-gd077ef6
Günther Deschner [Mon, 5 May 2008 15:00:37 +0000 (10:00 -0500)]
Samba Shared Repository - branch v3-3-test updated - release-3-2-0pre2-2279-gd077ef6

The branch, v3-3-test has been updated
       via  d077ef64cd1d9bbaeb936566c2c70da508de829f (commit)
      from  6e0e0cb8dd6f57de36c041e2ba4b82feeb357ce8 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-3-test

- Log -----------------------------------------------------------------
commit d077ef64cd1d9bbaeb936566c2c70da508de829f
Author: Günther Deschner <gd@samba.org>
Date:   Mon May 5 16:58:24 2008 +0200

    Fix client authentication with -P switch in client tools (Bug 5435).

    Guenther

-----------------------------------------------------------------------

Summary of changes:
 source/client/client.c       |    5 ++++
 source/include/popt_common.h |    1 +
 source/lib/popt_common.c     |   30 +------------------------
 source/lib/util.c            |   49 +++++++++++++++++++++++++++++++++++++++++-
 source/libsmb/cliconnect.c   |   22 +++++++++++++++++-
 source/rpcclient/rpcclient.c |   15 ++++++++++++-
 source/utils/smbcacls.c      |   14 +++++++++++-
 source/utils/smbcquotas.c    |   15 ++++++++++++-
 source/utils/smbtree.c       |    6 +++++
 9 files changed, 122 insertions(+), 35 deletions(-)

Changeset truncated at 500 lines:

16 years agoSamba Shared Repository - branch v3-2-stable updated - release-3-2-0pre3-9-g49e5663
Karolin Seeger [Mon, 5 May 2008 11:05:17 +0000 (06:05 -0500)]
Samba Shared Repository - branch v3-2-stable updated - release-3-2-0pre3-9-g49e5663

The branch, v3-2-stable has been updated
       via  49e56637971c8ae2f091aa61c6f6c878b4accd23 (commit)
      from  52b64605e8210234118c445e416ad0c7980a730c (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-stable

- Log -----------------------------------------------------------------
commit 49e56637971c8ae2f091aa61c6f6c878b4accd23
Author: Volker Lendecke <vl@samba.org>
Date:   Mon May 5 12:45:12 2008 +0200

    Fix dfs_Enum: In form_junctions, correctly check for malloc failure
    (cherry picked from commit 1b1614c3261e1e93a2cad1f1063e28cbbb13f434)

-----------------------------------------------------------------------

Summary of changes:
 source/smbd/msdfs.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Changeset truncated at 500 lines:

16 years agoTidyup to ensure '\n' is treated identically in all
Jeremy Allison [Thu, 1 May 2008 15:49:18 +0000 (08:49 -0700)]
Tidyup to ensure '\n' is treated identically in all
cases. Karolin please pull for 3.2-stable.
Jeremy.

16 years agoFix bug #5434 found by Ted Percival <ted@midg3t.net>.
Jeremy Allison [Thu, 1 May 2008 15:40:30 +0000 (08:40 -0700)]
Fix bug #5434 found by Ted Percival <ted@midg3t.net>.
Introduced by me in the strlcpy cleanup. Ensure the
loaded password doesn't contain the '\n' at the end.
Karolin - please pull for 3.2 stable !
Jeremy.

16 years agopam_winbind: Fix Bug #5430 (patch from fumiyas@osstech.co.jp).
Günther Deschner [Wed, 30 Apr 2008 16:23:26 +0000 (18:23 +0200)]
pam_winbind: Fix Bug #5430 (patch from fumiyas@osstech.co.jp).

Guenther
(cherry picked from commit 5b65df6245c1458ca21cc602df11c49aa97a25c5)

16 years agoFix typo noticed by David Disseldorp <ddiss@sgi.com>. AF_INET should be AF_INET6...
Jeremy Allison [Wed, 30 Apr 2008 16:28:42 +0000 (09:28 -0700)]
Fix typo noticed by David Disseldorp <ddiss@sgi.com>. AF_INET should be AF_INET6 in this case.
Karolin, please pull for 3.2-stable.
Jeremy.

16 years agoWinbind: Prevent cycle in children list when reaping dead child processes.
Gerald W. Carter [Wed, 30 Apr 2008 15:09:43 +0000 (10:09 -0500)]
Winbind: Prevent cycle in children list when reaping dead child processes.

Thanks to Glenn Curtis and Kyle Stemen @ Likewise.  Their explanation is:

    In winbindd_dual.c, there is a list of children processes that
    is maintained using macros DTLIST_ADD and DTLIST_REMOVE. In the
    case when a scheduled_async_request fails, the particular child
    was located in the list, and its attributes were cleared out
    and it was reused for a subsequent async request. The bug was that
    the new request would queue the same node into the doubly-linked
    list and would result in list->next pointing to the same node as
    list itself. This would set up an infinite loop in the processing of
    the for loop when the list of children was referenced.

    Solution was to fully remove the child node from the list, such that
    it could be inserted without risk of being inserted twice.

Note that the child is re-added to the list in fork_domain_child() again.
(cherry picked from commit b379b5b5d8a6daccc69aaf2be6d9a6e276e7dd78)

16 years agoBUG 5107: Fix handling of large DNS replies on AIX and Solaris.
Gerald W. Carter [Wed, 30 Apr 2008 14:57:15 +0000 (09:57 -0500)]
BUG 5107: Fix handling of large DNS replies on AIX and Solaris.

On AIX, Solaris, and possibly some older glibc systems (e.g. SLES8)
truncated replies never give back a resp_len > buflen
which ends up causing DNS resolve failures on large tcp DNS replies.

Also add more debug lines about processing the DNS reply.
(cherry picked from commit 5ed9b92097460cd8180db806a08213e97cfb8daa)

16 years agoBUG 5429: Clarify log msgs re: failure to create BUILTIN\{Administrators,Users}
Gerald W. Carter [Wed, 30 Apr 2008 14:43:00 +0000 (09:43 -0500)]
BUG 5429: Clarify log msgs re: failure to create BUILTIN\{Administrators,Users}

Raise the debug msgs from Lvl 0 in the create_builtin_XX() functions
to prevent unnecessary panic from people reading the logs.
(cherry picked from commit 2983b9dc790e0f90ec1e6add131438c6bfd361b4)

16 years agoFix bug found by Igor Mammedov <niallain@gmail.com> where we are
Jeremy Allison [Mon, 28 Apr 2008 22:06:14 +0000 (15:06 -0700)]
Fix bug found by Igor Mammedov <niallain@gmail.com> where we are
not returning a directory value for a QPATHINFO on a msdfs link
with a non-dfs path. Windows does this.
Jeremy.

16 years agoman smbcacls: Correct possible flag values.
Karolin Seeger [Mon, 28 Apr 2008 13:26:57 +0000 (15:26 +0200)]
man smbcacls: Correct possible flag values.

This patch fixes bug #620.
Thanks to Satoh Fumiyasu <fumiyas@osstech.co.jp>!

Karolin
(cherry picked from commit 70f6966099788f4bdb0298a68d4cb0b90964dd8f)

16 years agoWHATSNEW: Add changes from Steven Danneman.
Karolin Seeger [Mon, 28 Apr 2008 08:01:12 +0000 (10:01 +0200)]
WHATSNEW: Add changes from Steven Danneman.

Karolin

16 years agoWHATSNEW: Preparation for 3.2.0rc1.
Karolin Seeger [Mon, 28 Apr 2008 07:19:41 +0000 (09:19 +0200)]
WHATSNEW: Preparation for 3.2.0rc1.

Karolin

16 years agoNext round fixing bug 5420, build on IRIX
Volker Lendecke [Sun, 27 Apr 2008 10:16:23 +0000 (12:16 +0200)]
Next round fixing bug 5420, build on IRIX

The IRIX make does not like lines with only whitespace. With LIBNETAPI_LIBS
evaluating to nothing this happens there.

16 years agoAttempt to fix the build on IRIX: Bug 5420
Volker Lendecke [Sat, 26 Apr 2008 07:48:17 +0000 (09:48 +0200)]
Attempt to fix the build on IRIX: Bug 5420

16 years agoFix bug 5419: memory leak in ads_do_search_all_args() when enumerating 1000s of entries
Steven Danneman [Sat, 26 Apr 2008 01:34:46 +0000 (18:34 -0700)]
Fix bug 5419: memory leak in ads_do_search_all_args() when enumerating 1000s of entries

The ads_do_search_all_args() function attempts to string together several
LDAPMessage structures, returned across several paged ldap requests, into a
single LDAPMessage structure.  It does this by pulling entries off the second
LDAPMessage structure and appending them to the first via the OpenLDAP specific
ldap_add_result_entry() call.

The problem with this approach is it skips non-entry messages such as the
result, and controls.  These messages are leaked.

The short term solution as suggested by Volker is to replace the ads_*_entry()
calls with ads_*_message() calls so we don't leak any messages.

This fixes the leak but doesn't remove the dependence on the OpenLDAP specific
implementation of ldap_add_result_entry().

16 years agoRemove hard coded sizes.
Jeremy Allison [Fri, 25 Apr 2008 15:29:08 +0000 (08:29 -0700)]
Remove hard coded sizes.
Jeremy.

16 years agoRevert "mount.cifs: Zero mountpassword content before freeing."
Volker Lendecke [Fri, 25 Apr 2008 15:04:44 +0000 (17:04 +0200)]
Revert "mount.cifs: Zero mountpassword content before freeing."

This reverts commit d99a31848bd2172c15500dd61ce30fef963c1ac6.

16 years agoRevert "Make some fns static"
Volker Lendecke [Fri, 25 Apr 2008 14:48:00 +0000 (16:48 +0200)]
Revert "Make some fns static"

This reverts commit e04fc36f223d8d905a930c077a6cf6c48ee57af7.

16 years agoRevert "Remove a redundant TALLOC_FREE"
Volker Lendecke [Fri, 25 Apr 2008 14:45:17 +0000 (16:45 +0200)]
Revert "Remove a redundant TALLOC_FREE"

This reverts commit 8e348ab8652e1893be78384404f57df1dbbcea48.

16 years agoRevert "Enable multiple fd events on a single file descriptor"
Volker Lendecke [Fri, 25 Apr 2008 14:43:30 +0000 (16:43 +0200)]
Revert "Enable multiple fd events on a single file descriptor"

This reverts commit 61503f822b60f98dd1f7549707ec89b48e32caeb.

16 years agoRevert "Remove some write-only fstrings"
Volker Lendecke [Fri, 25 Apr 2008 14:42:27 +0000 (16:42 +0200)]
Revert "Remove some write-only fstrings"

This reverts commit aacb07b1b0f674b8cb92347ef4b4dd1e7808dde8.

16 years agoRevert "Remove namedpipe_transact fn pointer from smb_np_struct"
Volker Lendecke [Fri, 25 Apr 2008 14:42:15 +0000 (16:42 +0200)]
Revert "Remove namedpipe_transact fn pointer from smb_np_struct"

This reverts commit d1f82b7e67a791e19d08c682b607d82ae649feb4.

16 years agoRevert "Set the right domain\user in cli_rpc_pipe_open_ntlmssp_internal"
Volker Lendecke [Fri, 25 Apr 2008 14:35:23 +0000 (16:35 +0200)]
Revert "Set the right domain\user in cli_rpc_pipe_open_ntlmssp_internal"

This reverts commit b90062e33cbde7de4961414fd35a3a588760d002.

16 years agoRevert "Refactoring: Make struct rpc_pipe_client its own talloc parent"
Volker Lendecke [Fri, 25 Apr 2008 14:35:10 +0000 (16:35 +0200)]
Revert "Refactoring: Make struct rpc_pipe_client its own talloc parent"

This reverts commit a6d74a5a562b54f0b36934965f545fdeb1e8b34a.

16 years agoRevert "Add "desthost" to rpc_pipe_client"
Volker Lendecke [Fri, 25 Apr 2008 14:35:05 +0000 (16:35 +0200)]
Revert "Add "desthost" to rpc_pipe_client"

This reverts commit 783afab9c891dd7bcb78895b2a639b6f3a0edf5b.

16 years agoRevert "Fix two "ignoring asprintf result" warnings"
Volker Lendecke [Fri, 25 Apr 2008 14:34:59 +0000 (16:34 +0200)]
Revert "Fix two "ignoring asprintf result" warnings"

This reverts commit 1d261e78b38e8080ca7122037d33c8ef913a4558.

16 years agoRevert "Move srv_name_slash from cli_state to rpc_pipe_client"
Volker Lendecke [Fri, 25 Apr 2008 14:34:30 +0000 (16:34 +0200)]
Revert "Move srv_name_slash from cli_state to rpc_pipe_client"

This reverts commit a9061e52e1ff8e31aa480f4a30cda64c9d93214e.

16 years agoRevert "Introduce rpccli_set_timeout()"
Volker Lendecke [Fri, 25 Apr 2008 14:34:18 +0000 (16:34 +0200)]
Revert "Introduce rpccli_set_timeout()"

This reverts commit 2e4c1ba38963cffe4c3f25ab24bc28975f2fc291.

16 years agoRevert "Use rpc_pipe_client->user_name instead of rpc_pipe_client->cli->user_name"
Volker Lendecke [Fri, 25 Apr 2008 14:34:11 +0000 (16:34 +0200)]
Revert "Use rpc_pipe_client->user_name instead of rpc_pipe_client->cli->user_name"

This reverts commit 3f6c5b99664a75a6f490ee3b6980b89cacf7f579.

16 years agoRevert "Remove some unused code referencing pipe_names[]"
Volker Lendecke [Fri, 25 Apr 2008 14:34:05 +0000 (16:34 +0200)]
Revert "Remove some unused code referencing pipe_names[]"

This reverts commit d8a04b798c44c26a91a37fa7090dd071a1909166.

16 years agoRevert "Remove the pipe_idx variable from rpc_pipe_client"
Volker Lendecke [Fri, 25 Apr 2008 14:33:54 +0000 (16:33 +0200)]
Revert "Remove the pipe_idx variable from rpc_pipe_client"

This reverts commit 4840febcd481563c3d9b2fabc1fe1b2ae5a76cf6.

16 years agoRevert "Refactoring: Move stuff around for creating a pipe"
Volker Lendecke [Fri, 25 Apr 2008 14:33:47 +0000 (16:33 +0200)]
Revert "Refactoring: Move stuff around for creating a pipe"

This reverts commit 45be749ed69f8c1ad3ebe8ea1f35c806db2ed5d0.

16 years agoRevert "Replace cli_rpc_pipe_close by a talloc destructor on rpc_pipe_struct"
Volker Lendecke [Fri, 25 Apr 2008 14:33:35 +0000 (16:33 +0200)]
Revert "Replace cli_rpc_pipe_close by a talloc destructor on rpc_pipe_struct"

This reverts commit 99fc3283c4ecc791f5a242bd1983b4352ce3e6cf.

16 years agoRevert "Remove a redundant reference to rpc_pipe_state->cli from srv_spoolss"
Volker Lendecke [Fri, 25 Apr 2008 14:33:30 +0000 (16:33 +0200)]
Revert "Remove a redundant reference to rpc_pipe_state->cli from srv_spoolss"

This reverts commit 7331c4c2781bf7904942c119f1a8de8eda00ae7e.

16 years agoRevert "Introduce rpc_pipe_np_smb_conn()"
Volker Lendecke [Fri, 25 Apr 2008 14:33:23 +0000 (16:33 +0200)]
Revert "Introduce rpc_pipe_np_smb_conn()"

This reverts commit c56e1c08cef107ff33a34346ceeca3475a102b19.

16 years agoRevert "Make convert_samr_dispinfo_to_NET_DISPLAY() static"
Volker Lendecke [Fri, 25 Apr 2008 14:33:15 +0000 (16:33 +0200)]
Revert "Make convert_samr_dispinfo_to_NET_DISPLAY() static"

This reverts commit a30a26d471a572167ee13bf10be1a275a6592851.

16 years agoRevert "Fix some empty lines with just spaces"
Volker Lendecke [Fri, 25 Apr 2008 14:33:01 +0000 (16:33 +0200)]
Revert "Fix some empty lines with just spaces"

This reverts commit f8fb9b7e3759bec7fbcf93b27438ca6b03202ddb.

16 years agoRevert "Remove the "pwd" struct from rpc_pipe_client"
Volker Lendecke [Fri, 25 Apr 2008 14:32:44 +0000 (16:32 +0200)]
Revert "Remove the "pwd" struct from rpc_pipe_client"

This reverts commit 3d8c2a47e677a4c4aacf4abf148b1bd8163c3351.

16 years agoRevert "Refactoring: Make cli_pipe_auth_data a pointer off rpc_pipe_client"
Volker Lendecke [Fri, 25 Apr 2008 14:31:31 +0000 (16:31 +0200)]
Revert "Refactoring: Make cli_pipe_auth_data a pointer off rpc_pipe_client"

This reverts commit f665afaaa3eff9ef54112e08ed034a6e1bb30edc.

16 years agoRevert "Move user/domain from rpc_pipe_client to cli_pipe_auth_data"
Volker Lendecke [Fri, 25 Apr 2008 14:31:25 +0000 (16:31 +0200)]
Revert "Move user/domain from rpc_pipe_client to cli_pipe_auth_data"

This reverts commit 42de50d2cd43e760d776694f7b5f003ba51d7f84.

16 years agoRevert "Create rpccli_xxx_bind_data functions"
Volker Lendecke [Fri, 25 Apr 2008 14:31:14 +0000 (16:31 +0200)]
Revert "Create rpccli_xxx_bind_data functions"

This reverts commit 630b9c241cb6db758f8290420a38af452569e903.

16 years agoRevert "Make use of rpccli_xxx_bind_data"
Volker Lendecke [Fri, 25 Apr 2008 14:31:08 +0000 (16:31 +0200)]
Revert "Make use of rpccli_xxx_bind_data"

This reverts commit f9bc336affd2ce21a3c62880ecea2622f35653d1.

16 years agoRevert "cli_rpc_pipe_open_noauth must take the user/domain from the smb session"
Volker Lendecke [Fri, 25 Apr 2008 14:31:00 +0000 (16:31 +0200)]
Revert "cli_rpc_pipe_open_noauth must take the user/domain from the smb session"

This reverts commit 6f08128cf2722618e74b603e180e7e2a83d7d07a.

16 years agoRevert "Introduce rpccli_pipe_txt(), describing a pipe for debug messages"
Volker Lendecke [Fri, 25 Apr 2008 14:30:55 +0000 (16:30 +0200)]
Revert "Introduce rpccli_pipe_txt(), describing a pipe for debug messages"

This reverts commit 83892d51de0dcdaeae18bc34d03eefefc95ff601.

16 years agoRevert "Introduce a redirection for ncacn_np and ncacn_ip_tcp in rpc_pipe_client"
Volker Lendecke [Fri, 25 Apr 2008 14:30:50 +0000 (16:30 +0200)]
Revert "Introduce a redirection for ncacn_np and ncacn_ip_tcp in rpc_pipe_client"

This reverts commit 3433f430b0c1f7d350a40eac783385a2d30d905c.

16 years agoRevert "Add basic ncacn_ip_tcp client infrastructure"
Volker Lendecke [Fri, 25 Apr 2008 14:30:45 +0000 (16:30 +0200)]
Revert "Add basic ncacn_ip_tcp client infrastructure"

This reverts commit 11072ccc7aeb6e087e78cea83959a2f6e0b2f837.

16 years agoRevert "Attempt to fix the non-krb build"
Volker Lendecke [Fri, 25 Apr 2008 14:30:39 +0000 (16:30 +0200)]
Revert "Attempt to fix the non-krb build"

This reverts commit 31d80a476701c89bf236997f2ab68bd2765579bd.

16 years agoIDL: Add autogenerated drsuapi files.
Günther Deschner [Fri, 25 Apr 2008 12:49:02 +0000 (14:49 +0200)]
IDL: Add autogenerated drsuapi files.

Guenther

16 years agoerrors: add WERR_INVALID_DOMAINNAME.
Günther Deschner [Thu, 24 Apr 2008 20:19:23 +0000 (22:19 +0200)]
errors: add WERR_INVALID_DOMAINNAME.

Guenther