obnox/samba/samba-obnox.git
16 years agor24809: Consolidate the use of temporary talloc contexts.
Volker Lendecke [Thu, 30 Aug 2007 19:48:31 +0000 (19:48 +0000)]
r24809: Consolidate the use of temporary talloc contexts.

This adds the two functions talloc_stackframe() and talloc_tos().

 * When a new talloc stackframe is allocated with talloc_stackframe(), then
 * the TALLOC_CTX returned with talloc_tos() is reset to that new
 * frame. Whenever that stack frame is TALLOC_FREE()'ed, then the reverse
 * happens: The previous talloc_tos() is restored.
 *
 * This API is designed to be robust in the sense that if someone forgets to
 * TALLOC_FREE() a stackframe, then the next outer one correctly cleans up and
 * resets the talloc_tos().

The original motivation for this patch was to get rid of the
sid_string_static & friends buffers. Explicitly passing talloc context
everywhere clutters code too much for my taste, so an implicit
talloc_tos() is introduced here. Many of these static buffers are
replaced by a single static pointer.

The intended use would thus be that low-level functions can rather
freely push stuff to talloc_tos, the upper layers clean up by freeing
the stackframe. The more of these stackframes are used and correctly
freed the more exact the memory cleanup happens.

This patch removes the main_loop_talloc_ctx, tmp_talloc_ctx and
lp_talloc_ctx (did I forget any?)

So, never do a

tmp_ctx = talloc_init("foo");

anymore, instead, use

tmp_ctx = talloc_stackframe()

:-)

Volker

16 years agor24808: Fix the same problem Volker noticed.
Jeremy Allison [Thu, 30 Aug 2007 17:34:47 +0000 (17:34 +0000)]
r24808: Fix the same problem Volker noticed.

For some funny reason us4/gcc seems to fall over the '

Jeremy.

16 years agor24807: Add WINBINDD_LOCATOR_KDC_ADDRESS env which will be used for the case when the
Günther Deschner [Thu, 30 Aug 2007 16:24:51 +0000 (16:24 +0000)]
r24807: Add WINBINDD_LOCATOR_KDC_ADDRESS env which will be used for the case when the
locator gets called from within winbindd.

Guenther

16 years agor24806: Fix the build, sorry...
Günther Deschner [Thu, 30 Aug 2007 16:02:22 +0000 (16:02 +0000)]
r24806: Fix the build, sorry...

Guenther

16 years agor24805: When we can build the locator, build it.
Günther Deschner [Thu, 30 Aug 2007 15:55:59 +0000 (15:55 +0000)]
r24805: When we can build the locator, build it.

Guenther

16 years agor24804: As a temporary workaround, also try to guess the server's principal in the
Günther Deschner [Thu, 30 Aug 2007 15:39:51 +0000 (15:39 +0000)]
r24804: As a temporary workaround, also try to guess the server's principal in the
"not_defined_in_RFC4178@please_ignore" case to make at least LDAP SASL binds
succeed with windows server 2008.

Guenther

16 years agor24803: For some funny reason us4/gcc seems to fall over the '
Volker Lendecke [Thu, 30 Aug 2007 14:55:32 +0000 (14:55 +0000)]
r24803: For some funny reason us4/gcc seems to fall over the '

16 years agor24802: Activate new tests
Volker Lendecke [Thu, 30 Aug 2007 14:16:20 +0000 (14:16 +0000)]
r24802: Activate new tests

RAW-SAMBA3CASEINSENSITIVE and RAW-SAMBA3POSIXTIMEDLOCK

16 years agor24801: When told to ignore the winbind cache also do so while trying to store entries.
Günther Deschner [Thu, 30 Aug 2007 11:26:17 +0000 (11:26 +0000)]
r24801: When told to ignore the winbind cache also do so while trying to store entries.
Thanks Michael for pointing this out.

Guenther

16 years agor24799: Prefer IP address to dns name when replying in winbindd dsgetdcname.
Günther Deschner [Thu, 30 Aug 2007 09:52:21 +0000 (09:52 +0000)]
r24799: Prefer IP address to dns name when replying in winbindd dsgetdcname.

Guenther

