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

10482 Commits

Author SHA1 Message Date
Andrew Bartlett
05f6c8dea1 Don't force the DOS password into a 14 char space, as this would imply null
termination - the password will not be null terminated before hashing if
len >= 14.

related to debian bug #157432

Andrew Bartlett
(This used to be commit c6535836f2)
2003-01-13 08:53:54 +00:00
Andrew Bartlett
9742f673fd Ensure we do not pass uninitialised data to the kernel. (Picked up by
valgrind).

Andrew Bartlett
(This used to be commit f8d9880c5f)
2003-01-13 08:09:32 +00:00
Martin Pool
13e1d993ff Fix typo in comment.
(This used to be commit 26660f939f)
2003-01-13 04:57:21 +00:00
Tim Potter
cf17d012e6 Merge of remove "winbindd holding pattern" from appliance. It's a bit
simpler as the rescanning of trusted domains helps us out a bit.
(This used to be commit 089729c02c)
2003-01-13 03:45:31 +00:00
Andrew Bartlett
fd88966c47 Keep all the const warnings in one place, by adding a utility function to
make the TDB_DATA.

Andrew Bartlett
(This used to be commit f087fe546f)
2003-01-12 12:23:37 +00:00
Andrew Bartlett
e009abb20a Oops, this is the change to use an fstring for the incoming service buffer -
the commit to reply.c just matches a pstrcpy for the pstring.  (harmless, fixes
it for the automated test).

Andrew Bartlett
(This used to be commit ef9c7586ac)
2003-01-12 11:31:03 +00:00
Andrew Bartlett
ebb60c0302 Make the 'service' in make_connection() use an fstrcpy(), and an fstring,
becouse that is what it's input (reply_tcon_and_x) uses, and becouse we really
don't want supprises for service names.

Also remove a legacy #define, in favor of the lp_ equiv.

Andrew Bartlett
(This used to be commit 7854a439ac)
2003-01-12 11:29:02 +00:00
Andrew Bartlett
6152b84558 While the usage is most bisarre, this fixes up another fstring/pstring mixup.
(In this case, an fstrcpy() into a pstring, ie harmless).

Andrew Bartlett
(This used to be commit 7b92d26d47)
2003-01-11 12:33:00 +00:00
Andrew Bartlett
c9991fa1bf Use size_t for the counter vars, to match the type they are assigned from
(signed/unsigned mixup).

Andrew Bartlett
(This used to be commit f42cf0783f)
2003-01-11 12:24:19 +00:00
Andrew Bartlett
ad20186707 A couple more fstring/pstring issues - and move from sizeof(fstring) to
sizeof(var) in slprintf statements, so as to ensure we don't get mixups there.

Also remove fstrcpy() into a variable that is about to be printed into anyway.

Andrew Bartlett
(This used to be commit 9b76123732)
2003-01-11 12:18:57 +00:00
Andrew Bartlett
1a6e78fda3 Remove an unused paramter for our old LM-only password change code, and fix a
(harmless) fstring/pstring mixup.

Andrew Bartlett
(This used to be commit 5ff5f540cc)
2003-01-11 12:13:03 +00:00
Andrew Bartlett
73b0a2bdf8 Fix a number of client-side fstring/pstring mixups.
Andrew Bartlett
(This used to be commit fe1cc779d5)
2003-01-11 12:04:14 +00:00
Andrew Bartlett
22d6569ed5 Patch from Nik Conwell <nik@bu.edu>. Don't reference free()ed data when trying
to figure out if we have got our ticket yet.

