1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-12 21:58:10 +03:00

340 Commits

Author SHA1 Message Date
Gerald Carter
1bc79a2808 r3772: BUG 2006: patch from Michel Gravey <michel.gravey@optogone.com>; fix build when using gcc 3.0 2007-10-10 10:53:17 -05:00
Jeremy Allison
34275bae78 r3538: Fix the build with the latest Heimdal code.
Jeremy.
2007-10-10 10:53:09 -05:00
Günther Deschner
c7eab285d9 r3495: Fix the build (recent kerberos-changes).
Guenther
2007-10-10 10:53:07 -05:00
Günther Deschner
43c8a9e259 r3438: fix some kerberos-related prototype warnings
Guenther
2007-10-10 10:53:07 -05:00
Tim Potter
7f161702fa r2835: Since we always have -I. and -I$(srcdir) in CFLAGS, we can get rid of
'..' from all #include preprocessor commands.   This fixes bugzilla #1880
where OpenVMS gets confused about the '.' characters.
2007-10-10 10:52:55 -05:00
Tim Potter
0f1ffe0f30 r2364: Include yp_prot.h before ypclnt.h as AIX 5.2 spits the dummy otherwise.
Bugzilla #1778.
2007-10-10 10:52:41 -05:00
Tim Potter
53bfb76608 r2248: Merge of tridge's PRINTF_ATTRIBUTE fixes from samba4. 2007-10-10 10:52:37 -05:00
Tim Potter
46b9d6dcb5 r2246: Some good fixes for HPUX from JBravo on #samba-technical:
- Fix linker options so that stuff actually builds (oops - part of this
    commit was accidentally made in -r2245)

  - Add some preprocessor magic to avoid warnings being printed for every
    single C file being compiled.  This was due to a bug in the HPUX system
    header files.

This should make the HPUX build farm machine build again.
2007-10-10 10:52:37 -05:00
Gerald Carter
7474c6a446 r2133: Several fixes:
* BUG 1627: fix for NIS compiles on HPUX 11.00, AIX 4.3 and 5.1
  patch from Olaf Flebbe <o.flebbe@science-computing.de>.
  Will need to watch this one in the build farm.

* Fix bug found by rwf@loonybin.net where the PRINT_ATTRIBUTE_PUBLISHED
  was getting reset by attempts to sanitize the defined attributes
  (PRINTER_ATTRIBUTE_SAMBA)

* Resolve name conflict on DEC OSF-5.1 (inspired by patch from
  Adharsh Praveen <rprav@india.hp.com>)

* Work around parsing error in the print change notify code
  (not that the alignment bug is still there but reording the
   entries in the array works around it).

* remove duplicate declaration of getprintprocdir from rpcclient.
2007-10-10 10:52:32 -05:00
Jeremy Allison
3fbadac85b 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.
2007-10-10 10:52:29 -05:00
Günther Deschner
153c813464 r1721: Get rid of compiler-warning.
Guenther
2007-10-10 10:52:20 -05:00
Gerald Carter
b47971174d r1500: BUG 1516: manually declare ldap_open_with_timeout() to workaround compiler errors on IRIX 2007-10-10 10:52:13 -05:00
Jeremy Allison
7067e274dc r1195: Ensure libsmb/clikrb5.c compiles.
Jeremy.
2007-10-10 10:51:59 -05:00
Jeremy Allison
af5a08f5ad r1193: Ensure we check for and use krb5_free_unparsed_name().
Jeremy.
2007-10-10 10:51:59 -05:00
Jelmer Vernooij
9f1c978088 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)
2007-10-10 10:51:55 -05:00
Herb Lewis
9ea0560b0b add missing #ifdef HAVE_BICONV stuff -
Gerald Carter
fafb243278 BUG 1015: patch from jmcd to fix statfs redeclaration of statfs struct on ppc -
Gerald Carter
810bc1e2a0 BUG 1080: fix declaration of SMB_BIG_UINT -
Gerald Carter
d58139d64f another fix for bug 761; don't default to bsd printing on linux -
Gerald Carter
66be4492aa just say no to crack -
Gerald Carter
34e6c5f8f3 <attr/xattr.h> & <sys/xattr.h> are mutually exclusive it seems; fix build on SuSE 8.2 -
Gerald Carter
798dd7299e sys/xattr.h merge from HEAD -
Andrew Bartlett
1096271454 If we are providing strndup(), ensure we provide a prototype too.
Andrew Bartlett
-
Andrew Bartlett
f3bbc87b0d 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...
-
Gerald Carter
e92583cecd 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 -
Richard Sharpe
fb69597629 Fix one other place VA_COPY is defined ... should fix NetBSD build. -
Tim Potter
c420195231 If we have blacklisted mmap() try to avoid using it accidentally by
undefining the HAVE_MMAP symbol.
-
Volker Lendecke
497b190edc 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.
-
Herb Lewis
589e94f4ff add IRIX EA support -
Jeremy Allison
455ed2d51d Get rid of MAXPATHLEN, move to standard PATH_MAX.
Jeremy.
-
Volker Lendecke
45cef8f66e 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
-
Jeremy Allison
3f9e3b6070 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.
-
Tim Potter
b019658233 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).
-
Andrew Tridgell
53bfcd478a - 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
-
Andrew Tridgell
382b9b806b 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().
-
John Terpstra
1e445fb422 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.
-
Jeremy Allison
80d0432316 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.
-
Jeremy Allison
4885314074 Get ready for EA code... Add Linux interface.
Jeremy.
-
Gerald Carter
8241758544 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.
-
Jim McDonough
10f1da3f4a More on bug 137: rename more of krb5_xxx functions to not start with krb5_ -
Gerald Carter
1f98ced316 remove WITH_TDB_SAM & USE_SMBPASS_DB -
Simo Sorce
0e58085978 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.
-
Alexander Bokovoy
91984ef5ca 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
-
Jelmer Vernooij
3033a63cef Patch from metze to add exit and interval events. Useful for modules -
Gerald Carter
f277cd54ea remove --with-tdbsam since it is always built now -
Andrew Bartlett
5c978e39f2 Merge valgrind header usage from HEAD. -
Jelmer Vernooij
66fcf6b493 Backport my backtrace patch from HEAD -
Tim Potter
2a96239301 Merge of TRUE/FALSE preprocessor traps from HEAD. -
Tim Potter
a4b5f2c01b Merge of winbind nss library cleanup from HEAD. -
Gerald Carter
2aa2767ed5 don't include proto.h during autoconf tests since it doesn't exist yet; fixed getsmbpass replacement test -