16 years agor24797: Fix logic in dsgetdcname().
Günther Deschner [Thu, 30 Aug 2007 09:15:07 +0000 (09:15 +0000)]
r24797: Fix logic in dsgetdcname().

Guenther

16 years agor24791: Fix logic error in timeout of blocking lock processing found by
Jeremy Allison [Wed, 29 Aug 2007 20:49:09 +0000 (20:49 +0000)]
r24791: Fix logic error in timeout of blocking lock processing found by
Ronnie. If a lock timeout expires, we must check we can get the
lock before responding with failure. Volker is writing a torture test.
Jeremy.

16 years agor24789: Add implementation of machine-authenticated connection to netlogon
Rafal Szczesniak [Wed, 29 Aug 2007 19:55:13 +0000 (19:55 +0000)]
r24789: Add implementation of machine-authenticated connection to netlogon
pipe used when connecting to win2k and newer domain controllers. The
server may be configured to deny anonymous netlogon connections which
would stop domain join verification step. Still, winnt domains require
such smb sessions not to be authenticated using machine credentials.
Creds employed in smb session cannot have a username in upn form, so
provide the separate function to use machine account.

rafal

16 years agor24788: Cleanup some linking msgs and remove references to libmsrpc
Gerald Carter [Wed, 29 Aug 2007 19:03:20 +0000 (19:03 +0000)]
r24788: Cleanup some linking msgs and remove references to libmsrpc
in SAMBA_3_2_0

16 years agor24786: Fix another build warning.
Günther Deschner [Wed, 29 Aug 2007 14:50:04 +0000 (14:50 +0000)]
r24786: Fix another build warning.

Guenther

16 years agor24785: Put checks in parentheses.
Günther Deschner [Wed, 29 Aug 2007 14:35:32 +0000 (14:35 +0000)]
r24785: Put checks in parentheses.

Guenther

16 years agor24784: Initialize uninitalized data to prevent segfaults.
Michael Adam [Wed, 29 Aug 2007 14:34:15 +0000 (14:34 +0000)]
r24784: Initialize uninitalized data to prevent segfaults.
Thanks to Volker for the hint!

Michael

16 years agor24783: Remove unused off_t type.
Günther Deschner [Wed, 29 Aug 2007 14:08:29 +0000 (14:08 +0000)]
r24783: Remove unused off_t type.

Guenther

16 years agor24782: Fix C++ warnings
Volker Lendecke [Wed, 29 Aug 2007 13:56:52 +0000 (13:56 +0000)]
r24782: Fix C++ warnings

16 years agor24781: Fix build warning.
Günther Deschner [Wed, 29 Aug 2007 13:52:07 +0000 (13:52 +0000)]
r24781: Fix build warning.

Guenther

16 years agor24778: Make sure krb5 locator requests go to a separate locator winbind child.
Günther Deschner [Wed, 29 Aug 2007 12:43:23 +0000 (12:43 +0000)]
r24778: Make sure krb5 locator requests go to a separate locator winbind child.

Guenther

16 years agor24776: Remove accidentially commited flag checks.
Günther Deschner [Wed, 29 Aug 2007 12:35:20 +0000 (12:35 +0000)]
r24776: Remove accidentially commited flag checks.

Guenther

16 years agor24773: Fix a ctdb connection lockup
Volker Lendecke [Wed, 29 Aug 2007 11:46:44 +0000 (11:46 +0000)]
r24773: Fix a ctdb connection lockup

The lockup could happen when packet_read_sync() gets two packets in a row, the
first one being an async message, and the second one being the response to a
ctdb request.

Also add some debug msg to ctdb_conn.c, and cut off the "locking key" messages
to only dump 20 hex chars at debug level 10. >10 will dump everything.

16 years agor24771: Use infolevel 25 to set the machine account's password (just like winxp).
Rafal Szczesniak [Wed, 29 Aug 2007 11:02:04 +0000 (11:02 +0000)]
r24771: Use infolevel 25 to set the machine account's password (just like winxp).
This correctly updates pwdLastSet field on win2k3 server.

rafal