Andrew Bartlett
(This used to be commit a66ced2cf6)
2003-01-11 03:29:31 +00:00
Andrew Bartlett
f9d66d10c2 Return the 'freindly' NT error message if at all possible.
Andrew Bartlett
(This used to be commit 90d0517653)
2003-01-11 03:25:31 +00:00
Andrew Bartlett
674c750df7 No point having this for both parts of the 'if' statement.
Andrew Bartlett
(This used to be commit 3b2e5f68cd)
2003-01-11 03:23:16 +00:00
Gerald Carter
27b05b4df9 typo from merge
(This used to be commit 1f33b4acb3)
2003-01-11 02:36:13 +00:00
Gerald Carter
0cd43ecb80 fix tdb_append() prototype
(This used to be commit df6e455992)
2003-01-11 02:30:34 +00:00
Gerald Carter
47873e781d [merge] make sure to updatre print queue cache during timeout_processing() to send notify events; CR 1491
(This used to be commit 142c5029c7)
2003-01-11 02:29:23 +00:00
Jeremy Allison
82b41dca9d Added new message_send_pid() code that uses tdb append to reduce locking
contention on the messaging tdb.
Jeremy.
(This used to be commit 5b8cf0810a)
2003-01-11 00:17:37 +00:00
Jeremy Allison
8e7dfa50b0 Added tdb_append() call. Efficiently adds to an entry. Used by new messaging
code. Also added torture tests for it.
Jeremy.
(This used to be commit b515525a06)
2003-01-11 00:07:40 +00:00
Jeremy Allison
fe6bb1e9ed First part of efficiency fixes for message sending to pid's (cutting down
the amount of time we hold tdb locks). Gulp down all messages at once rather
than reading/re-writing one at a time. NOTE: All dispatch routines *must*
be able to cope with incoming message on *odd* byte boundaries (all current
handlers do).
Jeremy.
(This used to be commit 04243e39cf)
2003-01-10 20:17:06 +00:00
Jeremy Allison
d2377ad556 Fix lpq_cache time check (missed from yesterday).
Jeremy.
(This used to be commit 21c8acd25a)
2003-01-10 19:59:18 +00:00
Gerald Carter
6df2dc56ff a 0 length printer data value is not a memory allocation error; fix CR601
(This used to be commit 3442c270f1)
2003-01-09 19:51:28 +00:00
Martin Pool
3419ef3fb6 tdb_chainlock_with_timeout: Add TODO: If we time out waiting for a
lock, it might be nice to use F_GETLK to get the pid of the process
currently holding the lock and print that as part of the debugging
message.

I'd like to have this in appliance_head, but the code is too different
so I won't worry for now.
(This used to be commit 575908cb06)
2003-01-09 07:23:23 +00:00
Tim Potter
c4b4386996 Remove read_with_timeout() and replaced its only caller (the passwd chat
stuff) with a call to read_socket_with_timeout() which does the same thing.

