1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-15 23:24:37 +03:00

15124 Commits

Author SHA1 Message Date
Samba Release Account
6f0a4d7178 increased debug levels for name dump to same as that for workgroup dump
in log files. really verbose listings ought only to be shown at debug
log level 5 and above.

lkcl
-
Samba Release Account
992ca1f32b queries for 0x1b names were resulting in dns lookups. not good.
lkcl
-
Samba Release Account
f27a9ccc97 nmblookup was looking for 0x1b (domain master browser) not 0x1d (local
master browser) names with the -M switch.

lkcl
-
Samba Release Account
2e727071c2 allowed packets coming in from 'unexpected' subnets.
lkcl
-
Samba Release Account
adf5a42c21 removed getdomainname() stuff and appending a '.' to the name in
dns_name_search().

lkcl
-
Samba Release Account
b289db62f1 severe debugging session for nmbd. in fact, i'm surprised that browsing
in 1.9.16 works at all!

question and resource record types for queries and response netbios
packets sorted out properly (see rfc1002.txt 4.2.1.3).

receipt of browser announcement packets were playing up

lkcl
-
Samba Release Account
89675f8ae8 Changed become_user to take a vuid as second arg.
Consistent with other changes to make smb_uid an index+offset
into the validated_users table.
jra@cygnus.com
-
Samba Release Account
555f6cda31 Added definitions for vuid offset and invalid user smb_uid.
Added vuid to connections struct.
jra@cygnus.com
-
Samba Release Account
5056672a3a Modified all references to smb_uid to be vuid's.
jra@cygnus.com
-
Samba Release Account
a2b07e5562 Modified all references to uid to vuid.
jra@cygnus.com
-
Samba Release Account
b5e2d87179 Changed prototypes for accesses into validated_users structure.
Ensured all smb_uid accesses are uint16's.
jra@cygnus.com
-
Samba Release Account
ac265eff85 Core of the changes for returning smb_uid's. smb_uid's are now
returned as an index plus offset into the valudated_users table.
The offset (100) is added so that an smb_uid of zero becomes
an invalid value. All access into the validated_users table are
done by removing the offset and indexing into the table. Out of
ranges return NULL. Causes accesses into the validated_users table
to be more consistant and controlled.

This change made due to the fact that the uid field is only 16
bits in the smb header and we need for this not to be a unix
user id (which can ge 32 bits).

jra@cygnus.com
-
Samba Release Account
ec2a3a1cf2 Changed definitions of prototypes to take uint16 vuid's not
int uid's. Part of the change for Samba to return an index+offset
into the registered users table rather than a raw unix uid.
Added casts to required prototypes for function pointers in
tables.
jra@cygnus.com
-
Samba Release Account
3f63dd6771 debugging the dns lookup changes
lkcl
-
Samba Release Account
7c2f1da377 debugged dns lookup / netbios name query code from yesterday.
lkcl
-
Samba Release Account
2fedc53b4e Added faq directory under docs. Translated the whole of the current
FAQ into linuxdoc-sgml format. From now on we can change the file
sambafaq.sgml and then run sgml2txt and sgml2html to generate the
other files. (Home page for linuxdoc-sgml is
http://sunsite.unc.edu/mdw/Linuxdoc-SGML.html. Does cross references
and section management.)
-
Samba Release Account
98cb371244 dealing with name queries and dns lookups etc.
lkcl
-
Samba Release Account
526e597d3c preparing for release of 1.9.16p9 -
Andrew Tridgell
3af04f1580 - added support for TMPDIR env variable
- fixed fault.c for linux 2.1
- put back in the FIND_SELF failing code
- cleaned up casts in encryption
-
Andrew Tridgell
b8c397df87 - fixed listproc mail address in faq
- added printer driver section to faq
-
Samba Release Account
c65a2cdd83 Jeremy <jra@cygnus.com>
Removed AS_USER requirement for SMBulogoff. A valid TID (cnum) is not
given for this call, which become_user needs if it is not to return
an error. This fixes a specific case with NT4.0 which stops users
attaching to a Samba server using a different account to the one they
are logged in under.
-
Samba Release Account
09588edfec preparing for release of 1.9.16p8 -
Samba Release Account
cf2ed4183b wrong answer response resource record type expected, so the response packet
was being abandoned. oops.

lkcl
-
Samba Release Account
92a3d0f3e1 code was added to stop samba from replying to queries for its own names (?! :-)
lkcl
-
Samba Release Account
c9066072a6 Did some editing, got frustrated, started converting to linuxdoc-sgml -
Samba Release Account
e9eb9d70e3 the response packets are being received (fix to process_nmb() worked)
however dead_netbios_entry() is still thinking that no response has
been received when the response_record times out for the registration
with the WINS server. only print a debug message when no registration
response is _really_ received from the WINS server.

lkcl
-
Samba Release Account
998f8bae72 preparing for release of 1.9.16p7 -
Samba Release Account
b790455aca netbios registration and release response packets were being junked. a
BAD idea.