16 years agor24769: Merge error handling for locator plugin.
Günther Deschner [Wed, 29 Aug 2007 10:12:43 +0000 (10:12 +0000)]
r24769: Merge error handling for locator plugin.

Guenther

16 years agor24764: Fix second TALLOC_SIZE definition. Still watching the
Jeremy Allison [Wed, 29 Aug 2007 04:06:09 +0000 (04:06 +0000)]
r24764: Fix second TALLOC_SIZE definition. Still watching the
build farm to see I didn't stuff this up...
Jeremy.

16 years agor24762: Fix the build, missed TALLOC_SIZE -> talloc_named_const.
Jeremy Allison [Wed, 29 Aug 2007 01:48:46 +0000 (01:48 +0000)]
r24762: Fix the build, missed TALLOC_SIZE -> talloc_named_const.
Jeremy.

16 years agor24759: Comment out the _nonnull calls for 3.2.x, as agreed with tridge.
Jeremy Allison [Wed, 29 Aug 2007 01:23:31 +0000 (01:23 +0000)]
r24759: Comment out the _nonnull calls for 3.2.x, as agreed with tridge.
Leaving the commented out code for now, in case I need to re-test
some stuff.
Jeremy

16 years agor24752: Make sure to return properly when the locator is called from within winbindd.
Günther Deschner [Tue, 28 Aug 2007 16:39:03 +0000 (16:39 +0000)]
r24752: Make sure to return properly when the locator is called from within winbindd.

Guenther

16 years agor24750: Fix one more caller of name_resolve_bcast().
Michael Adam [Tue, 28 Aug 2007 15:38:03 +0000 (15:38 +0000)]
r24750: Fix one more caller of  name_resolve_bcast().

Michael

16 years agor24749: Increase debuglevel.
Günther Deschner [Tue, 28 Aug 2007 15:31:42 +0000 (15:31 +0000)]
r24749: Increase debuglevel.

Guenther

16 years agor24748: Remove all dependencies to samba internals and convert the krb5 locator plugin
Günther Deschner [Tue, 28 Aug 2007 15:26:59 +0000 (15:26 +0000)]
r24748: Remove all dependencies to samba internals and convert the krb5 locator plugin
into a tiny winbindd DsGetDcName client. This still does not solve the case of
using the locator from within winbindd itself but at least gencache.tdb and
others are no longer corrupted.

Guenther

16 years agor24747: Add WINBINDD_DSGETDCNAME call.
Günther Deschner [Tue, 28 Aug 2007 15:20:54 +0000 (15:20 +0000)]
r24747: Add WINBINDD_DSGETDCNAME call.

Guenther

16 years agor24746: As the winbindd pipe is officially broken since a while: split out request
Günther Deschner [Tue, 28 Aug 2007 15:16:42 +0000 (15:16 +0000)]
r24746: As the winbindd pipe is officially broken since a while: split out request
specfic and generic flags in a winbindd_request.

It turns out that the WBFLAG_RECURSE flag is the only non-PAM specific flag we
put into the "flags" field of a winbind request anyway. Now each request
command can use the entire space of the "flags" field.

Guenther

16 years agor24745: Merge Simo's shared lib build fix from svn r22842 that was lost
Gerald Carter [Tue, 28 Aug 2007 15:12:11 +0000 (15:12 +0000)]
r24745: Merge Simo's shared lib build fix from svn r22842 that was lost
somehow.  Don't include the PIE_FLAGS when building shared libs.

16 years agor24744: Increase length by what we got from recv, not from ioctl
Volker Lendecke [Tue, 28 Aug 2007 15:09:47 +0000 (15:09 +0000)]
r24744: Increase length by what we got from recv, not from ioctl

16 years agor24743: Fix build warning.
Günther Deschner [Tue, 28 Aug 2007 15:07:13 +0000 (15:07 +0000)]
r24743: Fix build warning.

Guenther

