1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-26 04:23:49 +03:00
Commit Graph

460 Commits

Author SHA1 Message Date
Günther Deschner
908ac0c9ec r11213: Fix the build
Guenther
2007-10-10 11:05:06 -05:00
Volker Lendecke
cb816e65a9 r10671: Attempt to fix the build on machines without kerberos headers.
Volker
2007-10-10 11:04:49 -05:00
Gerald Carter
85e61ff69c r10657: remove missing header file 2007-10-10 11:04:49 -05:00
Gerald Carter
939c3cb5d7 r10656: BIG merge from trunk. Features not copied over
* \PIPE\unixinfo
* winbindd's {group,alias}membership new functions
* winbindd's lookupsids() functionality
* swat (trunk changes to be reverted as per discussion with Deryck)
2007-10-10 11:04:48 -05:00
James Peach
5396944fc3 r9627: Enable format string checking for the MIPSPro compilers. 2007-10-10 11:03:23 -05:00
Jeremy Allison
be5b4e2fa3 r9483: Changed DIR to SMB_STRUCT_DIR because of the amazing stupidity of a UNIX vendor
not understanding abstract data types :-(.
Jeremy.
2007-10-10 11:01:11 -05:00
Gerald Carter
318fe7ba00 r8510: Don't include the valgrind headers on 64bit linux systems.
Several incarnations of gcc bork with

Compiling dynconfig.c
/tmp/ccXd94O5.s: Assembler messages:
/tmp/ccXd94O5.s:1202: Error: suffix or operands invalid for `mov'
/tmp/ccXd94O5.s:1289: Error: suffix or operands invalid for `mov'`

Thanks to Bent Vangli for the the leg work and suggestions.
2007-10-10 11:00:07 -05:00
Jeremy Allison
095c5dbc18 r7959: Added aio structure and types.
Jeremy.
2007-10-10 10:58:04 -05:00
Jeremy Allison
22a796fe01 r7886: Fix building with pam_smbpass.
Jeremy.
2007-10-10 10:58:01 -05:00
Jeremy Allison
9506b8e145 r7882: Looks like a large patch - but what it actually does is make Samba
safe for using our headers and linking with C++ modules. Stops us
from using C++ reserved keywords in our code.
Jeremy
2007-10-10 10:58:00 -05:00
Gerald Carter
a0ac9a8ffd r7415: * big change -- volker's new async winbindd from trunk 2007-10-10 10:57:08 -05:00
Volker Lendecke
563275b35f r6651: It's not the smartest thing in the world to #define _SAMBA_BUILD_ in a file
that is only included if _SAMBA_BUILD_ is defined...

Let's see how far this gets us.

Volker
2007-10-10 10:56:49 -05:00
Volker Lendecke
f3836831da r6639: Attempt to fix the build with talloc
Volker
2007-10-10 10:56:49 -05:00
Jelmer Vernooij
9c6cdd23ea r6570: Add socket_wrapper library to 3.0. Can be enabled by passing
--enable-socket-wrapper to configure
2007-10-10 10:56:45 -05:00
Herb Lewis
ce38ead0fc r6318: don't include smbwrapper stuff unless asked for 2007-10-10 10:56:36 -05:00
Jeremy Allison
695d45bcad r6266: Add includes for sys/extattr.h and sys/uio.h for FreeBSD xattr code.
Jeremy.
2007-10-10 10:56:33 -05:00
Derrell Lipman
994694f7f2 r6149: Fixes bugs #2498 and 2484.
1. using smbc_getxattr() et al, one may now request all access control
   entities in the ACL without getting all other NT attributes.
2. added the ability to exclude specified attributes from the result set
   provided by smbc_getxattr() et al, when requesting all attributes,
   all NT attributes, or all DOS attributes.
3. eliminated all compiler warnings, including when --enable-developer
   compiler flags are in use.  removed -Wcast-qual flag from list, as that
   is specifically to force warnings in the case of casting away qualifiers.

Note: In the process of eliminating compiler warnings, a few nasties were
      discovered.  In the file libads/sasl.c, PRIVATE kerberos interfaces
      are being used; and in libsmb/clikrb5.c, both PRIAVE and DEPRECATED
      kerberos interfaces are being used.  Someone who knows kerberos
      should look at these and determine if there is an alternate method
      of accomplishing the task.
2007-10-10 10:56:24 -05:00
Gerald Carter
00738dca3b r5517: code cleanup; rename the sorted_tree to pathtree (used by registry code)
I was going to use this for tracking dfs mounts in smbclient
but found another way.  Still the cleanup is valid so commiting it.
should be minimally disruptive since it is not widely used.
2007-10-10 10:55:43 -05:00
Gerald Carter
77c10ff9aa r4724: Add support for Windows privileges in Samba 3.0
(based on Simo's code in trunk).  Rewritten with the
following changes:

* privilege set is based on a 32-bit mask instead of strings
  (plans are to extend this to a 64 or 128-bit mask before
   the next 3.0.11preX release).
* Remove the privilege code from the passdb API
  (replication to come later)
* Only support the minimum amount of privileges that make
  sense.
* Rewrite the domain join checks to use the SeMachineAccountPrivilege
  instead of the 'is a member of "Domain Admins"?' check that started
  all this.

Still todo:

* Utilize the SePrintOperatorPrivilege in addition to the 'printer admin'
  parameter
* Utilize the SeAddUserPrivilege for adding users and groups
* Fix some of the hard coded _lsa_*() calls
* Start work on enough of SAM replication to get privileges from one
  Samba DC to another.
* Come up with some management tool for manipultaing privileges
  instead of user manager since it is buggy when run on a 2k client
  (haven't tried xp).  Works ok on NT4.
2007-10-10 10:53:51 -05:00
Tim Potter
f00ae4ab0c r4268: Merge fix for bugzilla #2150. 2007-10-10 10:53:41 -05:00
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.
-