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

10542 Commits

Author SHA1 Message Date
Andrew Tridgell
b9eff31b14 This removes the 3rd argument from init_unistr2(). There were 240
calls to init_unistr2() in the code and every one of them got the 3rd
argument incorrect, so I thought it best just to remove the argument.

The incorrect usage was caused by callers using strlen() to determine
the length of the string. The 3rd argument to init_unistr2() was
supposed to be the character length, not the byte length of the
string, so for non-english this could come out wrong.

I also removed the bogus 'always allocate at least 256 bytes'
hack. There may be some code that relies on this, but if there is then
the code is broken and needs fixing.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
f2c9c64900 the 'static' keyword here is useless as we are not declaring a
variable or function
0001-01-01 00:00:00 +00:00
Andrew Tridgell
0e90da0810 fix some undefined behaviour with increments in C. In theory a
compiler could have produced complete crap for this code.
0001-01-01 00:00:00 +00:00
Tim Potter
a1c790b5ea Let's clean up client side ntlmssp!
Removed a dead function.
0001-01-01 00:00:00 +00:00
Tim Potter
60c13a7675 Remove unused variable in reply_spnego_ntlmssp_ok 0001-01-01 00:00:00 +00:00
Herb Lewis
8b2d19eeaa update for 3.0 0001-01-01 00:00:00 +00:00
Richard Sharpe
e1e9c29c40 Fix an error where the SK Offset was truncated to 16 bits. Variables needed
to be unsigned int (DWORD) not unsigned int (WORD).
0001-01-01 00:00:00 +00:00
Jeremy Allison
3d04872499 Fixed up mutex protection around winbindd logon code. Sync with APP-HEAD.
Jeremy.
0001-01-01 00:00:00 +00:00
John Terpstra
b776521ba7 Adding genlogon (from 3.0.0). 0001-01-01 00:00:00 +00:00
John Terpstra
393c4a37f3 Added NT4 Profile Modification Docs, updated Win2K version.
NOTE: These documents are place holders for a REAL document.
0001-01-01 00:00:00 +00:00
Andrew Bartlett
c7793f2718 (missed in last commit)
Change the 'cookie' to be the ntlmssp_context, and use the 'auth_context' on
that to store the cookie.  Ensures that simple callbacks can 'just work'.

Also make it clear that we are doing a pull_string into a pstring, not just
any sized buffer.

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Andrew Tridgell
665cc9b1ac allow a couple of LSA functions to take a username instead of a SID,
They still accept a SID, it just can be tedious to have to type SIDs
instead of names all the time.
0001-01-01 00:00:00 +00:00
Andrew Bartlett
9128aa3dd2 Add LIBSMB_OBJ for the new ntlm_auth functionality.
Andrew Bartlett
0001-01-01 00:00:00 +00:00
Andrew Bartlett
fe50ca8f54 Updates to the NTLMSSP code again - moving the base64 decode fuctionality out
of the SWAT code, and adding a base64 encoder.

The main purpose of this patch is to add NTLMSSP support to 'ntlm_auth', for
use with Squid.  Unfortunetly the squid side doesn't quite support what we need
yet.

Changes to winbind to get us the info we need, and a couple of consequential
changes/cleanups in the rest of the code.

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Jeremy Allison
c3544c119e More Heimdal changes. Still not compiling with Heimdal yet...
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
a776fbef32 Fist part of fixes to make us compile with Heimdal. Don't explicitly
detect for now, I still have vague hopes of hiding the differences
between MIT and Heimdal with a compatibility layer....
Jeremy.
0001-01-01 00:00:00 +00:00
Gerald Carter
1af74785f3 * merge fixes for SGML syntax errors (does no one ever regenerate the docs?)
* regenerate the docs
* add some files from SAMBA_3_0
0001-01-01 00:00:00 +00:00
Andrew Bartlett
b5ae49544d Fix a signed/unsigned warning. 0001-01-01 00:00:00 +00:00
Jeremy Allison
af8a5d7968 Add mutex protection around auth calls.
Jeremy.
0001-01-01 00:00:00 +00:00
Gerald Carter
251585142b s/WIFSIGNALLED/WIFSIGNALED/g 0001-01-01 00:00:00 +00:00
Gerald Carter
88d673e1a1 do not use RCS variables in file 0001-01-01 00:00:00 +00:00
Gerald Carter
3ae66807d8 add ntlogon directory and files from 3.0 0001-01-01 00:00:00 +00:00
Tim Potter
7ed8046d04 Removed level 0 DEBUG leftover from testing. 0001-01-01 00:00:00 +00:00
Andrew Bartlett
ba13e058d4 Missed auth_ntlmssp.c in last night's checkin. Also keep track of the current
challenge in the NTLMSSP context.

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Gerald Carter
dfeab6ff24 remove torture tools on make clean 0001-01-01 00:00:00 +00:00
Gerald Carter
9ac196dad4 small merges from SAMBA_3_0; mostly typos, renames, etc... 0001-01-01 00:00:00 +00:00
Herb Lewis
dc88827786 initialize acct_ctrl before using it
remove ldap_msgfree(result); as result is unitialized at this point
0001-01-01 00:00:00 +00:00
Gerald Carter
4a6d8280ea * removed unused variable from rpcclient code
* added container option to net command (patch from SuSE)
* Makefile patch for examples/VFS from SuSE
0001-01-01 00:00:00 +00:00
Andrew Bartlett
9e48ab86da Refactor the NTLMSSP code again - this time we use function pointers to
eliminate the dependency on the auth subsystem.  The next step is to add
the required code to 'ntlm_auth', for export to Squid etc.

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Andrew Bartlett
c781e34d27 Doing a malloc(strlen(s)) then a pstrpcp(y, s) is just silly, make it a strdup
instead.

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Andrew Tridgell
65bac11d71 added cli_lsa_enum_account_rights() call. Note that this is in
principal similar to the existing cli_lsa_enum_privsaccount() call,
except that cli_lsa_enum_account_rights() doesn't require a call to
open_account first. There is also the minor matter that
cli_lsa_enum_account_rights() works whereas
cli_lsa_enum_privsaccount() doesn't!

