summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* This commit finally gives us multiple wins server groups. We nowAndrew Tridgell2002-06-268-266/+557
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* we never pass any userdata when doing name registrations on theAndrew Tridgell2002-06-261-54/+51
| | | | | | 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 ...)
* removed the wins name registration code from libsmbclientAndrew Tridgell2002-06-262-229/+158
| | | | | | | | | | | 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.
* made the wins list handling a littler clearerAndrew Tridgell2002-06-261-9/+5
|
* mumble ... fix typo ... mumbleAndrew Tridgell2002-06-261-1/+1
|
* fixed we_are_multihomed() to cope with dynamic interfaces (ie. don'tAndrew Tridgell2002-06-261-6/+1
| | | | cache the result!)
* - completely rewrote the wins_srv.c code. It is now much simpler, andAndrew Tridgell2002-06-266-331/+126
| | | | | | | | | | | | | | 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).
* fixed 3 bugs in jeremys trans2 merge. Hopefully it now works.Andrew Tridgell2002-06-261-8/+4
|
* reverted some bogus test code that jeremy accidentally committedAndrew Tridgell2002-06-261-8/+0
|
* Another bug fix from metze.Andrew Bartlett2002-06-261-1/+1
|
* Qualify some of the hexidecimal responses with 0xAndrew Bartlett2002-06-261-5/+5
|
* And fix another missing ubiqx...Andrew Bartlett2002-06-251-1/+1
| | | | (Didn't have smbmnt compiled in originally, so it missed my tests)
* Fix the smbmnt compile.Andrew Bartlett2002-06-251-1/+1
|
* I'm going to try and check this against Win2k shortly, but I'm certain thatAndrew Bartlett2002-06-251-1/+1
| | | | | | 'NT_STATUS_OK' is not the right answer here. Try NO_MORE_ENTRIES for now. Andrew Bartlett
* Try to avoid infinite loops when reteriving users - even from broken servers.Andrew Bartlett2002-06-251-1/+4
| | | | Andrew Bartlett
* Update cli_full_connection() to take a 'flags' paramater, and try to get aAndrew Bartlett2002-06-2512-158/+67
| | | | | | few more places to use it. Andrew Bartlett
* And another .cvsignoreAndrew Bartlett2002-06-251-0/+1
|
* Add a .cvsignore fileAndrew Bartlett2002-06-251-0/+1
|
* Kill off unnecessary cast.Andrew Bartlett2002-06-251-2/+3
|
* Break up samba's object dependencies, and its prototype includes.Andrew Bartlett2002-06-2514-183/+268
| | | | | | | | | | | | | | | | 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
* Add a couple more DEBUG()s to winbindd.Andrew Bartlett2002-06-251-4/+9
| | | | Andrew Bartlett
* fixed a bug in handling select in the main daemon - this stops the daemon ↵Andrew Tridgell2002-06-251-12/+6
| | | | spinning if a signal is received at an inconvenient moment
* removed compiler warningGerald Carter2002-06-251-1/+1
|
* merge of SONAMEFLAG stuff from SAMBA_2_2. If I stepped on somethingGerald Carter2002-06-253-820/+921
| | | | | here because HEAD does it differently, someone let me know. This looks ok and compiles fine from what I can tell.
* merging some autoconf changes from SAMBA_2_2Gerald Carter2002-06-243-1091/+1025
|
* sync with the sec_desc parsing fix from APP_HEAD. I will probably needGerald Carter2002-06-241-16/+11
| | | | to revisit this some.
* replacing free() with SAFE_FREE() where possibleGerald Carter2002-06-241-8/+8
|
* backing out changes for nowGerald Carter2002-06-241-11/+11
|
* compile fixGerald Carter2002-06-241-0/+1
|
* forgot new error code from 2.2Gerald Carter2002-06-241-0/+1
|
* printing merge from SAMBA_2_2. Ther server code looks to be in sync now.Gerald Carter2002-06-246-71/+131
| | | | | | | | Mostly formatting and s/free/SAFE_FREE/g changes with the two exceptions being * John driver init changes * Tim's printer enumeration bug fix
* Support utf8 on the wire for ads ldap. DN's are converted, as well as strings,Jim McDonough2002-06-244-349/+315
| | | | | | | | | | | | | | 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...
* Merged across trans2.c from SAMBA_2_2. UNIX extensions and passthroughJeremy Allison2002-06-243-1074/+1532
| | | | | now supported in HEAD. Jeremy.
* much better findstatic scriptAndrew Tridgell2002-06-242-59/+65
|
* Try to get security=domain at least slightly working.Andrew Bartlett2002-06-242-8/+13
| | | | | | | | | | | | | 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
* Add module versioning to the passdb module systemAndrew Bartlett2002-06-225-6/+77
| | | | | | | | | | | | | 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
* Raise some debug levels.Andrew Bartlett2002-06-222-2/+2
| | | | Andrew Bartlett
* Don't use uint. It doesn't exist on some platforms and we don't define it.Jeremy Allison2002-06-218-14/+22
| | | | | Replaced with "unsigned int". Jeremy.
* Fixed incorrect debug.Tim Potter2002-06-211-1/+1
|
* Format tidyup before I start working on scalability fixes (one file perJeremy Allison2002-06-211-74/+134
| | | | | print queue). Jeremy.
* Changed level of "bind succeded on port %d" debug to 10.Tim Potter2002-06-211-1/+1
|
* Fix from Andrew Esh for not checking return code.Jeremy Allison2002-06-201-0/+3
| | | | Jeremy.
* Remove "inline" - shouldn't be in portable code.Jeremy Allison2002-06-201-1/+1
| | | | Jeremy.
* Got rid of unused flags field in lanman api_commands[].Tim Potter2002-06-201-36/+49
| | | | | | | | | | | | | | Added an auth_user field which denotes whether the api call can be made anonymously. In combination with lp_restrict_anonymous() this can decrease the amount of information that can be retrieved anonymously. So far NetShareEnum, NetSessionEnum, NetGroupEnum, NetGroupGetUsers, NetUserEnum, PrintQEnum, NetFileEnum cannot be called anonymously. SamOEMChangePassword and NetServerEnum can be called anonymously. All other functions can be called anonymously until it can be proven that they can't to avoid breaking anything.
* Renamed policy handle field in object containers to avoid cut&paste bugs.Tim Potter2002-06-201-6/+6
|
* Added samr_open_domain() call.Tim Potter2002-06-201-19/+77
|
* Compile fix for new arguments to cli_full_connection()Tim Potter2002-06-201-9/+2
|
* Fixed compiler warning.Tim Potter2002-06-201-1/+1
|
* Fixed typo in debug.Tim Potter2002-06-191-1/+1
|
* when nmbd starts up it is possible that dhcp hasn't started the localAndrew Tridgell2002-06-191-4/+9
| | | | | interfaces yet. Instead of giving up, nmbd will now wait for some interfaces to appear