1
0
mirror of https://github.com/samba-team/samba.git synced 2025-06-28 00:49:42 +03:00

119 Commits

Author SHA1 Message Date
Richard Sharpe
bf9f02be5f r248: Add support for printing out the MAC address on nmblookup. 2007-10-10 10:51:16 -05:00
Jeremy Allison
b4ea493599 Modified fix for bugid #784. Based on a patch from moriyama@miraclelinux.com (MORIYAMA Masayuki).
Don't use nstrings to hold workgroup and netbios names. The problem with them is that MB netbios
and workgroup names in unix charset (particularly utf8) may be up to 3x bigger than the name
when represented in dos charset (ie. cp932). So go back to using fstrings for these but
translate into nstrings (ie. 16 byte length values) for transport on the wire.
Jeremy.
-
Jeremy Allison
966e49a48c First part of patch from moriyama@miraclelinux.com (MORIYAMA Masayuki) to
fix up netbios names with mb strings. Includes reformat of libsmb/nmblib.c
so it's readable.
Jeremy.
-
Andrew Bartlett
e10e176c83 Make get_dc_list static - we only ask for a sorted list externally.
Andrew Bartlett
-
Gerald Carter
bca702c976 * allow dns lookups to be disabled for DOMAIN#1c (and #1b)
names
* fix some a mispelled variable name
-
Andrew Bartlett
7e75a6d681 Romve debugging assertions (oops...)
Andrew Bartlett
-
Andrew Bartlett
35f6347a73 Add a new type of name lookup 'ads'. This seperates this from normal
hostname lookups, and ensures that we don't lookup 'short' (ie NetBIOS)
domain names in DNS.

Andrew Bartlett
-
Jeremy Allison
d3d0353bae Make intent to return only one address clear.
Jeremy.
-
Jeremy Allison
f35e9a8b90 More tuning from cachegrind. Change most trim_string() calls to trim_char(0,
as that's what they do. Fix string_replace() to fast-path ascii.
Jeremy.
-
Gerald Carter
fa354f3cee fix bug #190; WINS server was getting marked as dead when it was not. -
Gerald Carter
d7f7fcda42 large change:
*)  consolidates the dc location routines again (dns
    and netbios)  get_dc_list() or get_sorted_dc_list()
    is the authoritative means of locating DC's again.

    (also inludes a flag to get_dc_list() to define
     if this should be a DNS only lookup or not)

    (however, if you set "name resolve order = hosts wins"
     you could still get DNS queries for domain name IFF
     ldap_domain2hostlist() fails.  The answer?  Fix your DNS
     setup)

*)  enabled DOMAIN<0x1c> lookups to be funneled through
    resolve_hosts resulting in a call to ldap_domain2hostlist()
    if lp_security() == SEC_ADS

*)  enables name cache for winbind ADS backend

*)  enable the negative connection cache for winbind
    ADS backend

*)  removes some old dead code

*)  consolidates some duplicate code

*)  moves the internal_name_resolve() to use an IP/port pair
    to deal with SRV RR dns replies.  The namecache code
    also supports the IP:port syntax now as well.

*)  removes 'ads server' and moves the functionality back
    into 'password server' (which can support "hostname:port"
    syntax now but works fine with defaults depending on
    the value of lp_security())
-
Gerald Carter
f8cab8635b * s/get_dc_name/rpc_dc_name/g (revert a previous change)
* move back to qsort() for sorting IP address in get_dc_list()

* remove dc_name_cache in cm_get_dc_name() since it slowed
  things down more than it helped.  I've made a note of where
  to add in the negative connection cache in the ads code.
  Will come back to that.

* fix rpcclient to use PRINTER_ALL_ACCESS for set printer (instead
  of MAX_ALLOWED)

* only enumerate domain local groups in our domain

* simplify ldap search for seqnum in winbindd's rpc backend
-
Jeremy Allison
8bcc3116a2 Forward port the app-head changes for dc name cache into 3.0.
Jeremy.
-
Volker Lendecke
6cde3d4d65 Revert a patch that somehow slipped in...
Volker
-
Volker Lendecke
5b3cb7725a This puts real netlogon connection caching to winbind. This becomes
important once we start doing schannel, as there would be a lot more
roundtrips for the second PIPE open and bind. With this patch logging
in to a member server is a matter of two (three if you count the
ack...) packets between us and the DC.

