1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-29 11:21:54 +03:00
Commit Graph

128 Commits

Author SHA1 Message Date
Samba Release Account
14bae3a0bd Some examples for printer accounting that I use with samba. lp-acct is
an example for a local printer off a samba server, hp5-redir is for a
remote printer.  acct-sum, does the stats from acct-all.  There is an
example printcap entry for the redirection of the printer.  Lots more
to come!

<pkelly@ets.net>
0001-01-01 00:00:00 +00:00
Andrew Tridgell
51e5a1a546 removed the remote interfaces stuff. 0001-01-01 00:00:00 +00:00
Andrew Tridgell
9e411f2c90 added lots of comments to the docs that Luke wrote on the internals of
nmbd. I haven't been through all of them yet, but I'm getting there
:-)
0001-01-01 00:00:00 +00:00
Andrew Tridgell
e6282da558 added a bunch of comments to Lukes docs. 0001-01-01 00:00:00 +00:00
Andrew Tridgell
c1415349ac minor debug output fix 0001-01-01 00:00:00 +00:00
Andrew Tridgell
6fa3468c9b fix up problems with "smbclient -L". It now uses a generic
NetServerEnum with no workgroup attached if the workgroup is
"WORKGROUP" (the default in the Makefile) and uses the specific
NetServerEnum (with workgroup attached) otherwise.
0001-01-01 00:00:00 +00:00
Samba Release Account
fd6c3dfffd Sorry for last empty message. Updated file to say that domain logons
and scripts are now possible and to see DOMAIN.txt for more info.
<pkelly@ets.net>
0001-01-01 00:00:00 +00:00
Samba Release Account
87cf3702c6 CVS: 0001-01-01 00:00:00 +00:00
Samba Release Account
eae670a7ca preparing for release of 1.9.16alpha12 0001-01-01 00:00:00 +00:00
Samba Release Account
96c2efded8 NeXT needs #define pid_t int in includes.h
namedbname.c:find_name_search() needed search capability on both local
subnet records and WINS records. it used to return NULL if the name
was not found in the local subnet records even if you asked it to search
the WINS name records as well.
0001-01-01 00:00:00 +00:00
Samba Release Account
b9d7b458b9 preparing for release of 1.9.16alpha11 0001-01-01 00:00:00 +00:00
Andrew Tridgell
153d324c7b minor cleanups ready for another release 0001-01-01 00:00:00 +00:00
Andrew Tridgell
1fd1d7c27c removed some debug stuff from luke 0001-01-01 00:00:00 +00:00
Samba Release Account
45d3b26447 lots of changes to nmbd
lkcl
0001-01-01 00:00:00 +00:00
Samba Release Account
c290c229f9 Modified demo smb.conf to not have /tmp writeable by everyone by default.
According to server-linux some people seem to be uncommenting the example
[tmp] without thinking what it does  :-)

Dan
0001-01-01 00:00:00 +00:00
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
0001-01-01 00:00:00 +00:00
Samba Release Account
4ccc84989e missed nmbd.c in previous update.
did a make proto

lkcl
0001-01-01 00:00:00 +00:00
Samba Release Account
429f1f975e sorted out various timer delay bugs: nameannounce.c nameserv.c
namedbname.c:search_for_name() wasn't looking for 0x1b as well as
0x0 and 0x20 name types.

reduced number of retransmissions of packets from 4 to 3 times.

added code that ensures remote lmhosts entries don't get deleted when
a master browser cannot be found on a remote subnet. stopped forcing
an election on remote subnets if a master browser cannot be found.

stopped browse list and wins list from being written out too frequently.

only add samba's names to local interfaces.

add 0x1c name if we are a domain logon machine (needs more exploration).

why bother reloading services when receiving a SIGTERM?

sort out add_my_name_entry() and remove_name_entry() to deal with
broadcast, samba as a WINS and samba using a WINS. properly.