16 years agor24742: Add experimental DsGetDcName() call (will be used by krb5 locator for fine
Günther Deschner [Tue, 28 Aug 2007 15:01:23 +0000 (15:01 +0000)]
r24742: Add experimental DsGetDcName() call (will be used by krb5 locator for fine
grained KDC DNS queries).

Guenther

16 years agor24740: Fix the build.
Günther Deschner [Tue, 28 Aug 2007 14:31:31 +0000 (14:31 +0000)]
r24740: Fix the build.

Guenther

16 years agor24739: With resolve_ads() allow to query for PDCs as well.
Günther Deschner [Tue, 28 Aug 2007 14:27:48 +0000 (14:27 +0000)]
r24739: With resolve_ads() allow to query for PDCs as well.
Also add dns query functions to find GCs and DCs by GUID.

Guenther

16 years agor24738: Fix one more use of pwrite in tdb code in the spirit of r23972 and r23977.
Michael Adam [Tue, 28 Aug 2007 14:25:46 +0000 (14:25 +0000)]
r24738: Fix one more use of pwrite in tdb code in the spirit of r23972 and r23977.

Michael

16 years agor24737: Remove older TODO: Convert internal_resolve_name() and friends to NTSTATUS.
Günther Deschner [Tue, 28 Aug 2007 14:20:53 +0000 (14:20 +0000)]
r24737: Remove older TODO: Convert internal_resolve_name() and friends to NTSTATUS.

Guenther

16 years agor24734: Move nss_err_str() to a more public place.
Günther Deschner [Tue, 28 Aug 2007 12:49:46 +0000 (12:49 +0000)]
r24734: Move nss_err_str() to a more public place.

Guenther

16 years agor24733: Add support for storing DATA_BLOBs in gencache.tdb (including torturetest).
Günther Deschner [Tue, 28 Aug 2007 12:40:01 +0000 (12:40 +0000)]
r24733: Add support for storing DATA_BLOBs in gencache.tdb (including torturetest).

Mimir, please have a look. DATA_BLOBs will now just show up as "DATA_BLOB"
values with "net cache list".

Guenther

16 years agor24722: Squashed commit of the following:
Gerald Carter [Mon, 27 Aug 2007 20:09:37 +0000 (20:09 +0000)]
r24722: Squashed commit of the following:

commit fb52f971986dd298abbcd9745ddf702820ce0184
Author: Gerald Carter <coffeedude@plainjoe.org>
Date:   Mon Aug 27 13:50:26 2007 -0500

    Check correct return type for pam_winbind_request_log() wnibind_upn_to_username

    which is an int and not NSS_STATUS.

commit 7382edf6fc0fe555df89d5b2a94d12b35049b279
Author: Gerald Carter <coffeedude@plainjoe.org>
Date:   Mon Aug 27 13:30:26 2007 -0500

    Allow wbinfo -n to convert a UPN to a SID

commit 8266c0fe1ccf2141e5a983f3213356419e626dda
Author: Gerald Carter <coffeedude@plainjoe.org>
Date:   Fri Aug 3 09:53:16 2007 -0500

    Merge some of Guenther UPN work for pam_winbind.c (check the winbind separator

    and better pam logging when converting a upn to a username).

commit 15156c17bc81dbcadf32757015c4e5158823bf3f
Author: Gerald Carter <coffeedude@plainjoe.org>
Date:   Fri Aug 3 08:52:50 2007 -0500

    Include Universal groups from the cached PAC/SamLogon info when

    generating the list of domain group SIDs for a user's token.

commit 979053c0307b051954261d539445102c55f309c7
Author: Gerald Carter <coffeedude@plainjoe.org>
Date:   Thu Aug 2 17:35:41 2007 -0500

    merge upnlogon patch from my tree

16 years agor24714: Fix confusing indent.
Günther Deschner [Mon, 27 Aug 2007 18:26:40 +0000 (18:26 +0000)]
r24714: Fix confusing indent.

Guenther

16 years agor24713: Fix obvious error in enum_dom_groups. We were returning NT_STATUS_OK when...
Günther Deschner [Mon, 27 Aug 2007 18:12:29 +0000 (18:12 +0000)]
r24713: Fix obvious error in enum_dom_groups. We were returning NT_STATUS_OK when the realloc failed.

Guenther

16 years agor24711: Remove unused talloc context from query_user_list rpc.
Günther Deschner [Mon, 27 Aug 2007 18:07:49 +0000 (18:07 +0000)]
r24711: Remove unused talloc context from query_user_list rpc.

Guenther

16 years agor24702: Remove the old API pointers
Volker Lendecke [Mon, 27 Aug 2007 12:04:09 +0000 (12:04 +0000)]
r24702: Remove the old API pointers

16 years agor24701: Fix the swat build
Volker Lendecke [Mon, 27 Aug 2007 11:41:05 +0000 (11:41 +0000)]
r24701: Fix the swat build

Swat has not been built by default for a while, so I did not notice that
the _ macro is actually used. Re-add the lang_msg_rotate function, this
time only to swat so that this is the only binary that has to take the
16k penalty.

16 years agor24699: Actually write 24 zeros instead of zero 24's...
Volker Lendecke [Mon, 27 Aug 2007 11:01:13 +0000 (11:01 +0000)]
r24699: Actually write 24 zeros instead of zero 24's...

Jeremy, please check ;-)

