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

10480 Commits

Author SHA1 Message Date
Martin Pool
26660f939f Fix typo in comment. -
Tim Potter
089729c02c Merge of remove "winbindd holding pattern" from appliance. It's a bit
simpler as the rescanning of trusted domains helps us out a bit.
-
Andrew Bartlett
f087fe546f Keep all the const warnings in one place, by adding a utility function to
make the TDB_DATA.

Andrew Bartlett
-
Andrew Bartlett
ef9c7586ac 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
-
Andrew Bartlett
7854a439ac 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
-
Andrew Bartlett
7b92d26d47 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
-
Andrew Bartlett
f42cf0783f Use size_t for the counter vars, to match the type they are assigned from
(signed/unsigned mixup).

Andrew Bartlett
-
Andrew Bartlett
9b76123732 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
-
Andrew Bartlett
5ff5f540cc Remove an unused paramter for our old LM-only password change code, and fix a
(harmless) fstring/pstring mixup.

Andrew Bartlett
-
Andrew Bartlett
fe1cc779d5 Fix a number of client-side fstring/pstring mixups.
Andrew Bartlett
-
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
-
Andrew Bartlett
90d0517653 Return the 'freindly' NT error message if at all possible.
Andrew Bartlett
-
Andrew Bartlett
3b2e5f68cd No point having this for both parts of the 'if' statement.
Andrew Bartlett
-
Gerald Carter
1f33b4acb3 typo from merge -
Gerald Carter
df6e455992 fix tdb_append() prototype -
Gerald Carter
142c5029c7 [merge] make sure to updatre print queue cache during timeout_processing() to send notify events; CR 1491 -
Jeremy Allison
5b8cf0810a Added new message_send_pid() code that uses tdb append to reduce locking
contention on the messaging tdb.
Jeremy.
-
Jeremy Allison
b515525a06 Added tdb_append() call. Efficiently adds to an entry. Used by new messaging
code. Also added torture tests for it.
Jeremy.
-
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.
-
Jeremy Allison
21c8acd25a Fix lpq_cache time check (missed from yesterday).
Jeremy.
-
Gerald Carter
3442c270f1 a 0 length printer data value is not a memory allocation error; fix CR601 -
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.
-
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.
-
Tim Potter
6ed4d80baa Remove dead function. -
Tim Potter
812ce0368c Moved smbd process counting functions from smbd/server.c to smbd/process.c
so that bin/vfstest can link.
-
Martin Pool
be835d01e1 Correct misleading comment: winbindd_lookupname gets the SID for a
name, not vice versa.
-
Jeremy Allison
6a2b7fd82c Ensure we return disk full by default on short writes.
Jeremy.
-
Jeremy Allison
99e69fd74d Ensure we don't get an invalid number for total smbd's if the tdb update
fails.
Jeremy.
-
Herb Lewis
947042007d reran autoconf -
Richard Sharpe
490ff93bbf Some fixes to editreg. Clientgen should not be touched, and an update to configure that Herb needs. -
Jeremy Allison
b0d547b739 Fix erroneous free of SAM_ACCOUNT (make clearer when allocated
memory is being returned).
Jeremy
-
Tim Potter
db24489eb4 Removed pointless null statement in signal handler. -
Tim Potter
451286febd Display an error message when the server cannot be resolved when running at
debug level 0.
-
Jeremy Allison
465d86d95f Fix open problem with changing attributes on an existing file - based
on work by  <steve@griffin.sio2.nl>.
Jeremy.
-
Volker Lendecke
8915d59a59 Fix memory leak. Thanks, Herb!
Volker
-
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 ???
-
Herb Lewis
e3b1e64d9f cannot make assignments to const values. -
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"
-
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
-
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.
-
Tim Potter
232116d2db Rename a local variable to avoid a warning. -
Tim Potter
431ac28b5b 'index' is the name of a libc function. Rename to 'ndx' to avoid compiler
warnings.
-
Tim Potter
4bc82624f6 Remove unused variable. -
Jeremy Allison
ddf741c717 Fix memory leaks in pdb_ code.
Jeremy.
-
Gerald Carter
0f8ba688d4 add $(LDFLAGS) to libsmbclient -
Jeremy Allison
cde517cedf Fix from "Ken Cross" <kcross@nssolutions.com> for enumerating
groups.
Jeremy.
-
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
-
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
-
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
-
Jeremy Allison
6e0cfec165 Fix problem with "hide unreadable". stat file opens are baaack :-).
Jeremy.
-