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

23144 Commits

Author SHA1 Message Date
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
Volker Lendecke
17df313db4 r24702: Remove the old API pointers 2007-10-10 12:30:14 -05:00
Volker Lendecke
191e1ef840 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.
2007-10-10 12:30:14 -05:00
Volker Lendecke
85b64bde7d r24699: Actually write 24 zeros instead of zero 24's...
Jeremy, please check ;-)
2007-10-10 12:30:14 -05:00
Volker Lendecke
d82f354487 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
2007-10-10 12:30:13 -05:00
Volker Lendecke
c5caea43af r24659: Some formatting changes helping to minimize the 3_2_0 diff 2007-10-10 12:30:13 -05:00
Günther Deschner
a669ac2bc4 r24654: Adapt to coding conventions.
Guenther
2007-10-10 12:30:13 -05:00
Volker Lendecke
b7c0404893 r24649: Attempt to fix bug 4917. Simo, please check!
Thanks Patrick Rynhart for reporting this.
2007-10-10 12:30:13 -05:00
Jeremy Allison
bea8e9840f 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.
2007-10-10 12:30:13 -05:00
Jeremy Allison
fd682c3f39 r24638: Remove redundent setting of vuid.
Jeremy
2007-10-10 12:30:12 -05:00
Michael Adam
57c30f7319 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
2007-10-10 12:30:12 -05:00
Michael Adam
c0022ff927 r24636: Raise one debug level, since the callers (that want to do so)
issue a level 0 debug message.

Michael
2007-10-10 12:30:12 -05:00
Günther Deschner
e9178af01d r24632: Fix build warnings.
Guenther
2007-10-10 12:30:12 -05:00
Michael Adam
4424a03032 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
2007-10-10 12:30:12 -05:00