Andrew Bartlett
a66ced2cf6
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
0001-01-01 00:00:00 +00:00
Andrew Bartlett
90d0517653
Return the 'freindly' NT error message if at all possible.
...
Andrew Bartlett
0001-01-01 00:00:00 +00:00
Andrew Bartlett
3b2e5f68cd
No point having this for both parts of the 'if' statement.
...
Andrew Bartlett
0001-01-01 00:00:00 +00:00
Gerald Carter
1f33b4acb3
typo from merge
0001-01-01 00:00:00 +00:00
Gerald Carter
df6e455992
fix tdb_append() prototype
0001-01-01 00:00:00 +00:00
Gerald Carter
142c5029c7
[merge] make sure to updatre print queue cache during timeout_processing() to send notify events; CR 1491
0001-01-01 00:00:00 +00:00
Jeremy Allison
5b8cf0810a
Added new message_send_pid() code that uses tdb append to reduce locking
...
contention on the messaging tdb.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
b515525a06
Added tdb_append() call. Efficiently adds to an entry. Used by new messaging
...
code. Also added torture tests for it.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
04243e39cf
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.
0001-01-01 00:00:00 +00:00
Jeremy Allison
21c8acd25a
Fix lpq_cache time check (missed from yesterday).
...
Jeremy.
0001-01-01 00:00:00 +00:00
Gerald Carter
3442c270f1
a 0 length printer data value is not a memory allocation error; fix CR601
0001-01-01 00:00:00 +00:00
Martin Pool
575908cb06
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.
0001-01-01 00:00:00 +00:00
Tim Potter
88eb9e9486
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.
0001-01-01 00:00:00 +00:00
Tim Potter
6ed4d80baa
Remove dead function.
0001-01-01 00:00:00 +00:00
Tim Potter
812ce0368c
Moved smbd process counting functions from smbd/server.c to smbd/process.c
...
so that bin/vfstest can link.
0001-01-01 00:00:00 +00:00
Martin Pool
be835d01e1
Correct misleading comment: winbindd_lookupname gets the SID for a
...
name, not vice versa.
0001-01-01 00:00:00 +00:00
Jeremy Allison
6a2b7fd82c
Ensure we return disk full by default on short writes.
...
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
99e69fd74d
Ensure we don't get an invalid number for total smbd's if the tdb update
...
fails.
Jeremy.
0001-01-01 00:00:00 +00:00
Herb Lewis
947042007d
reran autoconf
0001-01-01 00:00:00 +00:00
Richard Sharpe
490ff93bbf
Some fixes to editreg. Clientgen should not be touched, and an update to configure that Herb needs.
0001-01-01 00:00:00 +00:00
Jeremy Allison
b0d547b739
Fix erroneous free of SAM_ACCOUNT (make clearer when allocated
...
memory is being returned).
Jeremy
0001-01-01 00:00:00 +00:00
Tim Potter
db24489eb4
Removed pointless null statement in signal handler.
0001-01-01 00:00:00 +00:00
Tim Potter
451286febd
Display an error message when the server cannot be resolved when running at
...
debug level 0.
0001-01-01 00:00:00 +00:00
Jeremy Allison
465d86d95f
Fix open problem with changing attributes on an existing file - based
...
on work by <steve@griffin.sio2.nl>.
Jeremy.
0001-01-01 00:00:00 +00:00
Volker Lendecke
8915d59a59
Fix memory leak. Thanks, Herb!
...
Volker
0001-01-01 00:00:00 +00:00
Herb Lewis
15b2b91f4b
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 ???
0001-01-01 00:00:00 +00:00
Herb Lewis
e3b1e64d9f
cannot make assignments to const values.
0001-01-01 00:00:00 +00:00
Herb Lewis
cfe2d01b7d
add and escape before $( in regex string so it is not interpreted as the
...
perl variable for "real gid of this process"
0001-01-01 00:00:00 +00:00
Volker Lendecke
c9d0c5254c
Create a machine account correctly if the unix account exists.
...
With this, my test for W2kSP3 join after pdbedit -a -m works fine.
Volker
0001-01-01 00:00:00 +00:00
Christopher R. Hertel
02986f3e3a
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.
0001-01-01 00:00:00 +00:00
Tim Potter
232116d2db
Rename a local variable to avoid a warning.
0001-01-01 00:00:00 +00:00
Tim Potter
431ac28b5b
'index' is the name of a libc function. Rename to 'ndx' to avoid compiler
...
warnings.
0001-01-01 00:00:00 +00:00
Tim Potter
4bc82624f6
Remove unused variable.
0001-01-01 00:00:00 +00:00
Jeremy Allison
ddf741c717
Fix memory leaks in pdb_ code.
...
Jeremy.
0001-01-01 00:00:00 +00:00
Gerald Carter
0f8ba688d4
add $(LDFLAGS) to libsmbclient
0001-01-01 00:00:00 +00:00
Jeremy Allison
cde517cedf
Fix from "Ken Cross" <kcross@nssolutions.com> for enumerating
...
groups.
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Bartlett
41178afdbd
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
0001-01-01 00:00:00 +00:00
Andrew Bartlett
5c2e34b5b6
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
0001-01-01 00:00:00 +00:00
Andrew Bartlett
066e4f9a4b
Even when I can't manage to do QA, at least the build farm will catch some of
...
the silly stuff.
(fixes password changes from RAP based clients like smbpasswd)
Andrew Bartlett
0001-01-01 00:00:00 +00:00
Jeremy Allison
6e0cfec165
Fix problem with "hide unreadable". stat file opens are baaack :-).
...
Jeremy.
0001-01-01 00:00:00 +00:00
Gerald Carter
4c48c475a2
patch to include support for daemontools from Michael Handler
0001-01-01 00:00:00 +00:00
Gerald Carter
63d057fc78
make sure we create the PIDDIR and LOCKDIR from installdirs
0001-01-01 00:00:00 +00:00
Christopher R. Hertel
42a4e5b851
Fixed some simple typos, including one that would have resulted in a
...
DEBUG() message printing the wrong value.
0001-01-01 00:00:00 +00:00
Jeremy Allison
585a73b810
pstring/fstring missmatches found by Andrew Bartlett.
...
Jeremy.
0001-01-01 00:00:00 +00:00
Gerald Carter
5023aec5ad
WITH_SENDFILE #ifdef merged from SAMBA_2_2
0001-01-01 00:00:00 +00:00
Andrew Bartlett
f71c8338d3
We already have one function to move unistr2 -> multibyte-static, so we
...
don't need a second just for pdb.
Also, remove magic 'is lp_guest_account' test - the magic RID should be
up to the passdb backend to set.
Andrew Bartlett
0001-01-01 00:00:00 +00:00
Andrew Bartlett
c7e5797a95
Becouse these functions return a size_t, they can't return negitive numbers.
...
So a < 0 check is pointless, instead check against -1, which will be cast to
unsigned.
Andrew Bartlett
0001-01-01 00:00:00 +00:00
Andrew Bartlett
23abf75ade
debugparse is a seperate utility, no need to include it in the main ubiqx
...
objects.
Andrew Bartlett
0001-01-01 00:00:00 +00:00
Andrew Bartlett
16fe928e68
Add PRINTF_ATTRIBUTE() to a few more printf() style functions. Aids in
...
compiler-based argument checking.
0001-01-01 00:00:00 +00:00
Andrew Bartlett
ceb2a79849
Call me parinoid, but I don't like the idea that we could ever have dbf point
...
to a closed file. Swap the assign and the close around.
Andrew Bartlett
0001-01-01 00:00:00 +00:00