1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
Commit Graph

8957 Commits

Author SHA1 Message Date
Andrew Tridgell
310e85d7fb don't backup to a newer file
(This used to be commit ae2f8aa9d0)
2002-06-28 03:52:22 +00:00
Andrew Tridgell
01eec58243 make net join a bit less verbose
these errors happen all the time, so they shouldn't be level 0
(This used to be commit abc2aed26c)
2002-06-28 03:51:31 +00:00
Andrew Tridgell
060b73bd8e don't warn on non-existant files in map_file(), let the caller handle any warning
(This used to be commit 98a119ee58)
2002-06-28 03:19:20 +00:00
Andrew Tridgell
5bc613c362 don't warn on the loading of zero length files. This fixes the
'valid.dat' warning
(This used to be commit 57101ef770)
2002-06-28 02:54:40 +00:00
Jeremy Allison
452eb38df0 Proper merge of all the working printing stuff from APPLIANCE_HEAD.
Now let's keep this in sync !
Jeremy.
(This used to be commit 3603cd4947)
2002-06-28 00:17:15 +00:00
Gerald Carter
a9093a1b58 It's fairly obvious that no one has tried to upload a driver
to a Samba print server running HEAD in a while.  This has been broken
since tridge's changes to make_connection() to not do the chdir()
to the connect_path.  Sorry it took me so long to get around to fixing it.

The problem occured with our internal use of make_connection().

jerry
(This used to be commit b5bc8aa0f6)
2002-06-27 18:10:56 +00:00
Andrew Tridgell
551a4cd895 fixed a link problem with global_in_nmbd
(This used to be commit 9a3e323ec2)
2002-06-27 14:54:01 +00:00
Andrew Tridgell
223ddc3f2d The next phase in the WINS rewrite!
We now cope wiith multiple WINS groups and multiple failover servers
for release and refresh as well as registration. We also do the regitrations
in the same fashion as W2K does, where we don't try to register the next
IP in the list for a name until the WINS server has acked the previos IP.
This prevents us flooding the WINS server and also seems to make for much
more reliable multi-homed registration.

I also changed the dead WINS server code to mark pairs of IPs dead,
not individual IPs. The idea is that a WINS server might be dead from
the point of view of one of our interfaces, but not another, so we
need to keep talking to it on one while moving onto a failover WINS
server on the other interface. This copes much better with partial
LAN outages and weird routing tables.
(This used to be commit 313f2c9ff7)
2002-06-27 14:37:17 +00:00
Andrew Bartlett
675a108c65 Jelmer has been keeping on top of the typos.
(This used to be commit 1e36b7e962)
2002-06-27 14:23:48 +00:00
Andrew Bartlett
b1fd1177ae We don't use SSL any more...
(from jelmer)

Andrew Bartlett
(This used to be commit f766fc47d4)
2002-06-27 14:12:30 +00:00
Gerald Carter
8587400d28 a null grp_sid should have a 0 offset. Also removed a few more unnecessary
prs_align() for sec_desc.
(This used to be commit fc3770f281)
2002-06-27 01:12:37 +00:00
Jeremy Allison
cb8dcb0b60 Using 1 for a tdb hash size makes for slow inserts....
Jeremy.
(This used to be commit d015c08100)
2002-06-27 00:13:20 +00:00
Jim McDonough
1aff36d923 Re-enable kernel change notification on s390 as it has been fixed in the
kernel.
(This used to be commit ce7aa715ba)
2002-06-26 23:45:59 +00:00
Gerald Carter
dd1bd197a3 more merges from SAMBA_2_2
(This used to be commit fea895c5c4)
2002-06-26 23:26:10 +00:00
Gerald Carter
edb7324a28 merge from APP_HEAD
(This used to be commit d8cf54399d)
2002-06-26 19:08:32 +00:00
Jeremy Allison
8dd5ba8ced Typo...
Jeremy.
(This used to be commit 4ed134426d)
2002-06-26 17:37:53 +00:00
Jeremy Allison
caf5a36b68 Added prs_align_uint16 for SD aligns.
Jeremy.
(This used to be commit 374182a9ba)
2002-06-26 17:36:58 +00:00
Jim McDonough
f0a0c6955b Reduce compiler warnings.
(This used to be commit b361089360)
2002-06-26 17:27:30 +00:00
Andrew Tridgell
cc7ecaac68 resolve_wins() now needs to be a public function
(This used to be commit 0bce9af615)
2002-06-26 12:49:59 +00:00
Andrew Tridgell
caeaa0acb0 This commit finally gives us multiple wins server groups. We now
accept an extended syntax for 'wins server' like this:

  wins server = group1:192.168.2.10 group2:192.168.3.99 group1:192.168.0.1

