1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
Commit Graph

331 Commits

Author SHA1 Message Date
Jeremy Allison
fcbb2d3132 r2026: Simplify statcache to use an in-memory tdb. Modify tdb to use
a customer hash function for this tdb (yes it does make a difference
on benchmarks). Remove the no longer used hash.c code.
Jeremy.
(This used to be commit 3fbadac85b)
2007-10-10 10:52:29 -05:00
Günther Deschner
9e2af93087 r1721: Get rid of compiler-warning.
Guenther
(This used to be commit 153c813464)
2007-10-10 10:52:20 -05:00
Gerald Carter
e571c8a8ac r1500: BUG 1516: manually declare ldap_open_with_timeout() to workaround compiler errors on IRIX
(This used to be commit b47971174d)
2007-10-10 10:52:13 -05:00
Jeremy Allison
ee79226d2a r1195: Ensure libsmb/clikrb5.c compiles.
Jeremy.
(This used to be commit 7067e274dc)
2007-10-10 10:51:59 -05:00
Jeremy Allison
f38c27b4e0 r1193: Ensure we check for and use krb5_free_unparsed_name().
Jeremy.
(This used to be commit af5a08f5ad)
2007-10-10 10:51:59 -05:00
Jelmer Vernooij
f28e4f3863 r1111: Rename vsnprintf to smb_vsnprintf so we don't get duplicate symbol errors
when linking against an app that does have vsnprintf() (bug #478)
(This used to be commit 9f1c978088)
2007-10-10 10:51:55 -05:00
Herb Lewis
a26e22edfb add missing #ifdef HAVE_BICONV stuff
(This used to be commit 9ea0560b0b)
2004-03-11 15:12:59 +00:00
Gerald Carter
9b882ce3e5 BUG 1015: patch from jmcd to fix statfs redeclaration of statfs struct on ppc
(This used to be commit fafb243278)
2004-03-04 18:34:45 +00:00
Gerald Carter
7f6d708f86 BUG 1080: fix declaration of SMB_BIG_UINT
(This used to be commit 810bc1e2a0)
2004-03-04 18:17:01 +00:00
Gerald Carter
43dd09f9da another fix for bug 761; don't default to bsd printing on linux
(This used to be commit d58139d64f)
2004-03-04 15:18:36 +00:00
Gerald Carter
8adb394ee6 just say no to crack
(This used to be commit 66be4492aa)
2004-02-20 15:52:14 +00:00
Gerald Carter
11bf157469 <attr/xattr.h> & <sys/xattr.h> are mutually exclusive it seems; fix build on SuSE 8.2
(This used to be commit 34e6c5f8f3)
2004-02-20 15:50:18 +00:00
Gerald Carter
95bc32e93c sys/xattr.h merge from HEAD
(This used to be commit 798dd7299e)
2004-02-19 22:17:54 +00:00
Andrew Bartlett
181f2be495 If we are providing strndup(), ensure we provide a prototype too.
Andrew Bartlett
(This used to be commit 1096271454)
2004-01-25 01:02:39 +00:00
Andrew Bartlett
fcbfc7ad06 Changes all over the shop, but all towards:
- NTLM2 support in the server
 - KEY_EXCH support in the server
 - variable length session keys.

In detail:

 - NTLM2 is an extension of NTLMv1, that is compatible with existing
domain controllers (unlike NTLMv2, which requires a DC upgrade).

 * This is known as 'NTLMv2 session security' *

(This is not yet implemented on the RPC pipes however, so there may
well still be issues for PDC setups, particuarly around password
changes.  We do not fully understand the sign/seal implications of
NTLM2 on RPC pipes.)

This requires modifications to our authentication subsystem, as we
must handle the 'challege' input into the challenge-response algorithm
being changed.  This also needs to be turned off for
'security=server', which does not support this.

- KEY_EXCH is another 'security' mechanism, whereby the session key
actually used by the server is sent by the client, rather than being
the shared-secret directly or indirectly.

- As both these methods change the session key, the auth subsystem
needed to be changed, to 'override' session keys provided by the
backend.

- There has also been a major overhaul of the NTLMSSP subsystem, to merge the 'client' and 'server' functions, so they both operate on a single structure.  This should help the SPNEGO implementation.

- The 'names blob' in NTLMSSP is always in unicode - never in ascii.
Don't make an ascii version ever.

- The other big change is to allow variable length session keys.  We
have always assumed that session keys are 16 bytes long - and padded
to this length if shorter.  However, Kerberos session keys are 8 bytes
long, when the krb5 login uses DES.

 * This fix allows SMB signging on machines not yet running MIT KRB5 1.3.1. *

- Add better DEBUG() messages to ntlm_auth, warning administrators of
misconfigurations that prevent access to the privileged pipe.  This
should help reduce some of the 'it just doesn't work' issues.

- Fix data_blob_talloc() to behave the same way data_blob() does when
passed a NULL data pointer.  (just allocate)


REMEMBER to make clean after this commit - I have changed plenty of data structures...
(This used to be commit f3bbc87b0d)
2003-11-22 13:19:38 +00:00
Gerald Carter
7c55d23cbf removing #include <compat.h> in hopes to avoid problems with apache header files; will watch the build farm on this to make sure things don't blow up
(This used to be commit e92583cecd)
2003-11-03 19:22:32 +00:00
Richard Sharpe
f3ea6329ba Fix one other place VA_COPY is defined ... should fix NetBSD build.
(This used to be commit fb69597629)
2003-10-24 17:58:30 +00:00
Tim Potter
4c0d641475 If we have blacklisted mmap() try to avoid using it accidentally by
undefining the HAVE_MMAP symbol.
(This used to be commit c420195231)
2003-10-21 04:08:32 +00:00
Volker Lendecke
852ffbda33 Latest heimdal snapshot has a krb5_set_real_time with a slightly
different (but by implicit conversion hopefully compatible... ;-)
prototype. Fix the build for that.
(This used to be commit 497b190edc)
2003-08-15 19:29:08 +00:00
Herb Lewis
23c314bb58 add IRIX EA support
(This used to be commit 589e94f4ff)
2003-08-15 01:29:08 +00:00
Jeremy Allison
17a713d1b9 Get rid of MAXPATHLEN, move to standard PATH_MAX.
Jeremy.
(This used to be commit 455ed2d51d)
2003-08-06 19:30:42 +00:00
Volker Lendecke
7730b658a1 This adds gss-spnego to ntlm_auth. It contains some new spnego support
from Jim McDonough. It is to enable cyrus sasl to provide the
gss-spnego support. For a preliminary patch to cyrus sasl see

http://samba.sernet.de/cyrus-gss-spnego.diff

Volker
(This used to be commit 45cef8f66e)
2003-07-29 15:00:38 +00:00
Jeremy Allison
4632786cfb W00t! Client smb signing is now working correctly with krb5 and w2k server.
Server code *should* also work (I'll check shortly). May be the odd memory
leak. Problem was we (a) weren't setting signing on in the client krb5 sessionsetup
code (b) we need to ask for a subkey... (c). The client and server need to
ask for local and remote subkeys respectively.
Thanks to Paul Nelson @ Thursby for some sage advice on this :-).
Jeremy.
(This used to be commit 3f9e3b6070)
2003-07-25 23:15:30 +00:00
Tim Potter
8991cecd54 A fix for bug 174. I'm pushing this to the tree to test it on one of
the build farm machines that I don't have direct access to (hpntc9I).
(This used to be commit b019658233)
2003-07-23 03:59:57 +00:00
Andrew Tridgell
0a4959d48d - added LOCALE patch from vorlon@debian.org (Steve Langasek) (bug #122)
- changed --enable-developer debug to use -gstabs as it makes the
  samba binaries about 10x smaller and is still quite functional for
  samba debugging
(This used to be commit 53bfcd478a)
2003-06-30 02:11:13 +00:00
Andrew Tridgell
8cd67d7668 reverted locale patch put in by jht (originally from vorlon).
There are lots of things wrong with this patch, including:

1) it overrides a user chosen configuration option

2) it adds lots of complexity inside a loop when a tiny piece of code
   outside the loop would do the same thing