lkcl
-
Andrew Tridgell
f2c5f1eab1 - set default printer driver string to "NULL"
- fixed debug levels for name status parsing
-
Samba Release Account
fca0c5dc8e preparing for release of 1.9.16p6 -
Andrew Tridgell
b006cd6f91 - correctly handle non-encrypted share mode session-setup. We were
losing the username due to the recent "handle broken password lengths"
patch.
-
Andrew Tridgell
fee34277ac - updated the ENCRYPTION.txt stuff to point to the newer des
libraries.

- updated the MIRRORS list
-
Samba Release Account
952918bdd5 preparing for release of 1.9.16p5 -
Andrew Tridgell
7c135d4994 - revert to old idle dir code (marty pointed out a problem with the
new code)

- handle server level security in the new "detect NT password length
stuffups" code
-
Samba Release Account
13c3a05093 preparing for release of 1.9.16p4 -
Andrew Tridgell
bfa816cc8f - continue when failing to load config file in nmblookup and smbclient
- fix important bug in nmbd where it set the return code for a
negative name response to 0 (which means success!)
-
Andrew Tridgell
3cd7303dbc - changed the default nmbd loop timout to 10 seconds (2 seconds was much
too short)

- got rid of many unnecessary calls to time(NULL) in nmbd. They were
causing it to chew too much CPU time when idle. Now we pass a time
value in from the top level.
-
Andrew Tridgell
733c718657 - added an entry to the MIRRORS list
- minor fixes in man page
-
Samba Release Account
47212791c2 preparing for release of 1.9.16p3 -
Andrew Tridgell
b215a90206 add DEBUGLEVEL to replace.c -
Andrew Tridgell
2aa612d676 - use waitpid for ultrix
- don't use wait4
-
Andrew Tridgell
92566ecc31 - replace the base36 function with one that works on more systems
(compiler bugs were the problem)

- minor password cleanups (catch WfWG bug where it sets the password
to a space instead of a NULL)

- fix printing problem for kanji users

- minor cleanups
-
Andrew Tridgell
975ddfd309 - added a mirror entry and added a new Support.txt entry -
Andrew Tridgell
ea472b7217 I have fixed quite a few important bugs in this commit.
Luke, can you take special note of the bug fixes to nmbd so you can
propogate them to your new code.

- rewrote the code that used to use fromhost(). We now call
gethostbyaddr() only if necessary and a maximum of once per
connection. Calling gethostbyaddr() causes problems on some systems so
avoiding it if possible is a good thing :-)

- added the "fake oplocks" option. See the docs in smb.conf(5) and
Speed.txt

- fixed a serious bug in nmbd where it would try a DNS lookup on
FIND_SELF queries. This caused a lot of unnecessary (and incorrect)
DNS lookups to happen. FIND_SELF queries should only go to the
internal name tables.

- don't set FIND_SELF for name queries if we are a wins proxy, as we
are supposed to be answering queries for other hosts.

- fixed a bug in nmbd which had "if (search | FIND_LOCAL)" instead of
"if (search & FIND_LOCAL)". Luke, this was in nameservreply.c

- the above 3 bugs together meant that DNS queries were being cached,
but the cache wasn't being used, so every query was going to DNS, no
wonder nmbd has been chewing so much CPU time! Another side effect was
that queries on names in lmhosts weren't being answered for bcast
queries with "wins proxy" set.

- ignore the maxxmit for seconday session setups (see CIFS spec)

- close user opened files in a uLogoffX for user level security (see
CIFS spec)

- added uid into the files struct to support the above change
-
Andrew Tridgell
1303132113 - added docs on the new "fake oplocks" option. -
Andrew Tridgell
61e3116e57 - use workgroup from smb.conf in smbclient
- change debug level on clitar stuff

- define MAP_FILE if not defined

- ensure we never set authoritative on queries in nmbd

- fake a positive response to SMBioctl, apparently this is needed for
some WfWg printer drivers

- deny file access for non-fcbopen queries when (access_allowed == AREAD && flags == O_RDWR)

- add sys_waitpid()
-
Andrew Tridgell
dff891e69d - added a new support entry
- added THANKS entry for NEC
-
Andrew Tridgell
5aa735c940 - changed the umask handling. We now set the umask to 0 and explicitly
set the mode on all created files. I think this is a better policy.

- change the debug levels on some items

- fix a charset handling bug which affected foreign and extended
charset users

- no longer switch back to the original directory when idle, instead
switch to / as the original directory may not be readable by ordinary
users.

- fix some bugs where the create mode of files was not being
explicitly set (it was relying on the umask and using fopen). Not a
big bug as it only affected obscure commands like the messaging ops.

- got rid of the lock code in the lpq cache as its no longer needed

- rewrote smbrun to be faster and to remove the security hole. We now
don't actually need a external smbrun binary, its all done by smbd.

- add a more explicit warning about uids and gids of -1 or 65535
-
Samba Release Account
53a4b8769e Added a version of tridge's comments on numbering to the faq.
Dan
-
Andrew Tridgell
671b3a3a77 - fix the EALREADY bug so connections to slow hosts with smbclient get
through

- add workarounds to handle the win95 and WinNT bugs in handling
password lengths in sessionsetup
-