1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00
Commit Graph

641 Commits

Author SHA1 Message Date
Tim Potter
fb446ba811 Add log2pcap to everything target. 0001-01-01 00:00:00 +00:00
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.
0001-01-01 00:00:00 +00:00
Jim McDonough
ffc82460f2 Fix email address in copyright statement 0001-01-01 00:00:00 +00:00
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.
0001-01-01 00:00:00 +00:00
Alexander Bokovoy
e8a5a962ed Add CAP VFS module from Monyo. Primary purpose of this module is to provide CAP-compatible encoded file names for CJKV 0001-01-01 00:00:00 +00:00
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
0001-01-01 00:00:00 +00:00
Gerald Carter
e52f95d681 fix bugs 327 & 340; make sure pam_smbpass.so gets linked with all the neccessary files & libs 0001-01-01 00:00:00 +00:00
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.
0001-01-01 00:00:00 +00:00
Gerald Carter
b7ccfb1592 fix bug 327; make sure to link SMBLDAP_OBJ with PAM_SMBPASS_OBJ 0001-01-01 00:00:00 +00:00
Gerald Carter
4d49ebf713 actually check in the fix for make torture 0001-01-01 00:00:00 +00:00
Gerald Carter
ae452e51b0 metze's autogenerate patch for version.h 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
104f62272d Remove nasty hack in modules system. We don't recompile files anymore
after the Makefile changes.
0001-01-01 00:00:00 +00:00
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.
0001-01-01 00:00:00 +00:00
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
0001-01-01 00:00:00 +00:00
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?)
0001-01-01 00:00:00 +00:00
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.
0001-01-01 00:00:00 +00:00
Andrew Bartlett
3547cb3def Change Samba to always use extended security for it's guest logins, (ie,
NTLMSSP with "" username, NULL password), and add --machine-pass (-P) to
all of Samba's clients.