this call can be used to find what privileges an account or group
has. This is a first step towards proper privileges support in Samba.
0001-01-01 00:00:00 +00:00
Andrew Bartlett
919889de78 Fix warnings by getting the function into a shape the autoprototyper will
read, and add a static.

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Andrew Bartlett
51b1413056 Crash fixes:
- fix a crash when a second NTLMSSP session tried to free the first
 - fix a crash due to some NULL pointers in the Add Printer Wizard (or read
   printer code too it appears).  As far as I can tell it's just that the
   GUID just might not exist.

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Martin Pool
1e33083fe6 One more from waitpid() audit: Correctly interpret waitstatus when a
child fails.  Possibly this was causing smbmount to exit(0) when it
really should have indicated a failure.
0001-01-01 00:00:00 +00:00
Martin Pool
82e4bb598c Run autoheader 0001-01-01 00:00:00 +00:00
Martin Pool
468c487df4 Fix bug where the existence of config.cache would cause functions like
yp_get_default_domain to be misdetected.

According to the autoconf manual we need to check for libraries before
looking for functions in them.
0001-01-01 00:00:00 +00:00
Herb Lewis
50adb8cc10 IRIX uses libns_winbind.so instead of libnss_winbind.so 0001-01-01 00:00:00 +00:00
Gerald Carter
099e844571 [merge] removing unused variable and unused file 0001-01-01 00:00:00 +00:00
Andrew Bartlett
68de9a5920 Fix some debug lines, and add a bit more info to help track down ldap
connectivity problems.

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Gerald Carter
4c98700e54 merge: disable [u|g]idPool objects 0001-01-01 00:00:00 +00:00
Gerald Carter
54b054c1ed make -i flag work lik eit did in 2.2 0001-01-01 00:00:00 +00:00
Andrew Bartlett
2c2c52a18b Commit my (disabled) fstring/pstring mixup detection code.
We need to fix some 'overmalloc' cases before it can be enabled by default.

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Andrew Bartlett
b328b67fd8 The last of the fstring/pstring mixups, and an extra 'static'. 0001-01-01 00:00:00 +00:00
Andrew Bartlett
e5d2b1f6c3 A couple more pstcpy/fstrcpy mixups - doing an fstrcpy into a pstring is
harmless, but breaks my automated check.
0001-01-01 00:00:00 +00:00
Tim Potter
056bdfbce7 Added comment about a SMB_ASSERT() 0001-01-01 00:00:00 +00:00
Tim Potter
7b0c03cbf1 Remove wrapper function _get_trust_account_password() as it doesn't
seem to do anything useful anymore other than call
secrets_fetch_trust_account_password().
0001-01-01 00:00:00 +00:00
Tim Potter
c64e2308ba Added a comment in case anyone is thinking of doing a SMB_ASSERT in winbindd. 0001-01-01 00:00:00 +00:00
Andrew Tridgell
e4ce26332b query_alt_name takes a forced unicode string in win2000. It is not
null terminated.

Thanks to Metze for finding this.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
31894ba0e5 clearer debug message when the user is already in the ldap db 0001-01-01 00:00:00 +00:00
Andrew Tridgell
2a642a1169 add help text for 'net ads lookup' 0001-01-01 00:00:00 +00:00