added extra debug information to help with expected response queue code.
updated debug comments in become_master().

altered dump_names() DEBUG format. it looks prettier.
altered wins.dat format to match DEBUG format.

lkcl
0001-01-01 00:00:00 +00:00
Samba Release Account
d78b319062 added the recently shuffled and updated source files missed in the
previous commit (see previous log message for details)

fixed bug in nameservreply.c: wrong macro in use (RSSVAL not IVAL!).

did another make proto

lkcl
0001-01-01 00:00:00 +00:00
Samba Release Account
b50ff657dd tidied up: code shuffling and documentation.
created namedb*.c nameservresp.c nameservreply.c and namepacket.c
added modules to Makefile, downloading dan's current version first :-)
shuffled docs to match source
created more docs

fixed bug in announce_backup() discovered when going nameannounce.doc:
backup list requests to the master browser should be used when samba is
not a master browser; backup list requests to the primary domain
controller should be used when samba is not a primary domain controller.

fixed bug in sync_server: it would never send MasterAnnounce packets.

removed the code that ignored special browser names: these should only
be ignored (except 0x1b names) when broadcasted name queries are sent,
not when directed registration or directed queries are sent samba as a
WINS server. (note: exactly what's going on is still uncertain).

renamed NAME_QUERY_MST_SRV_CHK  to NAME_QUERY_PDC_SRV_CHK  (more accurate).
renamed NAME_STATUS_MST_SRV_CHK to NAME_STATUS_PDC_SRV_CHK (more accurate).

added secured WINS name registration: a new 'state' NAME_REGISTER_CHALLENGE;
functions send_name_response(), response_name_query_register(); added
sending of WAIT ACKNOWLEDGEMENT packet; added a reply_to_ip field to
the response record structure so that after the name query challenge,
you know who to inform of the outcome of that challenge.

note: these are all currently untested modifications (yikes!)

lkcl
0001-01-01 00:00:00 +00:00
Samba Release Account
b6343dd09c Added uninstallation from Makefile, either in parts or total uninstall
Dan
0001-01-01 00:00:00 +00:00
Samba Release Account
2eccc5eea2 Changed install scripts so they don't have hardcoded values
Dan
0001-01-01 00:00:00 +00:00
Samba Release Account
166d70eba3 namebrowse.c was using variable work uninitialised.
remkproto'd proto.h

lkcl
0001-01-01 00:00:00 +00:00
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
0001-01-01 00:00:00 +00:00
Samba Release Account
a7be82ee6e Started uninstall in Makefile
Updated some email addresses
0001-01-01 00:00:00 +00:00
Andrew Tridgell
05107be566 generated new proto.h 0001-01-01 00:00:00 +00:00
Andrew Tridgell
38135c854e fixed conflict between two variables called d 0001-01-01 00:00:00 +00:00
Andrew Tridgell
ba478e9404 fixed conflict with global variable updatecount 0001-01-01 00:00:00 +00:00
Andrew Tridgell
98568862ca fix Makefile - remove Lukes private stuff :-)
rerun proto generator
0001-01-01 00:00:00 +00:00
Andrew Tridgell
609c3a5e1e - moved the protocol defs in the client to keep sill C compilers happy
- added change for cnum range in reply_tdis()
0001-01-01 00:00:00 +00:00
Samba Release Account
a66417ebe8 as a result of the writing of namework.doc, namework.c has been tidied up,
some bugs fixed / documented and some discrepancies noted down (in
namework.c as well as namework.doc)

namebrowse.c and namelogon.c contain functions that were inappropriately
placed in namework.c. namebrowse.c contains browse sync queue management
functions that were inappropriately placed in namedb.c

the 'cmd_type' member of response_record has been renamed to 'state'
because that more accurately reflects it purpose (not entirely. sigh).

fixed a bug in nameserv.c that meant the previous version wouldn't
compile.

there's probably a bit more...

