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

675 Commits

Author SHA1 Message Date
Tim Potter
67d25f3de8 Fix for bug 905. Remove POBAD_CC as it doesn't seem to be applicable
anymore.
-
Jelmer Vernooij
d12b793d9c Fix swatdir location for --with-fhs -
Andrew Bartlett
7c34de8096 This merges in my 'always use ADS' patch. Tested on a mix of NT and ADS
domains, this patch ensures that we always use the ADS backend when
security=ADS, and the remote server is capable.

The routines used for this behaviour have been upgraded to modern Samba
codeing standards.

This is a change in behaviour for mixed mode domains, and if the trusted
domain cannot be reached with our current krb5.conf file, we will show
that domain as disconnected.

This is in line with existing behaviour for native mode domains, and for
our primary domain.

As a consequence of testing this patch, I found that our kerberos error
handling was well below par - we would often throw away useful error
values.  These changes move more routines to ADS_STATUS to return
kerberos errors.

Also found when valgrinding the setup, fix a few memory leaks.

While sniffing the resultant connections, I noticed we would query our
list of trusted domains twice - so I have reworked some of the code to
avoid that.

Andrew Bartlett
-
Jelmer Vernooij
82bd1b45a4 Add smbget utility, a simple wget-like utility that uses libsmbclient.
Supports recursive downloads and resume, progress indication and shows
estimated time remaining.
-
Jeremy Allison
cae5f158e5 XFS quota patch from Stefan Metzmacher <metze@metzemix.de>.
Jeremy.
-
Jeremy Allison
4350aa6ce6 Patch from Stefan (metze) Metzmacher <metze at metzemix.de> to revert to 2.2.x quota methods.
:-).

"here's a patch which ports the samba 2.2 samba_linux_quota.h stuff to 3_0.

This is needed because of so many broken quota files outthere.

Please, test this with old, new kernels
(strucr dqblk, struct mem_dqblk, and struct if_dqblk)
, quota.user, aquota.user formats

what is when a user is over soft quota and over hard quotas..."

Jeremy.
-
Jelmer Vernooij
65ad2c02fd - Put functions for generating SQL queries in pdb_sql.c
- Add pgSQL backend (based on patch by Hamish Friedlander)
- Use query generate functions from pdb_mysql and pdb_pgsql
- Only pdb_pgsql.c needs to be changed whenever the fields in SAM_ACCOUNT change
-
Andrew Bartlett
48315e8fd2 Move our basic password checking code from inside the authentication
subsystem into a seperate file - ntlm_check.c.

This allows us to call these routines from ntlm_auth.  The purpose of this
exercise is to allow ntlm_auth (when operating as an NTLMSSP server) to
avoid talking to winbind.  This should allow for easier debugging.

ntlm_auth itself has been reorgainised, so as to share more code between
the SPNEGO-wrapped and 'raw' NTLMSSP modes.  A new 'client' NTLMSSP mode
has been added, for use with a Cyrus-SASL module I am writing (based on vl's
work)

Andrew Bartlett
-
Gerald Carter
8f6cd36fa0 working on packaging; also fixed some path issues in configure.in & Makefile.in -
Gerald Carter
b19472e108 create libdir for installclientlib; patch from Bill Knox -
Volker Lendecke
63d877c6b4 I needed a decently parseable format of smbstatus. Looking at smbstatus code
tells me that this should not be expanded, so I implemented

net status [sessions|shares] [parseable]