3) it does no error checking, and is sure to crash on some systems

If you want this functionality then try something like this at the end
of charset_name():

#ifdef HAVE_NL_LANGINFO
	if (strcasecmp(ret, "LOCALE") == 0) {
		const char *ln = nl_langinfo(CODESET);
		if (ln) {
			DEBUG(5,("Substituting charset '%s' for LOCALE\n", ln));
			return ln;
		}
	}
#endif

then users can set 'display charset = LOCALE' to get the locale based
charset. You could even make that the default for systems that have
nl_langinfo().
(This used to be commit 382b9b806b)
2003-06-16 02:22:52 +00:00
John Terpstra
489956c823 Patch from vorlon@debian.org, see bugzilal #122
Samba should preferentially use the locale information from the native system,
and only fall back on 'display charset' if this is unavailable or unsupported.
(This used to be commit 1e445fb422)
2003-06-15 06:07:53 +00:00
Jeremy Allison
5cee22714c Ok, I've tried being Mr. Nice Guy and people (you know who you are) still
keep putting bzero BSD'ism's into our source code. Make this an error like
bcopy and others to prevent it in future.
Jeremy.
(This used to be commit 80d0432316)
2003-06-10 17:30:28 +00:00
Jeremy Allison
8e047054e8 Get ready for EA code... Add Linux interface.
Jeremy.
(This used to be commit 4885314074)
2003-06-05 20:29:55 +00:00
Gerald Carter
3bdfd57a2d working draft of the idmap_ldap code.
Includes sambaUnixIdPool objectclass

Still needs cleaning up wrt to name space.
More changes to come, but at least we now have a
a working distributed winbindd solution.
(This used to be commit 8241758544)
2003-06-05 02:34:30 +00:00
Jim McDonough
4f276f9696 More on bug 137: rename more of krb5_xxx functions to not start with krb5_
(This used to be commit 10f1da3f4a)
2003-05-30 20:11:34 +00:00
Gerald Carter
931dc9d25a remove WITH_TDB_SAM & USE_SMBPASS_DB
(This used to be commit 1f98ced316)
2003-05-20 18:30:37 +00:00
Simo Sorce
c823b191ab And finally IDMAP in 3_0
We really need idmap_ldap to have a good solution with ldapsam, porting
it from the prvious code is beeing made, the code is really simple to do
so I am confident it is not a problem to commit this code in.