16 years agor24661: Fix some obvious diffs between 3_2 and 3_2_0
Volker Lendecke [Sun, 26 Aug 2007 10:50:39 +0000 (10:50 +0000)]
r24661: Fix some obvious diffs between 3_2 and 3_2_0

Jeremy, there are two remaining diffs in sesssetup.c which I don't really
know which one is right. Can you take a look?

Thanks,

Volker

16 years agor24659: Some formatting changes helping to minimize the 3_2_0 diff
Volker Lendecke [Sat, 25 Aug 2007 19:47:57 +0000 (19:47 +0000)]
r24659: Some formatting changes helping to minimize the 3_2_0 diff

16 years agor24654: Adapt to coding conventions.
Günther Deschner [Fri, 24 Aug 2007 15:50:12 +0000 (15:50 +0000)]
r24654: Adapt to coding conventions.

Guenther

16 years agor24649: Attempt to fix bug 4917. Simo, please check!
Volker Lendecke [Fri, 24 Aug 2007 11:25:38 +0000 (11:25 +0000)]
r24649: Attempt to fix bug 4917. Simo, please check!

Thanks Patrick Rynhart for reporting this.

16 years agor24639: Add parameter "directory name cache size" - parameterize
Jeremy Allison [Thu, 23 Aug 2007 21:53:00 +0000 (21:53 +0000)]
r24639: Add parameter "directory name cache size" - parameterize
use of directory name cache, 100 by default. Will be needed
to turn this off for *BSD systems.
Jeremy.

16 years agor24638: Remove redundent setting of vuid.
Jeremy Allison [Thu, 23 Aug 2007 21:34:08 +0000 (21:34 +0000)]
r24638: Remove redundent setting of vuid.
Jeremy

16 years agor24637: In order for "net rpc registry" to be able to write to
Michael Adam [Thu, 23 Aug 2007 15:33:25 +0000 (15:33 +0000)]
r24637: In order for "net rpc registry" to be able to write to
Samba's own registry, the access mask for opening the
registry for the write operations needs to be
SEC_RIGHTS_MAXIMUM_ALLOWED instead of REG_WRITE: we can
not open e.g. HKLM read write explicitly, since we can
not write to this virtual part of the registry, only
to the subkeys like 'HKLM\Software\Samba\smbconf' that
are stored on disk.

Note that MAXIMUM_ALLOWED is also what windows' regedit
passed to the open calls.

Michael

16 years agor24636: Raise one debug level, since the callers (that want to do so)
Michael Adam [Thu, 23 Aug 2007 14:32:00 +0000 (14:32 +0000)]
r24636: Raise one debug level, since the callers (that want to do so)
issue a level 0 debug message.

Michael

16 years agor24632: Fix build warnings.
Günther Deschner [Thu, 23 Aug 2007 09:39:14 +0000 (09:39 +0000)]
r24632: Fix build warnings.

Guenther

16 years agor24630: Store Samba configuratin options only under the default name, not as aliases.
Michael Adam [Wed, 22 Aug 2007 16:03:17 +0000 (16:03 +0000)]
r24630: Store Samba configuratin options only under the default name, not as aliases.
This prevents creation of problematic configurations from registry editors
like regedit or "net rpc registry".

