1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

1333 Commits

Author SHA1 Message Date
Andrew Tridgell
a7c7d7afe2 fix a bug that we've had for a long time where we don't handle EOF
properly from clients, and end up looping like mad.

At least I _hope_ this is fixed.
-
Samba Release Account
45d3b26447 lots of changes to nmbd
lkcl
-
Samba Release Account
cb43ce7bc0 updated docs to match code mods from last two or three updates. done
some more commenting of code to match docs.

sorted some bugs.

ipc BOOL domains was uninitialised.

lkcl
-
Samba Release Account
7719fb0652 modified become_master() to a state-based system. becoming a master
is now performed in stages: wait for each NetBIOS name to be
successfully registered before proceeding to the next stage.

tied implicit name registration and release (broadcast method) to the
same piece of code as explicit method (via WINS server).

created special_browser_name() function that checks __MSBROWSE__
name: this name is ignored by WINS servers apparently.

fixed likely incompatibility between refresh_my_names() and add_my_names().
(netbios entries were unlikely to be refreshed).

NOTE: none of these changes have been tested. at all.

lkcl
-
Andrew Tridgell
609c3a5e1e - moved the protocol defs in the client to keep sill C compilers happy
- added change for cnum range in reply_tdis()
-
Samba Release Account
546c490807 patch to fix NetServerEnum with multiple workgroup lists kindly supplied.
it works for him. needs testing.
-
Andrew Tridgell
8e9dce34d5 a cleanup of the receive_smb() usage, adding timeouts in some places
also added paranoid code in the main process() loop of smbd to detect
when smbd is looping uselessly. This should stop the "smbd is chewing
lots of cpu" reports
-
Andrew Tridgell
b551dc98f7 got rid of a lot of redundent header files as we now globally generate
prototypes automatically using "make proto". This is much less prone
to error than the old method of manually adding prototypes
-
Andrew Tridgell
e775576f02 - added comments to byteorder.h explaining how it works.
- fixed problem with installscripts if srcdir is not set
- fixed ptr init bug in interface.c
- changed default lookup type in nmblookup to match nbtstat under NT
- new quotas fixes for sunos and solaris
-
Andrew Tridgell
88b191b488 - added predict.c, moving the routines from util.c
- added iface_count() and iface_n_ip() routines so its easy to loop
over the local interface list

- made readsize a normal loadparm global

- check for null w in add_domain_entry()

- set the deathtime to time()-1 for doamin entries with servertype==0
This allows servers that are shutting down to be removed

- add the 0x1c name at startup if we are a WINS server. Previously we
added it only if we were a master

- loop over interfaces in add_my_domains(), so people don't have to
have a lmhosts file to get lp_workgroup() on all interfaces

- set add to True for find_workgroupstruct() in nmbsync, and check for
null return

- remove some ugly "errno = EBADF" bits. they just confused things.
-
Andrew Tridgell
7ed71b73ae - added interface.c and removed all the references to myip, bcast_ip
and Netmask, instead replacing them with calls to routines in
interface.c

- got rid of old MAXINT define

- added code to ensure we only return one entry for each name in the ipc
enum routines

- added new_only option to add_netbios_entry() to prevent overwriting
of important names

- minor time handling fixup
-
Andrew Tridgell
ed3ef2e47d - remove some incorrect prototypes from server.c
- formatting cleanup in check_master_browser()
- removed unused code from nameserv.c
-
Andrew Tridgell
cfbad9b082 - changed some debug levels in clientutil.c
- added dir_check_ftype() to clean up the file type checking a bit

- added check for libc version >= 5 for setfsuid() for Linux

- moved the AM_MASTER() and related macros to nameserv.h

- added proper defines for the various netbios announce types

- don't call the announce_backup() code, as I'm pretty sure its wrong
it sent ANN_GetBackupListReq packets as broadcasts, they are supposed
to be used only by clients to the master browser to find a list of
available backup servers to remote a netserverenum to, I don't think
nmbd should ever send one.

- fixed a bug in the browse list writing

- minor debug cleanups

- put in the code to discard our own broadcasts (it won't work for
multi-homed hosts though)

- changed ELECTION_VERSION to 1 so we can be beaten by a NT 3.51 server by
lowering the os level.

- only do sync_browse_lists() if we are the master browser, otherwise
we'll cause network overload

- don't call tell_become_backup() as it appears to be badly broken, it
should only be used when the machine being told has its MAINTAIN_LIST
to to auto. Not calling it does no great harm anyway

- fix a nasty bug where becomebackup was confused with reset browser!

- make setbuffer() not get caught by the auto protototypes
-
Andrew Tridgell
bc4a299437 add dummy quotas fn
fix typo in reply to backup lists
-
Andrew Tridgell
0d8dcfa13c a huge pile of changes :-)
The biggest thing is the integration of Lukes new nmbd. Its still
largely untested, so we will really need some feedback

I've also added auto prototype generation and cleaned up a lot of
minor things as a result
-
Andrew Tridgell
72543810ce - moved the uid handling to uid.c
- added setfsuid() support (for Linux)
- started adding some of Lukes changes, just the loadparm and ipc ones
so far
-
Andrew Tridgell
635b56f19c Lots of changes!
- add faq info on NT printer handling
- add "delete readonly" option to help rcs users
- add stuff to man pages on new printer options
- add "proxy name resolution" option
- add "command string" -c option to smbclient (thanks Ken)
- split time functions into time.c
- rearrange the quotas stuff a bit and fix some bugs
- complete rehash of the time handling code thanks to Paul Eggert
- fix nmblookup output a bit
- add plp print queue parsing from Bertrand Wallrich
-
Andrew Tridgell
51e22c9310 comment out the code that tries to handle the NT bug where the 2nd
passlen is wrong. The fix is worse than the problem :-)
-
Andrew Tridgell
48c6b86d4c - added an entry on WinDD to samba.faq
- added a sample smb.conf from Thoralf.Freitag@remserv.rz.fhtw-berlin.de
- print the errno when you get a can't change directory error
- added installscripts.sh from James_K._Foote.PARC@xerox.com
-
Andrew Tridgell
7814eca4b2 handle errors from receive_smb better, and print error string -
Andrew Tridgell
654c242045 fixed a typo -
Andrew Tridgell
39fbeb04ae cleanups to make thinsg compile cleanly -
Andrew Tridgell
d2c5ab135c made dptr_num signed to handle -1 from OS/2 -
Andrew Tridgell
f81295c7b4 - fix a bug hanlding very log filenames
- move quotas support to separate file
- send keepalives to password server
-
Andrew Tridgell
1ed5645a5d move quotas support out of server.c -
Andrew Tridgell
d2676cdd0b turn on KEEP_PASSWORD_SERVER_OPEN by default -
Andrew Tridgell
4b2579daae handle being passed a dptr of -1 to mean "close all open dir handles".
Looks like OS/2 does this. It caused a core dump.
-
Andrew Tridgell
83866f3c84 - close the listening socket in the child process when running as a daemon
- exit with a non-zero exit code if open_sockets() fails
-
Andrew Tridgell
d20627b378 - use issafe()
- map the archive bit in a more robust manner. We now set it when we
first write to the file after opening it.
-
Andrew Tridgell
4419093d33 fix a netgroup bug (innetgr() was being called with the args in the
wrong order!)
-
Andrew Tridgell
45e2ffdc9c move the dot_pos calculation down a bit -
Andrew Tridgell
79c65e66f8 use the new issafe() macro instead of isalnum() and strchr() -
Samba Release Account
291551d807 Initial version imported to CVS -