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

8829 Commits

Author SHA1 Message Date
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
Jim McDonough
24b67730bf Support utf8 on the wire for ads ldap. DN's are converted, as well as strings,
though it is up to the calling function to decide whether values are
strings or not.  Attributes are not converted at this point, though support
for it would be simple.

I have tested it with users and groups using non-ascii chars, and if the
check for alphanumeric user/domain names is removed form sesssetup.c, even
a user with accented chars can connect, or even login (via winbind).

I have also simplified the interfaces to ads_mod_*, though we will probably
want to expand this by a few functions in the near future.  We just had
too many ways to do the same thing...
(This used to be commit f924cb5358)
2002-06-24 17:50:02 +00:00
Jeremy Allison
8361295ae7 Merged across trans2.c from SAMBA_2_2. UNIX extensions and passthrough
now supported in HEAD.
Jeremy.
(This used to be commit 082c5c084e)
2002-06-24 07:21:13 +00:00
Andrew Tridgell
fe082a8ff5 much better findstatic script
(This used to be commit 2947b7624f)
2002-06-24 06:27:30 +00:00
Andrew Bartlett
4f7a02d5de Try to get security=domain at least slightly working.
The previous code both had basic logic flaws in it, and some subtle
issues regarding the Win2k info3 response.

I've tested this against Samba (it looks like that was missed last time
due to the 'called name' corruption - which broke my testsuite) and
accomidated what I've seen from a info3 printout jmcd gave me.

I'll get this tested fully as soon as I get my VMware going again.

Andrew Bartlett
(This used to be commit 87eba4c811)
2002-06-24 01:51:11 +00:00
Andrew Bartlett
ea7cdc4de0 Add module versioning to the passdb module system
All passdb modules need to include a 'magic' macro that creates simple
'return my version number' function.

(from metze and jelmer)

Also fix up the dir_drive autosubsitute code to correctly use lp_logon_drive().

(from metze)

Andrew Bartlett
(This used to be commit 4a57c445dd)
2002-06-22 12:19:35 +00:00
Andrew Bartlett
6b4dde0c24 Raise some debug levels.
Andrew Bartlett
(This used to be commit 5c0e4ecfaf)
2002-06-22 12:15:42 +00:00
Jeremy Allison
904533dc9e Don't use uint. It doesn't exist on some platforms and we don't define it.
Replaced with "unsigned int".
Jeremy.
(This used to be commit 5841ca54b6)
2002-06-21 17:23:20 +00:00
Tim Potter
8c5ab0498b Fixed incorrect debug.
(This used to be commit a905b5f49d)
2002-06-21 03:19:30 +00:00