Not committing it would have been worst.
I really would have been able to finish also the group code, maybe we can
put it into a followin release after 3.0.0 even if it may be an upgrade
problem.

The code has been tested and seem to work right, more testing is needed for
corner cases.

Currently winbind pdc (working only for users and not for groups) is
disabled as I was not able to make a complete group code replacement that
works somewhat in a week (I have a complete patch, but there are bugs)

Simo.
(This used to be commit 0e58085978)
2003-05-12 18:12:31 +00:00
Alexander Bokovoy
e7c8c15888 Fix VFS layer:
1. Finally work with cascaded modules with private data storage per module
2. Convert VFS API to macro calls to simplify cascading
3. Add quota support to VFS layer (prepare to NT quota support)

Patch by Stefan (metze) Metzemacher, with review of Jelmer and me
Tested in past few weeks. Documentation to new VFS API for third-party developers to follow
(This used to be commit 91984ef5ca)
2003-05-11 23:34:18 +00:00
Jelmer Vernooij
06551c644c Patch from metze to add exit and interval events. Useful for modules
(This used to be commit 3033a63cef)
2003-05-06 02:34:59 +00:00
Gerald Carter
4d6c97edb2 remove --with-tdbsam since it is always built now
(This used to be commit f277cd54ea)
2003-04-29 06:03:04 +00:00
Andrew Bartlett
8cb0672c58 Merge valgrind header usage from HEAD.
(This used to be commit 5c978e39f2)
2003-04-16 13:19:51 +00:00
Jelmer Vernooij
10bf059b62 Backport my backtrace patch from HEAD
(This used to be commit 66fcf6b493)
2003-04-14 21:49:49 +00:00
Tim Potter
0fa29335dc Merge of TRUE/FALSE preprocessor traps from HEAD.
(This used to be commit 2a96239301)
2003-04-14 01:19:58 +00:00
Tim Potter
759179b190 Merge of winbind nss library cleanup from HEAD.
(This used to be commit a4b5f2c01b)
2003-04-02 06:16:15 +00:00
Gerald Carter
a50e82cac2 don't include proto.h during autoconf tests since it doesn't exist yet; fixed getsmbpass replacement test
(This used to be commit 2aa2767ed5)
2003-03-28 02:03:31 +00:00
Andrew Tridgell
567fcd81ed merged real time signal fixes from head
(This used to be commit 03a5e62300)
2003-03-28 01:07:05 +00:00
Andrew Bartlett
d5ee9b2f48 Jeremy merged across my string parinoia fixes, but forgot to enable them! :-)
This patch catches up on the rest of the work - as much string checking
as is possible is done at compile time, and the rest at runtime.

Lots of code converted to pstrcpy() etc, and other code reworked to correctly
call sizeof().

Andrew Bartlett
(This used to be commit c5b604e2ee)
2003-03-18 11:22:52 +00:00
Andrew Bartlett
ec458fa87e Merge from HEAD - sync up SessionSetup code to HEAD, including Luke Howard's
session key and auth verifier patches.

Andrew Bartlett
(This used to be commit 3f9616a68a)
2003-03-17 22:45:16 +00:00
Andrew Bartlett
a9ae0df333 Iconv as seperate library fixes from HEAD
(This used to be commit 935c66f6a0)
2003-02-24 03:27:29 +00:00
Jim McDonough
83a11f7f0e Sync with HEAD for verifying kerberos tickets.
(This used to be commit 77e1178a88)
2003-02-19 15:48:12 +00:00
Andrew Bartlett
251ea1e677 Merge minor library fixes from HEAD to 3.0.
- setenv() replacement
 - mimir's ASN1/SPNEGO typo fixes
 - (size_t)-1 fixes for push_* returns
 - function argument signed/unsigned correction
 - ASN1 error handling (ensure we don't use initiailsed data)
 - extra net ads join error checking
 - allow 'set security discriptor' to fail
 - escape ldap strings in libads.
 - getgrouplist() correctness fixes (include primary gid)

Andrew Bartlett
(This used to be commit e9d6e2ea9a)
2003-02-19 12:31:16 +00:00
Jeremy Allison
59222d70e2 Re-added the Heimdal stuff tpot removed.
Jeremy.
(This used to be commit e79dc0dade)
2003-01-30 20:36:44 +00:00
Tim Potter
cf292aead6 Sync of Heimdal kerberos stuff with HEAD. If this breaks I'm blaming
the dog again.
(This used to be commit 6f89ee2c9d)
2003-01-30 04:40:12 +00:00
Jeremy Allison
b1bce45141 Finally we compile with Heimdal as well as MIT ! Wonder if it works... :-).
Jeremy.
(This used to be commit 1b71786c16)
2003-01-28 03:31:33 +00:00