The tags before the IPs don't mean anything, they are just a way of
grouping IPs together. If you use the old syntax (ie. no ':') then
an implicit group name of '*' is used. In general I'd recommend people
use interface names for the group names, but it doesn't matter much.

When we register in nmbd we try to register all our IPs with each group
of WINS servers. We keep trying until all of them are registered with
every group, falling back to the failover WINS servers for each group
as we go.

When we do a WINS lookup we try each of the WINS servers for each group.
If a WINS server for a group gives a negative answer then we give up
on that group and move to the next group. If it times out then
we move to the next failover wins server in the group.

In either case, if a WINS server doesn't respond then we mark it dead
for 10 minutes, to prevent lengthy waits for dead servers.
(This used to be commit e125f06058)
2002-06-26 12:17:11 +00:00
Andrew Tridgell
38bd5bf9eb we never pass any userdata when doing name registrations on the
unicast subnet, so remove that parameter. That frees up userdata so I
can start using it to indicate which wins server tag we are
registering (more about wins 'tags' later ...)
(This used to be commit 1324f0c185)
2002-06-26 08:58:03 +00:00
Andrew Tridgell
b20ca8b868 removed the wins name registration code from libsmbclient
it is *completely* bogus for our client code to be doing wins
registrations. Not only is it slow as hell (think about when a wins
server is down) but how the heck is going to answer the queries that
will later come in for our name? And what happens when libsmbclient
sends registrations and nmbd then gets the WACK response from the wins
server? we end up losing our name!

Name registration is a job for nmbd, not for clients.
(This used to be commit 62774923ff)
2002-06-26 08:09:28 +00:00
Andrew Tridgell
2842de9d7c made the wins list handling a littler clearer
(This used to be commit d03efabc4d)
2002-06-26 07:27:00 +00:00
Andrew Tridgell
5d61d02c15 mumble ... fix typo ... mumble
(This used to be commit 68be27cfea)
2002-06-26 07:23:35 +00:00
Andrew Tridgell
0dd78fbd7d fixed we_are_multihomed() to cope with dynamic interfaces (ie. don't
cache the result!)
(This used to be commit fc8aa198b1)
2002-06-26 07:23:00 +00:00
Andrew Tridgell
07f35f68e0 - completely rewrote the wins_srv.c code. It is now much simpler, and
gives us a good grounding to properly support multiple wins servers
for different interfaces (which will be coming soon ...)

- fixed our wins registration failover code to actually do failover!
We were not trying to register with a secondary wins server at all
when the primary was down. We now fallback correctly.

