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

10555 Commits

Author SHA1 Message Date
Gerald Carter
03807cd564 strip any trailing \'s from reg key names in an open -
Gerald Carter
3e9c970597 only supporting the Net::LDAP module now -
Jim McDonough
77f8913977 Fix some debug levels (were set to 0 with RPC module patch), and
change one fprintf(stderr,...) to DEBUG.
-
John Terpstra
7ecd1694dd Merge from 3.0.0 tree. -
Tim Potter
876f0b4d19 Er, I think this is a better spelling. (-: -
Gerald Carter
36ade606e8 adding docs for rpc plugin libs -
Gerald Carter
657f8c25a5 removing extra debug statement -
Jim McDonough
41b1be15ba dlsym() can return NULL validly, so we can't use that as the error test.
dlerror() is the correct way to test.
-
Jim McDonough
d51e12df78 Enable dynamic loading of RPC modules. See docs/textdocs/RPC_PLUGGIN.txt for instructions. -
Gerald Carter
41a86bb66b sync WHATSNEW from SAMBA_3_0 -
Gerald Carter
3e9701f34c connect to the actual netbios name in smb.conf and not LOCALHOST -
Jeremy Allison
0173d6fe16 Fix reference count bug where smbd's would not terminate with no
open resources.
Jeremy.
-
Andrew Tridgell
e3d00fa47d reverted this patch till I sort out the craziness with UNIHDR -
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.
-
Andrew Tridgell
f2c9c64900 the 'static' keyword here is useless as we are not declaring a
variable or function
-
Andrew Tridgell
0e90da0810 fix some undefined behaviour with increments in C. In theory a
compiler could have produced complete crap for this code.
-
Tim Potter
a1c790b5ea Let's clean up client side ntlmssp!
Removed a dead function.
-
Tim Potter
60c13a7675 Remove unused variable in reply_spnego_ntlmssp_ok -
Herb Lewis
8b2d19eeaa update for 3.0 -
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).
-
Jeremy Allison
3d04872499 Fixed up mutex protection around winbindd logon code. Sync with APP-HEAD.
Jeremy.
-
John Terpstra
b776521ba7 Adding genlogon (from 3.0.0). -
John Terpstra
393c4a37f3 Added NT4 Profile Modification Docs, updated Win2K version.
NOTE: These documents are place holders for a REAL document.
-
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
-
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.
-
Andrew Bartlett
9128aa3dd2 Add LIBSMB_OBJ for the new ntlm_auth functionality.
Andrew Bartlett
-
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
-
Jeremy Allison
c3544c119e More Heimdal changes. Still not compiling with Heimdal yet...
Jeremy.
-
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.
-
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
-
Andrew Bartlett
b5ae49544d Fix a signed/unsigned warning. -
Jeremy Allison
af8a5d7968 Add mutex protection around auth calls.
Jeremy.
-
Gerald Carter
251585142b s/WIFSIGNALLED/WIFSIGNALED/g -
Gerald Carter
88d673e1a1 do not use RCS variables in file -
Gerald Carter
3ae66807d8 add ntlogon directory and files from 3.0 -
Tim Potter
7ed8046d04 Removed level 0 DEBUG leftover from testing. -
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
-
Gerald Carter
dfeab6ff24 remove torture tools on make clean -
Gerald Carter
9ac196dad4 small merges from SAMBA_3_0; mostly typos, renames, etc... -
Herb Lewis
dc88827786 initialize acct_ctrl before using it
remove ldap_msgfree(result); as result is unitialized at this point
-
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
-
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
-
Andrew Bartlett
c781e34d27 Doing a malloc(strlen(s)) then a pstrpcp(y, s) is just silly, make it a strdup
instead.

Andrew Bartlett
-
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.
-
Andrew Bartlett
919889de78 Fix warnings by getting the function into a shape the autoprototyper will
read, and add a static.

Andrew Bartlett
-
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
-
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.
-
Martin Pool
82e4bb598c Run autoheader -
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.
-
Herb Lewis
50adb8cc10 IRIX uses libns_winbind.so instead of libnss_winbind.so -