I will refactor the code to be somewhat more concise,
but I wanted to have this in the tree, now I got it working... :-)

Michael

16 years agor24629: Make read_sock return the total number of bytes read instead
Michael Adam [Wed, 22 Aug 2007 13:51:44 +0000 (13:51 +0000)]
r24629: Make read_sock return the total number of bytes read instead
of the number of bytes read in the last of possibly several
read calls.

This was noted by Metze.

Michael

16 years agor24627: merge from SAMBA_4_0:
Stefan Metzmacher [Wed, 22 Aug 2007 12:44:41 +0000 (12:44 +0000)]
r24627: merge from SAMBA_4_0:
as TALLOC_ABORT() is defined to abort() by default
wrap it into a function so that the function name
in the backtrace shows what happens.

metze

16 years agor24625: add '-D' option to winbindd
Stefan Metzmacher [Wed, 22 Aug 2007 12:28:58 +0000 (12:28 +0000)]
r24625: add '-D' option to winbindd

TODO: don't allow '-i -D' and '-D -i' on all
      server binaries in the SAMBA_3_2 branch!
      The &server_mode patch makes this difficult to check...

metze

16 years agor24621: - deferr calling build_options();exit(0);
Stefan Metzmacher [Wed, 22 Aug 2007 12:06:27 +0000 (12:06 +0000)]
r24621: - deferr calling build_options();exit(0);
- use poptPrintUsage() to give the user more info

metze

16 years agor24618: move printing out the version string and exit()
Stefan Metzmacher [Wed, 22 Aug 2007 11:55:48 +0000 (11:55 +0000)]
r24618: move printing out the version string and exit()
into the popt _POST processing.

Now 'smbd -V --bla' complains about an unknown option

metze

16 years agor24616: In set_boolean(), only pass the result back to the caller
Michael Adam [Wed, 22 Aug 2007 10:47:32 +0000 (10:47 +0000)]
r24616: In set_boolean(), only pass the result back to the caller
if parsing of the boolean string was successful.
Also, initialize the local result variable
(although not strictly necessary anymore, now.)

16 years agor24615: Say for which domain the getdcname request failed.
Günther Deschner [Wed, 22 Aug 2007 09:32:37 +0000 (09:32 +0000)]
r24615: Say for which domain the getdcname request failed.

Guenther

16 years agor24610: Add a debug message that the workaround has been activated...
Michael Adam [Tue, 21 Aug 2007 21:57:58 +0000 (21:57 +0000)]
r24610: Add a debug message that the workaround has been activated...

16 years agor24609: Fix the fix of r23668 for win2k giving one zero byte
Michael Adam [Tue, 21 Aug 2007 21:55:51 +0000 (21:55 +0000)]
r24609: Fix the fix of r23668 for win2k giving one zero byte
instead of a 2-byte zero character. I can't recall what
rode me when I put that "2" there. But now I think I
have got it right... :-)

Michael

16 years agor24605: remove some stuff samba3 doesn't need any more
Stefan Metzmacher [Tue, 21 Aug 2007 19:23:05 +0000 (19:23 +0000)]
r24605: remove some stuff samba3 doesn't need any more

metze

16 years agor24603: In case of error we need to free prefix_cache otherwise on re-init the first
Simo Sorce [Tue, 21 Aug 2007 18:45:45 +0000 (18:45 +0000)]
r24603: In case of error we need to free prefix_cache otherwise on re-init the first
statement will return positively but prefix_cache_hashes would be NULL

16 years agor24602: Add function lp_string_is_valid_boolean() to check if a string
Michael Adam [Tue, 21 Aug 2007 14:47:15 +0000 (14:47 +0000)]
r24602: Add function lp_string_is_valid_boolean() to check if a string
contains a correct representation of a boolean value (in the
understanding of loadparm.c).

Make set_boolean() catch passing NULL for the boolean target.

Michael

16 years agor24601: Fix if statements where we still expected cli_connect() to return BOOL.
Lars Müller [Tue, 21 Aug 2007 14:42:36 +0000 (14:42 +0000)]
r24601: Fix if statements where we still expected cli_connect() to return BOOL.