lkcl
0001-01-01 00:00:00 +00:00
Samba Release Account
96d242826d updated low-level design documentation on nmbd. first draft of namework.doc
and updated the other two.

lkcl
0001-01-01 00:00:00 +00:00
Samba Release Account
546c490807 patch to fix NetServerEnum with multiple workgroup lists kindly supplied.
it works for him. needs testing.
0001-01-01 00:00:00 +00:00
Samba Release Account
103012e5f2 updated the NetBIOS code due to some bugs found by writing the first draft
of the low level design docs.
0001-01-01 00:00:00 +00:00
Samba Release Account
875497d961 first draft of low-level design documents describing the operation of
nameserv.c and nameresp.c and their interaction with the rest of nmbd.
0001-01-01 00:00:00 +00:00
Samba Release Account
c0b0139d1a added local and remote interfaces (didn't get done in first attempt) 0001-01-01 00:00:00 +00:00
Samba Release Account
7e8c60cfe5 luke's first attempt at using cvs
accidentally updated the Makefile

updated the name database structure (again!). this time, there is one
name database per local interface. there is also a pseudo-interface on
ip 255.255.255.255. its purpose is to store WINS name entries. all the
local interface name databases store SELF names only. the WINS name
database stores non-special browser names.

added wins.dat file: records WINS entries in ascii format. this is reloaded
when nmbd restarts.

added repeating code for response packets. timer is in seconds only at the
moment.

updated the response queue code to deal with samba registering with a
WINS server a bit better (added more cases when a response isn't received).
tidied up the response packet processing code and expire_response_queue()
code. added cross references between response received and await-response
expired code.

added over-zealous code that checks all machines that register with samba
as a WINS server (every 10 minutes i think): to see whether they are still
alive or not (see rfc1001.txt)

bug reported by terry@ren.pc.athabascau.ca: DNSFAILed names _stay_ as
DNSFAIL, even though the machine may come back up and REGISTER.

removed update_from_reg() function. it's not necessary, and it does too much.

added code that announces on each local interface samba's ttl as zero and
servertype as zero when nmbd is kill -TERMed

first attempt at putting the first functionality of samba browsing back in
(remote subnets should have samba appear in a workgroup specified through
the lmhosts file)

lots of other miscellaneous tidying up / chopping about.
0001-01-01 00:00:00 +00:00
Samba Release Account
6d81d56f92 Basic doc changes to keep up to date.
Dan
0001-01-01 00:00:00 +00:00
Samba Release Account
7960522e18 - deleted reduntant blank line at end of file (JHT) 0001-01-01 00:00:00 +00:00
Andrew Tridgell
9408f91e1b - change date as a demo for john
- modified plp printing parser to work on my system
0001-01-01 00:00:00 +00:00
Samba Release Account
5a72a6c8df Added source filename to give crude index
Dan 17 June 1996
0001-01-01 00:00:00 +00:00
Andrew Tridgell
1a30ade78e demo of cvs - ignore 0001-01-01 00:00:00 +00:00
Andrew Tridgell
e264a670e9 minor patch to allow host announcements to remote subnets 0001-01-01 00:00:00 +00:00
Samba Release Account
a82ffca73e preparing for release of 1.9.16alpha10 0001-01-01 00:00:00 +00:00
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
0001-01-01 00:00:00 +00:00
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
0001-01-01 00:00:00 +00:00
Andrew Tridgell
0c96ac512f documented the "max disk size" option.
I'm sure I've done this before, we must have lost some patches a while
ago?
0001-01-01 00:00:00 +00:00
Andrew Tridgell
3ee9d45426 moved some more locking routines to locking.c, and moved replacement
routines for broken OSes from util.c to replace.c.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
0a044c25ab updates from Luke to rename "domains" more accurately to "subnets" 0001-01-01 00:00:00 +00:00
Samba Release Account
32053cfa78 preparing for release of 1.9.16alpha9 0001-01-01 00:00:00 +00:00