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

9351 Commits

Author SHA1 Message Date
Jeremy Allison
e0762fe08d Fixup proto generation to not include krb5 specific symbols
if no kerberos selected. Noticed by Metze.
Jeremy.
(This used to be commit 1684719695)
2003-01-21 13:33:36 +00:00
Tim Potter
aeaa901a72 Updated some comments.
(This used to be commit f150af98a7)
2003-01-21 06:30:11 +00:00
Jeremy Allison
e97e51f5fd More fixes getting us closer to full Heimdal compile....
Jeremy.
(This used to be commit 193cc4f4fc)
2003-01-21 06:23:10 +00:00
Tim Potter
4d3ec0020d Keep the list of dead WINS servers in gencache.tdb instead of in
memory.  This allows the information to be shared amongst all smbd
processes.

HP CR #1099
(This used to be commit 88d977ecce)
2003-01-21 05:05:10 +00:00
Tim Potter
4d6535dc1a Make the valstr and timeout return pointers optional so a caller can
pass NULL if it doesn't care about the gencache key.
(This used to be commit 9ff4fe7e0d)
2003-01-21 05:01:05 +00:00
Tim Potter
7b69c6a48c Deleted arguments to help output - they didn't work.
(This used to be commit 8b167a45a6)
2003-01-21 03:45:18 +00:00
Gerald Carter
2bdcf68ab6 don't free() auto variables; fixes segfault when looking up RefusePasswordChange registry value
(This used to be commit d89b0bff44)
2003-01-21 03:42:38 +00:00
Gerald Carter
3b35519857 sanity checks from Ken Cross
(This used to be commit ec26877f0b)
2003-01-21 01:20:48 +00:00
Jim McDonough
ebe53e592a should be HAVE_KRB5_SET_REAL_TIME (HAVE_ was missing)...fix the build
(This used to be commit aceaaad1c2)
2003-01-20 19:31:01 +00:00
Martin Pool
115f3d8470 Add FIXME about dodgy argument parser.
(This used to be commit a580283308)
2003-01-20 00:53:35 +00:00
Jeremy Allison
a45db02a82 Merge in more of the SuSE patches for Heimdal. These changes show how
to add a function without an explicit #ifdef HEIMDAL which I'm trying
to avoid.
Jeremy.
(This used to be commit 77aeb262ef)
2003-01-19 22:25:34 +00:00
Gerald Carter
52b65f70ca strip any trailing \'s from reg key names in an open
(This used to be commit 03807cd564)
2003-01-19 05:04:20 +00:00
Jim McDonough
e2f2558753 Fix some debug levels (were set to 0 with RPC module patch), and
change one fprintf(stderr,...) to DEBUG.
(This used to be commit 77f8913977)
2003-01-18 20:41:19 +00:00
Gerald Carter
8c6790b6f0 removing extra debug statement
(This used to be commit 657f8c25a5)
2003-01-18 01:41:00 +00:00
Jim McDonough
1793c8f143 dlsym() can return NULL validly, so we can't use that as the error test.
dlerror() is the correct way to test.
(This used to be commit 41b1be15ba)
2003-01-17 21:23:14 +00:00
Jim McDonough
9eb368e068 Enable dynamic loading of RPC modules. See docs/textdocs/RPC_PLUGGIN.txt for instructions.
(This used to be commit d51e12df78)
2003-01-17 20:57:26 +00:00
Gerald Carter
edbc2a174f connect to the actual netbios name in smb.conf and not LOCALHOST
(This used to be commit 3e9701f34c)
2003-01-17 14:34:23 +00:00
Jeremy Allison
074c99a852 Fix reference count bug where smbd's would not terminate with no
open resources.
Jeremy.
(This used to be commit 0173d6fe16)
2003-01-17 06:35:33 +00:00
Andrew Tridgell
96c795cea7 reverted this patch till I sort out the craziness with UNIHDR
(This used to be commit e3d00fa47d)
2003-01-17 06:15:18 +00:00
Andrew Tridgell
ec879eacc2 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.
(This used to be commit b9eff31b14)
2003-01-17 04:58:45 +00:00
Andrew Tridgell
ba51d1d888 the 'static' keyword here is useless as we are not declaring a
variable or function
(This used to be commit f2c9c64900)
2003-01-17 04:12:12 +00:00
Andrew Tridgell
31482b2c6b fix some undefined behaviour with increments in C. In theory a
compiler could have produced complete crap for this code.
(This used to be commit 0e90da0810)
2003-01-17 04:09:23 +00:00
Tim Potter
5183aada24 Let's clean up client side ntlmssp!
Removed a dead function.
(This used to be commit a1c790b5ea)
2003-01-17 04:05:28 +00:00
Tim Potter
f1ffe1b1dc Remove unused variable in reply_spnego_ntlmssp_ok
(This used to be commit 60c13a7675)
2003-01-17 01:08:09 +00:00
Richard Sharpe
2ff1d60bdc Fix an error where the SK Offset was truncated to 16 bits. Variables needed
to be unsigned int (DWORD) not unsigned int (WORD).
(This used to be commit e1e9c29c40)
2003-01-16 23:27:37 +00:00
Jeremy Allison
effbd70c21 Fixed up mutex protection around winbindd logon code. Sync with APP-HEAD.
Jeremy.
(This used to be commit 3d04872499)
2003-01-16 20:08:33 +00:00
Andrew Bartlett
30ddea1f05 (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
(This used to be commit c7793f2718)
2003-01-16 04:40:07 +00:00
Andrew Tridgell
70bf249cfb 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.
(This used to be commit 665cc9b1ac)
2003-01-16 04:14:59 +00:00
Andrew Bartlett
5b076fe30b Add LIBSMB_OBJ for the new ntlm_auth functionality.
Andrew Bartlett
(This used to be commit 9128aa3dd2)
2003-01-16 03:32:55 +00:00
Andrew Bartlett
d92b21280e 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
(This used to be commit fe50ca8f54)
2003-01-16 03:29:54 +00:00
Jeremy Allison
e4af5eaca6 More Heimdal changes. Still not compiling with Heimdal yet...
Jeremy.
(This used to be commit c3544c119e)
2003-01-16 02:58:25 +00:00
Jeremy Allison
4375fe73ba 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.
(This used to be commit a776fbef32)
2003-01-16 02:39:58 +00:00
Andrew Bartlett
078468a147 Fix a signed/unsigned warning.
(This used to be commit b5ae49544d)
2003-01-16 02:02:23 +00:00
Jeremy Allison
1e19c4a609 Add mutex protection around auth calls.
Jeremy.
(This used to be commit af8a5d7968)
2003-01-16 00:27:30 +00:00
Gerald Carter
523e406daf s/WIFSIGNALLED/WIFSIGNALED/g
(This used to be commit 251585142b)
2003-01-15 23:11:45 +00:00
Tim Potter
9184bf744b Removed level 0 DEBUG leftover from testing.
(This used to be commit 7ed8046d04)
2003-01-15 22:15:07 +00:00
Andrew Bartlett
d456bec06e Missed auth_ntlmssp.c in last night's checkin. Also keep track of the current
challenge in the NTLMSSP context.

Andrew Bartlett
(This used to be commit ba13e058d4)
2003-01-15 20:39:33 +00:00
Gerald Carter
d344a009ef remove torture tools on make clean
(This used to be commit dfeab6ff24)
2003-01-15 19:00:44 +00:00
Gerald Carter
5fb5950258 small merges from SAMBA_3_0; mostly typos, renames, etc...
(This used to be commit 9ac196dad4)
2003-01-15 18:31:46 +00:00
Herb Lewis
f6f4492874 initialize acct_ctrl before using it
remove ldap_msgfree(result); as result is unitialized at this point
(This used to be commit dc88827786)
2003-01-15 16:44:35 +00:00
Gerald Carter
43e4cae106 * removed unused variable from rpcclient code
* added container option to net command (patch from SuSE)
* Makefile patch for examples/VFS from SuSE
(This used to be commit 4a6d8280ea)
2003-01-15 16:07:14 +00:00
Andrew Bartlett
58fe4d9c20 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
(This used to be commit 9e48ab86da)
2003-01-15 12:52:38 +00:00
Andrew Bartlett
3095cbd635 Doing a malloc(strlen(s)) then a pstrpcp(y, s) is just silly, make it a strdup
instead.

Andrew Bartlett
(This used to be commit c781e34d27)
2003-01-15 12:48:06 +00:00
Andrew Tridgell
eb6312af9f 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.
(This used to be commit 65bac11d71)
2003-01-15 07:40:40 +00:00
Andrew Bartlett
0a8b4417bc Fix warnings by getting the function into a shape the autoprototyper will
read, and add a static.

Andrew Bartlett
(This used to be commit 919889de78)
2003-01-15 05:56:12 +00:00
Andrew Bartlett
10abfb3f87 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
(This used to be commit 51b1413056)
2003-01-15 05:55:22 +00:00
Martin Pool
ec894b5695 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.
(This used to be commit 1e33083fe6)
2003-01-15 05:27:33 +00:00
Martin Pool
3710ea2223 Run autoheader
(This used to be commit 82e4bb598c)
2003-01-15 05:23:40 +00:00
Martin Pool
ac4869ad2a 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.
(This used to be commit 468c487df4)
2003-01-15 05:00:04 +00:00
Herb Lewis
a84db36fae IRIX uses libns_winbind.so instead of libnss_winbind.so
(This used to be commit 50adb8cc10)
2003-01-15 01:05:35 +00:00