16 years agor24599: patch from Karolin Seeger <ks@sernet.de>:
Stefan Metzmacher [Tue, 21 Aug 2007 14:22:16 +0000 (14:22 +0000)]
r24599: patch from Karolin Seeger <ks@sernet.de>:

smbd, nmbd and winbindd can be started with invalid options currently.
The first patch attached would be a possible solution.
It contains an exit if an invalid option has been used. The main problem
is, that existing setups with wrong options or missing arguments in start
scripts will break (which is the right behaviour from my point of view).

metze

16 years agor24597: - talloc request structure for the samba3 server bindings
Stefan Metzmacher [Tue, 21 Aug 2007 14:06:46 +0000 (14:06 +0000)]
r24597: - talloc request structure for the samba3 server bindings
  and make that the primary context for the request
  which the implementations can also use.
- go via functions pointers in the ndr_interface_table
  instead of calling functions directly.

metze

16 years agor24595: Fix Coverity ID 393
Volker Lendecke [Tue, 21 Aug 2007 12:58:10 +0000 (12:58 +0000)]
r24595: Fix Coverity ID 393

In this error case we would have used "start" not having it initialized

16 years agor24594: pass down the ndr_interface_table in the samba3 client bindings
Stefan Metzmacher [Tue, 21 Aug 2007 12:20:33 +0000 (12:20 +0000)]
r24594: pass down the ndr_interface_table in the samba3 client bindings
instead of the pull and push functions

metze

16 years agor24590: Reformatting to coding standards. Added my (C) in places it already should
Jeremy Allison [Tue, 21 Aug 2007 02:04:24 +0000 (02:04 +0000)]
r24590: Reformatting to coding standards. Added my (C) in places it already should
have been :-).
Jeremy.

16 years agor24589: Refactor our vuid code so that we keep the same
Jeremy Allison [Tue, 21 Aug 2007 01:43:22 +0000 (01:43 +0000)]
r24589: Refactor our vuid code so that we keep the same
vuid that was allocated whilst the connection is
being constructed and after the connection has been set up.
This is what Windows does and at least one client
(and HP printer) depends on this behaviour. As it
depends on the req struct not yet ported to SAMBA_3_2_0
(Volker, hint hint.... :-) I am not yet adding this
to that branch, but will investigate that tomorrow.
Jeremy.

16 years agor24584: Merge all pam post-processing code (in particular all extra_data code) into
Günther Deschner [Mon, 20 Aug 2007 15:53:56 +0000 (15:53 +0000)]
r24584: Merge all pam post-processing code (in particular all extra_data code) into
append_data().

Guenther

16 years agor24583: Make sure we don't accept invalid request options.
Günther Deschner [Mon, 20 Aug 2007 15:46:56 +0000 (15:46 +0000)]
r24583: Make sure we don't accept invalid request options.
Thanks to Michael for his bit-magic.

Guenther

16 years agor24579: Merge error reporting to the end of winbindd_pam_auth().
Günther Deschner [Mon, 20 Aug 2007 12:45:09 +0000 (12:45 +0000)]
r24579: Merge error reporting to the end of winbindd_pam_auth().

Guenther

16 years agor24578: Fix build warning.
Günther Deschner [Mon, 20 Aug 2007 12:29:07 +0000 (12:29 +0000)]
r24578: Fix build warning.

Guenther

16 years agor24573: Fix build without LDAP. Thanks Volker for pointing this out.
Günther Deschner [Mon, 20 Aug 2007 09:47:13 +0000 (09:47 +0000)]
r24573: Fix build without LDAP. Thanks Volker for pointing this out.

Guenther

16 years agor24572: Allow for functions map_parameter_canonical() and is_synonym_of() to
Michael Adam [Mon, 20 Aug 2007 09:32:30 +0000 (09:32 +0000)]
r24572: Allow for functions map_parameter_canonical() and is_synonym_of() to
be called with inverse == NULL.

Add a new function lp_parameter_is_canonical() to check whether a
parameter name is the canonical name (as apposed to an alias).

Michael

16 years agor24571: Only look at errno if the close call actually failed
Volker Lendecke [Mon, 20 Aug 2007 07:59:22 +0000 (07:59 +0000)]
r24571: Only look at errno if the close call actually failed