Volker
-
Jeremy Allison
c51d974b18 Patch from Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de> to add
MacOSX (Darwin) specific charset module code. Also had to add AC_CHECK_CPP
to configure.in (this took a *long* time to track down) to make autoconf
work correctly on Fedora Core 1.
Jeremy.
-
Jelmer Vernooij
92a138f027 Fix build of winbindd with static pdb modules -
Andrew Tridgell
ef01aedfb4 added support for "make pch" to build a precompiled header. Note that
this is not called by default and I don't think it should be - I think
the programmer should specifically ask for pch generation when they
want it.
-
Volker Lendecke
b628ba0fc0 Compile tdbdump by default.
Volker
-
Tim Potter
e306c96268 Add ldaplibs to pdbedit link line. Fixes bug #651. -
Tim Potter
7af7fa9be2 Re-order link command for smbd, rpcclient and smbpasswd to ensure $LDFLAGS
occurs before any library specification.  Closes bug #661.
-
Tim Potter
a38ab77b70 Compile fix for tdbbackup when Samba needs to override non-C99
compliant implementations of snprintf.
-
Richard Sharpe
cf9311044c Commit Derrell's changes to libsmbclient plus a small change to configure.in
to see if SGI and other platforms will build.
-
Jim McDonough
4e86243ea1 Add initshutdown pipe commands to rpcclient. Second part of fix to bug
#534
-
Jelmer Vernooij
3098a9e4b0 Compile libsmbclient with $(DYNEXP) (fixes bug #505) -
Jelmer Vernooij
17d71852ae CP* modules are not related to development -
Tim Potter
63a82debd8 Build fix for wrepld. From MORIYAMA Masayuki. -
Tim Potter
ecfbc5f529 Use @PICSUFFIX@ instead of .po in Makefile.in since we have gone to
the trouble of detecting what the PIC suffix should actually be.

Change PICFLAG in configure.in to PICFLAGS for consistency.

Patches from Joachim Schmitz <schmitz@hp.com> for bug 574.
-
Gerald Carter
266fa232d9 default DESTDIR=/ -
Simo Sorce
c78f2d0bd1 split some security related functions in their own files.
(no need to include all of smbd files to use some basic sec functions)

also minor compile fixes
couldn't compile to test these due to some kerberos problems wirh 3.0,
but on HEAD they're working well, so I suppose it's ok to commit
-
Tim Potter
6aada3bd3e Explicitly initialise the value of AR for vendor makes that don't do
this (HPUX 11).  Currently it's initialised to 'ar' but this may have
to be changed if any systems pop up that have archivers that aren't
named 'ar'. Closes bug #552.
-
Gerald Carter
dc6d14c2bd fixed for /sbin/mount.smbfs link when using $DESTDIR; bug 525 -
Tim Potter
c326774905 Fix bug #456 for 3.0.0 release.
More work on SWAT i18n support to appear in later releases.
-
Tim Potter
c972fac195 Remove tags file for distclean. -
Tim Potter
9b0b0256a8 Rename FOOLIBS to FOO_LIBS to be consistent with the rest of the
library variable names.
-
Volker Lendecke
5775690ee8 Nobody complained on the team-list, so commit it ...
This implements some kind of improved AFS support for Samba on Linux with
OpenAFS 1.2.10. ./configure --with-fake-kaserver assumes that you have
OpenAFS on your machine. To use this, you have to put the AFS server's KeyFile
into secrets.tdb with 'net afskey'. If this is done, on each tree connect
smbd creates a Kerberos V4 ticket suitable for use by the AFS client and
gives it to the kernel via the AFS syscall. This is meant to be very
light-weight, so I did not link in a whole lot of libraries to be more
platform-independent using the ka_SetToken function call.

Volker
-
Volker Lendecke
353d527291 Very weird. On my SLES8 installation ntlm_auth would give missing
kerberos symbols unless I do the same as smbd does. It does not hurt
on my debian, so simply give a pointer to LDAPLIBS as well.

Volker
-
Tim Potter
04797e12d8 Move $(KRBCLIENT_OBJ) to libnss_wins PICOBJ variable so it is converted to
relocatable form.

Added a comment about this in the hope that it won't happen again.

Renamed PAM_WINBIND_OBJ to PAM_WINBIND_PICOBJ to make it a bit clearer.
-
Tim Potter
fb446ba811 Add log2pcap to everything target. -
Alexander Bokovoy
37042c7bc0 Refactor charset plugins a bit and add CP437 module.
Now all 8-bit charsets with gaps (not all symbols defined) could be produced through
one macro -- SMB_GENERATE_CHARSET_MODULE_8_BIT_GAP(CHARSETNAME) within source file
with three charset tables. Full source code for such modules can be generated by
source/script/gen-8bit-gap.sh script which was taken from GNU libc and changed slightly
to follow our data types and structure.
-
Jim McDonough
ffc82460f2 Fix email address in copyright statement -
Gerald Carter
780055f442 Fix bug 327 (again and I think for the last time). Make sure that
pam_smbpass.so will load ok.  Had to move some functions around to work
around dependency problems (hence the new passdb/lookup_sid.c)

Also make sure that libsmbclient.a is built and installed when
we support shared libraries.
-
Alexander Bokovoy
e8a5a962ed Add CAP VFS module from Monyo. Primary purpose of this module is to provide CAP-compatible encoded file names for CJKV -
Alexander Bokovoy
e855dc8c91 Fix for #150.
We now fallback to Samba-provided CP850 charset module if CP850 or IBM850 does not exist on target system at runtime.
1. Introduce CP850 charset module based on charmaps table from GNU libc 2.2.5
2. Make CP850 charset module shared and build it by default

Should fix Solaris run-time
-
Gerald Carter
e52f95d681 fix bugs 327 & 340; make sure pam_smbpass.so gets linked with all the neccessary files & libs -
Gerald Carter
50ab28bd25 * Fix for bug 290:
smbadduser must obeys the paths from configure options

* Try to get libsmbclient files installed during 'make install'
  Still one outstanding problem with static lib.  INSTALLCLIENTCMD_A
  is not getting set correctly.
-
Gerald Carter
b7ccfb1592 fix bug 327; make sure to link SMBLDAP_OBJ with PAM_SMBPASS_OBJ -
Gerald Carter
4d49ebf713 actually check in the fix for make torture -
Gerald Carter
ae452e51b0 metze's autogenerate patch for version.h -
Jelmer Vernooij
104f62272d Remove nasty hack in modules system. We don't recompile files anymore
after the Makefile changes.
-
Jelmer Vernooij
aa96f78001 Add ability to output native pcap files without the requirement for text2pcap.
IP and TCP checksums are not calculated, but that should not matter.
-
Volker Lendecke
dc2d2ad467 Add the gss-spnego kerberos server side to ntml_auth. This uses the
same ads_verify_ticket routine that smbd uses, so in the current state
we have to be have the host password in secrets.tdb instead of the
keytab. This means we have to be an ADS member, but it's a start.

Volker
-
Jelmer Vernooij
95b1d4933b Add utility that takes a samba log file (at least level 5 for headers and
10 for data contents as well) and creates a packet trace readable by
ethereal.

What does not work yet:
 - SMB data contents (log level 5)
 - SMB data contents beyond the 512 byte range (log level 99 or something?)
-
Gerald Carter
96bc2abfcb Attempt at fixing bug #283. There however is no solution.
There is a workaround documented in the bug report.

This patch does:

  * add server support for the LSA_DS UUID on the lsarpc pipe
  * store a list of context_ids/api_structs in the pipe_struct
    so that we don't have to lookup the function table for a pipe.
    We just match the context_id.  Note that a dce/rpc alter_context
    does not destroy the previous context so it is possible to
    have multiple bindings active on the same pipe. Observed from
    standalone win2k sp4 client.
  * added server code for DsROleGetPrimaryDOmainInfo() but disabled it
    since it causes problems enumerating users and groups from a 2ksp4
    domain member in a Samba domain.
-