Volker
-
Jeremy Allison
c832e95c2f Writable string const fixes.
Jeremy.
-
Jeremy Allison
01f6b26945 Correctly check for inet_addr fail. Patch from gregor.7@osu.edu.
Jeremy.
-
Andrew Bartlett
f79324f730 Merge from HEAD - mimir's new gencache based namecache code.
Andrew Bartlett
-
Gerald Carter
18799c115b [merge] remove assert(count ==1) for multi-homed PDCs; CR 1277 -
Jeremy Allison
7acf959421 Doing janitorial duty for tpot - memory leak fix.
Jeremy.
-
Jeremy Allison
15185ac437 Fixup of ordered cleanup of get_dc_list - bug found by Dominik 'Aeneas' Schnitzer <dominik@schnitzer.at>
Jeremy.
-
Gerald Carter
016ef8b36b [merge from APP_HEAD]
90% fix for CR 1076.  The password server parameter will no take things
like

        password server = DC1 *

which means to contact DC1 first and the go to auto lookup if it
fails.


jerry
-
Jeremy Allison
f755711df8 Removed global_myworkgroup, global_myname, global_myscope. Added liberal
dashes of const. This is a rather large check-in, some things may break.
It does compile though :-).
Jeremy.
-
Tim Potter
6ba7847ce2 Merge of get_dc_list() api change from HEAD. -
Jelmer Vernooij
3928578b52 sync 3.0 branch with head -
Andrew Tridgell
03ac082dcb updated the 3.0 branch from the head branch - ready for alpha18 -
Jean-François Micouleau
638c692525 small change in name_resolve_bcast()
spotted by alexander bokovoy.

it shouldn't break anything. if it's wrong, feel free to revert but
explain why.

	J.F.
-
Tim Potter
5387e4046f Don't try to sort a list of zero length in internal_resolve_name() -
Jeremy Allison
8ed49fe0df Ensure that winbindd and smbd both use identical logic to find dc's.
Fix bug where zeroip addresses were being checked.
Jeremy.
-
Tim Potter
6a58c9bd06 Removed version number from file header.
Changed "SMB/Netbios" to "SMB/CIFS" in file header.
-
Tim Potter
e67c7c5852 Spelling fixes. -
Tim Potter
aca0edc819 Made a debug look nicer. -
Tim Potter
cfac669017 Merge of name_status_find() debugs. -
Andrew Tridgell
73a59170e6 cope with direct IP addresses in resolve_name() -
Andrew Tridgell
12021a8de6 make sure resolve_name() only returns valid IP addresses
this is actually a workaround for old broken nmbd daemons, especially
from Samba 2.0
-
Tim Potter
08d2bcef1a Merge from appliance-head:
- put in some level 10 debugs so we can see what internal_resolve_name()
   is doing

 - remove duplicates from returned ip list of internal_resolve_name()
-
Andrew Bartlett
b2af4372b1 Add a touch of const -
Andrew Bartlett
0692d792f2 Fix up funtion name, as this finds local, not domain master browsers.
(as per tridge's instructions)
-
Tim Potter
4215048f7b I think the lookup_pdc_name() should be called lookup_dc_name() and the
name_status_find() call here should look up a #1c name instead of #1d.
This fixes some bugs currently with BDC authentication in winbindd and in
smbd as you can't query the #1d name with the ip address of a BDC.

Who is Uncle Tom Cobbley anyway?
-
Jeremy Allison
39f076b56c Cross merge to make 2.2 and HEAD closer.
Jeremy.
-
Andrew Tridgell
e3698259af increment the value not the pointer -
Jeremy Allison
4aca67761f Use "password server" for searching for BDC's also as Tim suggested.
Jeremy.
-
Jeremy Allison
54c968913d W2K doesn't seem to respond to *#0 names in node status. Ensure name
lookup uses password server parameter when looking for PDCs.
Jeremy.
-
Martin Pool
a779710fff LMHOSTSFILE is now dynamically configured too. -
Steve French
3fd96a4754 Add function to add those hosts who have added msbrowse (domain master browsers) -
Jeremy Allison
b1930abb35 Got serious about const again.
REMOVED BZERO CALLS YET AGAIN !!! Why do these keep creeping back in....
They are *NOT* POSIX. I'm also thinking of removing strncpy as I'm sure
it's not being used correctly....
Jeremy.
-
Tim Potter
2d0922b0ea Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header. -
Simo Sorce
23dc3fc700 typo -
Simo Sorce
48fc6a6cd5 move to SAFE_FREE() -
Andrew Tridgell
fe6679dffb convert more code to use XFILE -