Passwd chat still works but I couldn't figure out the right arguments to
passwd chat to get it to work right but data was definitely getting
through.
(This used to be commit 88eb9e9486)
2003-01-09 06:58:07 +00:00
Tim Potter
baa1276eb0 Remove dead function.
(This used to be commit 6ed4d80baa)
2003-01-09 05:50:15 +00:00
Tim Potter
642fad95ef Moved smbd process counting functions from smbd/server.c to smbd/process.c
so that bin/vfstest can link.
(This used to be commit 812ce0368c)
2003-01-09 05:49:51 +00:00
Martin Pool
413e58e9a7 Correct misleading comment: winbindd_lookupname gets the SID for a
name, not vice versa.
(This used to be commit be835d01e1)
2003-01-09 01:16:12 +00:00
Jeremy Allison
619fcbdb68 Ensure we return disk full by default on short writes.
Jeremy.
(This used to be commit 6a2b7fd82c)
2003-01-08 23:49:37 +00:00
Jeremy Allison
65195b4d54 Ensure we don't get an invalid number for total smbd's if the tdb update
fails.
Jeremy.
(This used to be commit 99e69fd74d)
2003-01-08 21:42:43 +00:00
Herb Lewis
83ce5fd3a3 reran autoconf
(This used to be commit 947042007d)
2003-01-08 18:33:16 +00:00
Richard Sharpe
dd22328000 Some fixes to editreg. Clientgen should not be touched, and an update to configure that Herb needs.
(This used to be commit 490ff93bbf)
2003-01-08 17:59:52 +00:00
Jeremy Allison
8df73edd8e Fix erroneous free of SAM_ACCOUNT (make clearer when allocated
memory is being returned).
Jeremy
(This used to be commit b0d547b739)
2003-01-08 07:02:18 +00:00
Tim Potter
6e87ae0db3 Removed pointless null statement in signal handler.
(This used to be commit db24489eb4)
2003-01-08 04:14:12 +00:00
Tim Potter
4315edcdca Display an error message when the server cannot be resolved when running at
debug level 0.
(This used to be commit 451286febd)
2003-01-08 02:54:42 +00:00
Jeremy Allison
f420f75508 Fix open problem with changing attributes on an existing file - based
on work by  <steve@griffin.sio2.nl>.
Jeremy.
(This used to be commit 465d86d95f)
2003-01-08 02:09:14 +00:00
Volker Lendecke
173856a77d Fix memory leak. Thanks, Herb!
Volker
(This used to be commit 8915d59a59)
2003-01-07 20:54:31 +00:00
Herb Lewis
3cbb089782 this makes it compile, but I'm not sure if it is correct. Are we really
testing a pointer value to be equal to 0x19 ???
(This used to be commit 15b2b91f4b)
2003-01-07 17:55:14 +00:00
Herb Lewis
3981c303a3 cannot make assignments to const values.
(This used to be commit e3b1e64d9f)
2003-01-07 17:43:37 +00:00
Herb Lewis
26c01d3f7b add and escape before $( in regex string so it is not interpreted as the
perl variable for "real gid of this process"
(This used to be commit cfe2d01b7d)
2003-01-07 17:33:30 +00:00
Volker Lendecke
7b4bf92955 Create a machine account correctly if the unix account exists.
With this, my test for W2kSP3 join after pdbedit -a -m works fine.

Volker
(This used to be commit c9d0c5254c)
2003-01-07 10:38:33 +00:00
Christopher R. Hertel
6693cade73 Added code to the handling of the -M option to ensure that we default to
port 139 for that option.  The NetBIOS Messenger Service doesn't run on
a non-NBT port.
(This used to be commit 02986f3e3a)
2003-01-07 04:33:43 +00:00
Tim Potter
6d5724f93b Rename a local variable to avoid a warning.
(This used to be commit 232116d2db)
2003-01-07 03:39:22 +00:00
Tim Potter
186bb579f5 'index' is the name of a libc function. Rename to 'ndx' to avoid compiler
warnings.
(This used to be commit 431ac28b5b)
2003-01-07 03:36:39 +00:00
Tim Potter
33e019a0c5 Remove unused variable.
(This used to be commit 4bc82624f6)
2003-01-07 03:31:52 +00:00
Jeremy Allison
be0ff9d809 Fix memory leaks in pdb_ code.
Jeremy.
(This used to be commit ddf741c717)
2003-01-06 21:48:43 +00:00
Gerald Carter
641b30dd35 add $(LDFLAGS) to libsmbclient
(This used to be commit 0f8ba688d4)
2003-01-06 18:00:18 +00:00
Jeremy Allison
cd02d53f0d Fix from "Ken Cross" <kcross@nssolutions.com> for enumerating
groups.
Jeremy.
(This used to be commit cde517cedf)
2003-01-06 07:29:34 +00:00
Andrew Bartlett
cfe7718e9a Fix a segfault when we don't correctly load a VFS module (don't keep it in
the loaded list on error).  Also change some of the error returns, becouse
NT_STATUS_UNSUCCESSFUL gives a most useless error message on the client.

As for which error, my logic is that a share without a valid VFS module is
not a valid share, and therefore should return the same error as a non-existant
share.

Andrew Bartlett
(This used to be commit 41178afdbd)
2003-01-06 06:15:34 +00:00
Andrew Bartlett
9bc442abeb Clear up the auth_sam password checking code (the core of our password checking
routines).  In particular, we now better support the NT# in LM feild, and the
LMv2 password scheme.  (LMv2 is basicly NTLMv2 capped at 24 bytes, slightly
more secure, and in the LM feild for compatiblity).

Thanks to the Samba-TNG team and Luke Leighton for various descriptions of this
algorithm, and to MS for a solution that seems to actually make sense for once
:-).

Andrew Bartlett
(This used to be commit 5c2e34b5b6)
2003-01-05 07:32:08 +00:00