1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00
Commit Graph

23157 Commits

Author SHA1 Message Date
Jeremy Allison
c6c8f5a897 r24813: Reformat to 80 columns.
Jeremy.
2007-10-10 12:30:25 -05:00
Jeremy Allison
0cdf046dae r24811: Simple reformatting to fit the 80 columns rule.
Jeremy.
2007-10-10 12:30:24 -05:00
Volker Lendecke
6585ea2cb7 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
2007-10-10 12:30:24 -05:00
Jeremy Allison
229e02d732 r24808: Fix the same problem Volker noticed.
For some funny reason us4/gcc seems to fall over the '

Jeremy.
2007-10-10 12:30:23 -05:00
Günther Deschner
46dbd6034e r24807: Add WINBINDD_LOCATOR_KDC_ADDRESS env which will be used for the case when the
locator gets called from within winbindd.

Guenther
2007-10-10 12:30:23 -05:00
Günther Deschner
cd1fccaf8f r24806: Fix the build, sorry...
Guenther
2007-10-10 12:30:23 -05:00
Günther Deschner
91d10fe159 r24805: When we can build the locator, build it.
Guenther
2007-10-10 12:30:23 -05:00
Günther Deschner
f5b3de4d30 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
2007-10-10 12:30:23 -05:00
Volker Lendecke
08e309e955 r24803: For some funny reason us4/gcc seems to fall over the ' 2007-10-10 12:30:22 -05:00
Volker Lendecke
1f396cc237 r24802: Activate new tests
RAW-SAMBA3CASEINSENSITIVE and RAW-SAMBA3POSIXTIMEDLOCK
2007-10-10 12:30:22 -05:00
Günther Deschner
c704760444 r24801: When told to ignore the winbind cache also do so while trying to store entries.
Thanks Michael for pointing this out.

Guenther
2007-10-10 12:30:22 -05:00
Günther Deschner
e5cc09c72f r24799: Prefer IP address to dns name when replying in winbindd dsgetdcname.
Guenther
2007-10-10 12:30:22 -05:00
Günther Deschner
aca2d78db1 r24797: Fix logic in dsgetdcname().
Guenther
2007-10-10 12:30:22 -05:00
Jeremy Allison
45380f356b 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.
2007-10-10 12:30:22 -05:00
Rafal Szczesniak
30d99d8ac3 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
2007-10-10 12:30:21 -05:00
Gerald Carter
ba05dc013f r24788: Cleanup some linking msgs and remove references to libmsrpc
in SAMBA_3_2_0
2007-10-10 12:30:21 -05:00
Günther Deschner
29a56dcc78 r24786: Fix another build warning.
Guenther
2007-10-10 12:30:21 -05:00
Günther Deschner
d8197aca5a r24785: Put checks in parentheses.
Guenther
2007-10-10 12:30:21 -05:00
Michael Adam
3b7ed3ea88 r24784: Initialize uninitalized data to prevent segfaults.
Thanks to Volker for the hint!

Michael
2007-10-10 12:30:21 -05:00
Günther Deschner
85c816c27f r24783: Remove unused off_t type.
Guenther
2007-10-10 12:30:21 -05:00
Volker Lendecke
f7e8df81ef r24782: Fix C++ warnings 2007-10-10 12:30:20 -05:00
Günther Deschner
71307c371f r24781: Fix build warning.
Guenther
2007-10-10 12:30:20 -05:00
Günther Deschner
fb9228b8d1 r24778: Make sure krb5 locator requests go to a separate locator winbind child.
Guenther
2007-10-10 12:30:20 -05:00
Günther Deschner
1efc5009a4 r24776: Remove accidentially commited flag checks.
Guenther
2007-10-10 12:30:20 -05:00
Volker Lendecke
0a55880a24 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.
2007-10-10 12:30:20 -05:00
Rafal Szczesniak
dd6d44c166 r24771: Use infolevel 25 to set the machine account's password (just like winxp).
This correctly updates pwdLastSet field on win2k3 server.

rafal
2007-10-10 12:30:19 -05:00
Günther Deschner
b83626676c r24769: Merge error handling for locator plugin.
Guenther
2007-10-10 12:30:19 -05:00
Jeremy Allison
4ca43172d9 r24764: Fix second TALLOC_SIZE definition. Still watching the
build farm to see I didn't stuff this up...
Jeremy.
2007-10-10 12:30:18 -05:00
Jeremy Allison
e2d924248e r24762: Fix the build, missed TALLOC_SIZE -> talloc_named_const.
Jeremy.
2007-10-10 12:30:18 -05:00
Jeremy Allison
343be04643 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
2007-10-10 12:30:18 -05:00
Günther Deschner
6cf7187e88 r24752: Make sure to return properly when the locator is called from within winbindd.
Guenther
2007-10-10 12:30:18 -05:00
Michael Adam
757b5c1bd7 r24750: Fix one more caller of name_resolve_bcast().
Michael
2007-10-10 12:30:18 -05:00
Günther Deschner
d82c1638b8 r24749: Increase debuglevel.
Guenther
2007-10-10 12:30:18 -05:00
Günther Deschner
908e7963b8 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
2007-10-10 12:30:17 -05:00
Günther Deschner
429496a4cc r24747: Add WINBINDD_DSGETDCNAME call.
Guenther
2007-10-10 12:30:17 -05:00
Günther Deschner
18b29763d1 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
2007-10-10 12:30:17 -05:00
Gerald Carter
22f2f1e033 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.
2007-10-10 12:30:17 -05:00
Volker Lendecke
23c8f4f74b r24744: Increase length by what we got from recv, not from ioctl 2007-10-10 12:30:17 -05:00
Günther Deschner
579fb55b75 r24743: Fix build warning.
Guenther
2007-10-10 12:30:17 -05:00
Günther Deschner
3263cd680f r24742: Add experimental DsGetDcName() call (will be used by krb5 locator for fine
grained KDC DNS queries).

Guenther
2007-10-10 12:30:16 -05:00
Günther Deschner
a30549bbf4 r24740: Fix the build.
Guenther
2007-10-10 12:30:16 -05:00
Günther Deschner
cc469157f6 r24739: With resolve_ads() allow to query for PDCs as well.
Also add dns query functions to find GCs and DCs by GUID.

Guenther
2007-10-10 12:30:16 -05:00
Michael Adam
a3506f291a r24738: Fix one more use of pwrite in tdb code in the spirit of r23972 and r23977.
Michael
2007-10-10 12:30:16 -05:00
Günther Deschner
8300aac494 r24737: Remove older TODO: Convert internal_resolve_name() and friends to NTSTATUS.
Guenther
2007-10-10 12:30:16 -05:00
Günther Deschner
f62292c5a1 r24734: Move nss_err_str() to a more public place.
Guenther
2007-10-10 12:30:16 -05:00
Günther Deschner
b8ad546d04 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
2007-10-10 12:30:15 -05:00
Gerald Carter
98fb5bcd57 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
2007-10-10 12:30:15 -05:00
Günther Deschner
6a9af88a2d r24714: Fix confusing indent.
Guenther
2007-10-10 12:30:15 -05:00
Günther Deschner
750b52cb47 r24713: Fix obvious error in enum_dom_groups. We were returning NT_STATUS_OK when the realloc failed.
Guenther
2007-10-10 12:30:15 -05:00
Günther Deschner
5187157607 r24711: Remove unused talloc context from query_user_list rpc.
Guenther
2007-10-10 12:30:15 -05:00