1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-02 09:47:23 +03:00

20255 Commits

Author SHA1 Message Date
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
Michael Adam
0193a49223 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
2007-10-10 12:30:11 -05:00
Stefan Metzmacher
ddbe971030 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
2007-10-10 12:30:11 -05:00
Stefan Metzmacher
102bb0fc17 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
2007-10-10 12:30:11 -05:00
Stefan Metzmacher
a95d9d1ef9 r24621: - deferr calling build_options();exit(0);
- use poptPrintUsage() to give the user more info

metze
2007-10-10 12:30:11 -05:00
Stefan Metzmacher
c115de4bea r24618: move printing out the version string and exit()
into the popt _POST processing.

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

metze
2007-10-10 12:30:11 -05:00
Michael Adam
bf0daa74fa 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.)
2007-10-10 12:30:10 -05:00
Günther Deschner
1ce1958f7a r24615: Say for which domain the getdcname request failed.
Guenther
2007-10-10 12:30:10 -05:00
Michael Adam
a12f3bf6e9 r24610: Add a debug message that the workaround has been activated... 2007-10-10 12:30:10 -05:00
Michael Adam
fa010bef11 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
2007-10-10 12:30:10 -05:00
Stefan Metzmacher
5514e8487f r24605: remove some stuff samba3 doesn't need any more
metze
2007-10-10 12:30:10 -05:00
Simo Sorce
fdc20894a0 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
2007-10-10 12:30:10 -05:00
Michael Adam
d13eaa60f5 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
2007-10-10 12:30:09 -05:00
Lars Müller
12cb06d6ad r24601: Fix if statements where we still expected cli_connect() to return BOOL. 2007-10-10 12:30:09 -05:00
Stefan Metzmacher
8532e3182a 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
2007-10-10 12:30:09 -05:00
Stefan Metzmacher
5c4d998300 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
2007-10-10 12:30:08 -05:00
Volker Lendecke
751834fff9 r24595: Fix Coverity ID 393
In this error case we would have used "start" not having it initialized
2007-10-10 12:30:08 -05:00
Stefan Metzmacher
5e3d4df9bc r24594: pass down the ndr_interface_table in the samba3 client bindings
instead of the pull and push functions

metze
2007-10-10 12:30:08 -05:00