When connecting to an Active Directory DC, you must initiate the CIFS level
session setup with Kerberos, not a guest login.  If you don't, your machine
account is demoted to NT4.

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Jelmer Vernooij
3000a99b2d Create symlinks for modules that register multiple functions (fixes bug #91 ) 0001-01-01 00:00:00 +00:00
Volker Lendecke
5522c79045 This adds *experimental* kerberos gss spnego client support to ntlm_auth. 0001-01-01 00:00:00 +00:00
Alexander Bokovoy
8b263c2fda Add vfs_readonly module which allows to enforce periodic read-only limit on a share based on a specified start and end dates according to date(1) format 0001-01-01 00:00:00 +00:00
Jim McDonough
15d2bc4785 Fix copyright statements for various pieces of Anthony Liguori's work. 0001-01-01 00:00:00 +00:00
Volker Lendecke
c2c901e06b locking.c now refers to map_nt_error_from_unix, so link it in with
smbstatus and smbcontrol

Volker
0001-01-01 00:00:00 +00:00
Volker Lendecke
9a04750dea spnego.c has function definitions. Prototype them.
Anybody familiar with Makefile.in could you please look at this?
This is probably the wrong way to fix this.

Volker
0001-01-01 00:00:00 +00:00
Volker Lendecke
ee09db891a bin/net needs server_mutex as kerberos_verify now uses it.
Volker
0001-01-01 00:00:00 +00:00
Herb Lewis
cec5bf5f99 split replace into replace and replace1 to allow setenv to be used by
nsswitch modules. Add required libraries to get rid of undefined
functions for libns_winbind.so and libns_wins.so
0001-01-01 00:00:00 +00:00
Alexander Bokovoy
e856a96c2c Add NT quotas support. Users allowed now to manage quotas on systems with sysquotas interface detected (Linux at least) using native Windows tools. Also move default quota support for NT quotas to VFS module default_quota. Code by Metze 0001-01-01 00:00:00 +00:00
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
0001-01-01 00:00:00 +00:00
Andrew Bartlett
e09a7c767e the testsuite lib needs dummyroot too. 0001-01-01 00:00:00 +00:00
Tim Potter
8b818ce381 Replace the eight (!) copies of dummy become/unbecome root with a single one. 0001-01-01 00:00:00 +00:00
Tim Potter
2e42fa3d72 Metze's AD/LDAP detection patches mainly to do with library detection.
Tested on a large combination of operating systems and versions.
Hopefully the build farm will find any remaining nasties if they
exist.
0001-01-01 00:00:00 +00:00
Tim Potter
90157b9bd3 Uninstall modules as part of uninstall. Partial fix for 236.
We still don't uninstall swat or the man pages properly.
0001-01-01 00:00:00 +00:00
Jeremy Allison
61fc9a7b2e Add API framework for server SMB signing.
Jeremy.
0001-01-01 00:00:00 +00:00
Alexander Bokovoy
bb31276c3d Add mandir to installdir target. Otherwise installman fails for clean DESTDIR 0001-01-01 00:00:00 +00:00
Herb Lewis
d0e2f3d109 get rid of CFLAGS from LDSHFLAGS and WINBIND_NSS_LDSHFLAGS and instead
define it in SHLD for those systems the use CC for SHLD.
0001-01-01 00:00:00 +00:00
Tim Potter
1e4043d54c Fix for bug 203. Avoid using an autoconf expanded variable preceeded by a backslash
in case the variable is empty.  This apparently confuses some makes.
0001-01-01 00:00:00 +00:00
Volker Lendecke
0358cc7675 pdbedit should not call idmap anymore. Otherwise pdbedit -L would
allocate id's.

Volker
0001-01-01 00:00:00 +00:00
Gerald Carter
1111bc7b0c Large set of changes to add UNIX account/group management
to winbindd.  See README.idmap-and-winbind-changes for details.
0001-01-01 00:00:00 +00:00
Jeremy Allison
61e9c49cd6 Fix the build...
Jeremy.
0001-01-01 00:00:00 +00:00
Gerald Carter
8b52802e5d another compile fix 0001-01-01 00:00:00 +00:00
Gerald Carter
6f0b5d474a fix some compile problems. Can't get IDMAP_OBJ our of proto.h
just yet.

`
0001-01-01 00:00:00 +00:00
Gerald Carter
688369c23c Cleaning up linking issues. sam/idmap*.c only links in
winbindd now.  Also removing an unused file.
0001-01-01 00:00:00 +00:00
Gerald Carter
f75683995c removing nisplussam 0001-01-01 00:00:00 +00:00
Gerald Carter
7bc4b65b91 * fix the trustdom_cache to work when winbindd is not running.
smbd will update the trustdom_cache periodically after locking
  the timestamp key
0001-01-01 00:00:00 +00:00
Gerald Carter
e1d6094d06 * cleanup more DC name resolution issues in check_*domain_security()
* is_trusted_domain() is broken without winbind.  Still working on this.
* get_global_sam_name() should return the workgroup name unless we
  are a standalone server (verified by volker)
* Get_Pwnam() should always fall back to the username (minus domain name)
  even if it is not our workgroup so that TRUSTEDOMAIN\user can logon
  if 'user' exists in the local list of accounts (on domain members w/o
  winbind)

Tested using Samba PDC with trusts (running winbindd) and a Samba 3.0
domain member not running winbindd.

notes: make_user_info_map() is slightly broken now due to the
fact that is_trusted_domain() only works with winbindd.  disabled
checks temporarily until I can sort this out.
0001-01-01 00:00:00 +00:00
Jelmer Vernooij
b9b46d43c7 Remove the MODULES_CLEAN variable. It's no longer necessary since
object files for modules are in .po files, while object files for
static use are in .o files. Pointed out by metze.

This reduces the number of files that have to be recompiled after the Makefile
changes. Preventing unnecessary recompiling of the other few is high
on my todo list.
0001-01-01 00:00:00 +00:00
Gerald Carter
3e9e4bb7d1 cleaning up more build issues. Tested
"--with-ads=no --with-ldap=yes" and "--with-ads=yes && make everything"
0001-01-01 00:00:00 +00:00
Gerald Carter
42133092a4 fix linking of some things that are not built by default 0001-01-01 00:00:00 +00:00
Gerald Carter
d7f7fcda42 large change:
*)  consolidates the dc location routines again (dns
    and netbios)  get_dc_list() or get_sorted_dc_list()
    is the authoritative means of locating DC's again.

    (also inludes a flag to get_dc_list() to define
     if this should be a DNS only lookup or not)

    (however, if you set "name resolve order = hosts wins"
     you could still get DNS queries for domain name IFF
     ldap_domain2hostlist() fails.  The answer?  Fix your DNS
     setup)

*)  enabled DOMAIN<0x1c> lookups to be funneled through
    resolve_hosts resulting in a call to ldap_domain2hostlist()
    if lp_security() == SEC_ADS

*)  enables name cache for winbind ADS backend

*)  enable the negative connection cache for winbind
    ADS backend

*)  removes some old dead code

*)  consolidates some duplicate code

*)  moves the internal_name_resolve() to use an IP/port pair
    to deal with SRV RR dns replies.  The namecache code
    also supports the IP:port syntax now as well.

*)  removes 'ads server' and moves the functionality back
    into 'password server' (which can support "hostname:port"
    syntax now but works fine with defaults depending on
    the value of lp_security())
0001-01-01 00:00:00 +00:00
Andrew Bartlett
57617a0f8c Patch to move functions directly from pdb_ldap.c into lib/smbldap.c
The functions are unchanged.  Next step is to make idmap_ldap use them.

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Simo Sorce
2bdbeb9e97 add tdb backup function separation and winbind idmap upgrade code form
pre-2.2.4 tdb database format.

tx volker for your work on this
0001-01-01 00:00:00 +00:00