- fixed the multi-homed name registration packets so that they work
even in a non-connected network (ie. when one of our interfaces is not
routable from the wins server. Yes, this really happens in the real
world).
(This used to be commit a049360d5b)
2002-06-26 06:44:37 +00:00
Andrew Tridgell
788c2c655b fixed 3 bugs in jeremys trans2 merge. Hopefully it now works.
(This used to be commit 4a78137111)
2002-06-26 06:39:54 +00:00
Andrew Tridgell
12658bc725 reverted some bogus test code that jeremy accidentally committed
(This used to be commit 6b28ca8bd2)
2002-06-26 06:39:18 +00:00
Andrew Bartlett
de8fe0a2eb Another bug fix from metze.
(This used to be commit 5c754cef19)
2002-06-26 03:54:54 +00:00
Andrew Bartlett
77011e353c Qualify some of the hexidecimal responses with 0x
(This used to be commit e77e21cdbe)
2002-06-26 02:52:51 +00:00
Andrew Bartlett
a96bff6e4e And fix another missing ubiqx...
(Didn't have smbmnt compiled in originally, so it missed my tests)
(This used to be commit 184be390a8)
2002-06-25 13:18:09 +00:00
Andrew Bartlett
de40355080 Fix the smbmnt compile.
(This used to be commit 987633021f)
2002-06-25 11:38:26 +00:00
Andrew Bartlett
8e387b8178 I'm going to try and check this against Win2k shortly, but I'm certain that
'NT_STATUS_OK' is not the right answer here.  Try NO_MORE_ENTRIES for now.

Andrew Bartlett
(This used to be commit c98b9a9659)
2002-06-25 11:21:41 +00:00
Andrew Bartlett
6fc42047ec Try to avoid infinite loops when reteriving users - even from broken servers.
Andrew Bartlett
(This used to be commit ebc8452a30)
2002-06-25 11:20:14 +00:00
Andrew Bartlett
0746576113 Update cli_full_connection() to take a 'flags' paramater, and try to get a
few more places to use it.

Andrew Bartlett
(This used to be commit 23689b0746)
2002-06-25 08:57:24 +00:00
Andrew Bartlett
e3958c2105 And another .cvsignore
(This used to be commit fa0037a294)
2002-06-25 08:34:17 +00:00
Andrew Bartlett
43e6afbdaf Add a .cvsignore file
(This used to be commit 7f81e423d2)
2002-06-25 08:32:43 +00:00
Andrew Bartlett
69081dc14b Kill off unnecessary cast.
(This used to be commit 658e853bc6)
2002-06-25 07:58:29 +00:00
Andrew Bartlett
0327428f27 Break up samba's object dependencies, and its prototype includes.
Now smbclient, net, and swat use their own proto files - now the global
proto.h

The change to libads/kerberos.c was to break up the dependency on secrets.c -
we want to be able to write an ADS client that doesn't need local secrets.

I have other breakups in the works - I will remove the dependency of
rpc_parse on passdb (and therefore secrets.c) shortly.

(NOTE:  This patch does *not* break up includes.h, or other such forbidden
actions).

Andrew Bartlett
(This used to be commit edb41dad2d)
2002-06-25 02:29:09 +00:00
Andrew Bartlett
dd1bd8d0c8 Add a couple more DEBUG()s to winbindd.
Andrew Bartlett
(This used to be commit 3b2464ffda)
2002-06-25 01:40:44 +00:00
Andrew Tridgell
de532c8333 fixed a bug in handling select in the main daemon - this stops the daemon spinning if a signal is received at an inconvenient moment
(This used to be commit d8d7dd523d)
2002-06-25 00:59:14 +00:00
Gerald Carter
0c7925e429 removed compiler warning
(This used to be commit 73ba155a6b)
2002-06-25 00:22:21 +00:00
Gerald Carter
5116568601 merge of SONAMEFLAG stuff from SAMBA_2_2. If I stepped on something
here because HEAD does it differently, someone let me know.  This looks ok
and compiles fine from what I can tell.
(This used to be commit 68841ae762)
2002-06-25 00:10:06 +00:00
Gerald Carter
66de8367c6 merging some autoconf changes from SAMBA_2_2
(This used to be commit 708c6b8297)
2002-06-24 23:18:39 +00:00
Gerald Carter
9d6301dfe0 sync with the sec_desc parsing fix from APP_HEAD. I will probably need
to revisit this some.
(This used to be commit f471c880db)
2002-06-24 23:04:41 +00:00
Gerald Carter
96c00daefa replacing free() with SAFE_FREE() where possible
(This used to be commit 5a4a7e5a88)
2002-06-24 21:14:30 +00:00
Gerald Carter
86e2e9b8a3 backing out changes for now
(This used to be commit e3422addeb)
2002-06-24 20:26:37 +00:00
Gerald Carter
2e148c865a compile fix
(This used to be commit b07d6d4ceb)
2002-06-24 20:09:34 +00:00
Gerald Carter
78e7fc5602 forgot new error code from 2.2
(This used to be commit 8b805be8e8)
2002-06-24 20:04:01 +00:00
Gerald Carter
900fb62238 printing merge from SAMBA_2_2. Ther server code looks to be in sync now.
Mostly formatting and s/free/SAFE_FREE/g changes with the two exceptions
being

  * John driver init changes
  * Tim's printer enumeration bug fix
(This used to be commit f753676286)
2002-06-24 19:51:23 +00:00