Patch from Ofir Azoulay <Ofir.Azoulay@expand.com> -- thanks

16 years agor24564: regenerate after pidl changes...
Stefan Metzmacher [Sun, 19 Aug 2007 22:24:45 +0000 (22:24 +0000)]
r24564: regenerate after pidl changes...

metze

16 years agor24561: merge from SAMBA_4_0:
Stefan Metzmacher [Sun, 19 Aug 2007 22:10:11 +0000 (22:10 +0000)]
r24561: merge from SAMBA_4_0:
rename some DCERPC_ prefixes into NDR_

metze

16 years agor24558: merge from SAMBA_4_0:
Stefan Metzmacher [Sun, 19 Aug 2007 21:23:28 +0000 (21:23 +0000)]
r24558: merge from SAMBA_4_0:
rename 'dcerpc_table_' -> 'ndr_table_'

metze

16 years agor24552: merge from SAMBA_4_0:
Stefan Metzmacher [Sun, 19 Aug 2007 20:47:31 +0000 (20:47 +0000)]
r24552: merge from SAMBA_4_0:
rename dcerpc_interface_table -> ndr_interface_table
rename dcerpc_interface_list  -> ndr_interface_list

and move them to libndr.h

metze

16 years agor24550: Attempt to fix the non-LDAP build
Volker Lendecke [Sun, 19 Aug 2007 20:09:16 +0000 (20:09 +0000)]
r24550: Attempt to fix the non-LDAP build

For example host "bigboy" doesn't have it.

Günther, please fix it properly and merge to 3_2_0

Thanks,

Volker

16 years agor24549: Fix unix_convert to return the already converted part
Volker Lendecke [Sun, 19 Aug 2007 20:00:43 +0000 (20:00 +0000)]
r24549: Fix unix_convert to return the already converted part

This API will change anyway when moving away from pstrings.

It took so long to fix, because that rename bug I just fixed gave make
test failures that had nothing to do with this one.

I have samba4 tests for both bugs, will check them in when the build
farm has caught up

16 years agor24548: Fix the case-changing renames
Volker Lendecke [Sun, 19 Aug 2007 19:57:55 +0000 (19:57 +0000)]
r24548: Fix the case-changing renames

This was broken when I changed reply_mv to wrap in a open_file_ntcreate
call, unix_convert on the destination was called twice

16 years agor24547: Fix #4897, patch from David S. Collier-Brown <davecb@spamcop.net> -- Thanks!
Volker Lendecke [Sun, 19 Aug 2007 19:52:18 +0000 (19:52 +0000)]
r24547: Fix #4897, patch from David S. Collier-Brown <davecb@spamcop.net> -- Thanks!

16 years agor24543: Apply missing portion of correction for bug 4750
Derrell Lipman [Sat, 18 Aug 2007 17:29:39 +0000 (17:29 +0000)]
r24543: Apply missing portion of correction for bug 4750

16 years agor24541: merge from SAMBA_4_0:
Stefan Metzmacher [Sat, 18 Aug 2007 12:25:59 +0000 (12:25 +0000)]
r24541: merge from SAMBA_4_0:
rename struct dcerpc_endpoint_list/struct dcerpc_authservice_list
into ndr_interface_string_array and move it to libndr.h

metze

16 years agor24538: merge from SAMBA_4_0:
Stefan Metzmacher [Sat, 18 Aug 2007 10:33:44 +0000 (10:33 +0000)]
r24538: merge from SAMBA_4_0:
rename struct dcerpc_interface_call -> struct ndr_interface_call
and move it to librpc/ndr/libndr.h

metze

16 years agor24537: regenerate after pidl fixes
Stefan Metzmacher [Sat, 18 Aug 2007 10:32:53 +0000 (10:32 +0000)]
r24537: regenerate after pidl fixes

metze

16 years agor24533: merge from SAMBA_4_0:
Stefan Metzmacher [Sat, 18 Aug 2007 08:18:38 +0000 (08:18 +0000)]
r24533: merge from SAMBA_4_0:
rename dcerpc_syntax_id -> ndr_syntax_id

metze