1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-14 19:24:43 +03:00

462 Commits

Author SHA1 Message Date
Tim Potter
66abd44c6d Set PICFLAG="-fPIC" for gcc under HPUX.
(This used to be commit 7f2533207ee46fa968cf1fd31ac0cd89e1fb0bb1)
2003-09-08 06:30:49 +00:00
Tim Potter
605281ef4b Rename FOOLIBS to FOO_LIBS to be consistent with the rest of the
library variable names.
(This used to be commit 9b0b0256a8bb93482fad4032902a4ab6d1e99e23)
2003-09-08 02:48:06 +00:00
Volker Lendecke
1c38391c70 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
(This used to be commit 5775690ee8e17d3e98355b5147e4aed47e8dc213)
2003-09-07 16:36:13 +00:00
Tim Potter
c7accf6a72 Produce an error if --with-pam_smbpass is specified and we can't
find libpam or security/pam_appl.h

Also change the warnings when we can't do --with-pam_smbpass when
is was requested to errors.
(This used to be commit fe3fb58623c27472d54722b780af43c3e272abaf)
2003-09-04 02:23:43 +00:00
Tim Potter
7da5c6a0e7 Produce an error if --with-pam is specified but no PAM headers can be
found.
(This used to be commit dc43c2dd1b4cd02e996fe10f1684a6571b2fd3de)
2003-09-04 00:51:50 +00:00
Jim McDonough
7d378e9a11 Disable rc4-hmac on broken heimdal setups. Pre-0.7 heimdal (or at least up
to a very recent snapshot) has arcfour-hmac code that doesn't work with
windows.  Love suggested detecting it via the existence of KEYTYPE_ARCFOUR_56
which only exists in working versions.
(This used to be commit e039a61e51c50a1999ed8e375c4d5df8b622e310)
2003-09-02 18:31:41 +00:00
Jim McDonough
409c6d1407 Check for support for in-memory keytabs, which are needed to make heimdal
work properly.  MIT does not support them, so this check will be used to
decide whether to use them.  First part of fixing bug #372.
(This used to be commit 85737fc9371d8208f3dd55d408958e357c48266e)
2003-09-02 17:02:09 +00:00
Tim Potter
ea7b4b6c32 Fix for bug 261. Create a configure #define for FreeBSD and a check in
nsswitch/pam_winbind.h so we can compile properly on this platform.
(This used to be commit 75411005fcab7ecf31940c5f7b87fd407166f98a)
2003-09-02 00:09:31 +00:00
Alexander Bokovoy
e83031c84d 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.
(This used to be commit 37042c7bc0f349370e93e4bed37d8fa371013247)
2003-08-28 17:16:27 +00:00
Gerald Carter
c2983f9323 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.
(This used to be commit 780055f4422f11fb0524ac1f003cdc5f317f8b19)
2003-08-27 20:52:56 +00:00
Jim McDonough
270a59f7d3 Fix to properly set AP_OPTS_SUBKEY in heimdal. In MIT it is a #define, but
in heimdal it is an enum.  Thanks to Guenther Deschner (gd@suse.de).

With this join will work, but without a keytab, cifs connections will still
fail with heimdal.  Fix to come later.
(This used to be commit d30bef4c37e8203c273eb3852215a89348bece7a)
2003-08-27 20:22:12 +00:00
Alexander Bokovoy
da0397bd2f Add CAP VFS module from Monyo. Primary purpose of this module is to provide CAP-compatible encoded file names for CJKV
(This used to be commit e8a5a962ed2218144cbb9c593d8e996c7d034b0c)
2003-08-27 20:04:23 +00:00
Gerald Carter
35a42eebed fix bug 230; make sure to set #define SYSV for solaris; do this outside of the checks for shared library support (move the IRIX define as well)
(This used to be commit 42d9b75d8c6ab61afd3b399ab485da6733af5bd2)
2003-08-27 14:37:24 +00:00
Alexander Bokovoy
bc0f3c1792 Fix typo in configure.in for libsmbclient
(This used to be commit 302da352a2f7f23c39ab97076505b5297ffdbe8d)
2003-08-27 10:42:16 +00:00
Tim Potter
a5cddd08c8 Undo SYSV define for Solaris. Things are more complicated than they
appear.  (-:

I've closed bug 355 as a duplicate of bug 230 which is still a going
concern.
(This used to be commit dfb5050b7732836ade12beba27a88c5e8c1a1b95)
2003-08-27 06:32:22 +00:00
Tim Potter
92484cab4e Follow on from herb's patch for 1.300.2.145 - define SYSV for solaris to fix
vendor supplied lp printing (bug #355).

For some reason this is not being set in Samba 3.  In Samba 2.2 the
SYSV define was only set from include/includes.h in a haphazard
fashion.  It's probably better to explicitly define it on a per-operating
system basis anyway.
(This used to be commit e653e13f45c3fa3c2cac792d78e47a2ee0df2b5a)
2003-08-27 05:07:25 +00:00
Alexander Bokovoy
7e27147422 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
(This used to be commit e855dc8c9115fa11d315eb34d57722ff612daa11)
2003-08-26 19:48:16 +00:00
Gerald Carter
eff91556a3 * 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.
(This used to be commit 50ab28bd2524187b851732176553382fb811a051)
2003-08-22 18:00:17 +00:00
Herb Lewis
409dd6454e define SYSV for IRIX
(This used to be commit f4e47012ff9704d85e017bfbc0b13030e8f5dee8)
2003-08-21 22:48:58 +00:00
Alexander Bokovoy
6895dad0bd Fallback to our defaults (CP850/ASCII/UTF8) if there is no native iconv on the platform. This allows to compile and complain about it at runtime
(This used to be commit b6fa581955de36e044a41c6ce857743c7e3c9b7f)
2003-08-15 21:14:35 +00:00
Alexander Bokovoy
b7a8561ea1 Do not cache iconv checks because we are looking for it now in different places and negative result does not mean we don't have iconv unless we checked everything
(This used to be commit d46f8325f2edad28870d7a5c45674bdb52ac08e4)
2003-08-15 20:30:52 +00:00
Alexander Bokovoy
7ddf760bea Fix charset detection code in configure.
Now we are:
1. Try to find correct name for default character sets for the platform
2. Use DEFAULT_{DOS|DISPLAY|UNIX}_CHARSET defines set during configure phase as defaults

This should fix CP850 problem on Solaris (at least) because it actually has IBM850 which
is the same but under different name
(This used to be commit 836b9fffa0eadc818019ba36ed764e97d4f9a801)
2003-08-15 20:09:12 +00:00
Jelmer Vernooij
ba59b3ca7e Remove accidently added SMB_MODULE_PROVIDES() lines
(This used to be commit 071850f87ac1c54cbb9786b5d443f6067c923663)
2003-08-15 06:23:32 +00:00
Jelmer Vernooij
f4dcc68e58 Remove nasty hack in modules system. We don't recompile files anymore
after the Makefile changes.
(This used to be commit 104f62272d75e9d89ab330b620011b337eb2a435)
2003-08-15 06:07:36 +00:00
Herb Lewis
b679661d27 get rid of IRIX test as it is wrong.
(This used to be commit a93fa23c17c9f69de224cdd5471916eda3cd4fec)
2003-08-14 22:46:25 +00:00
Gerald Carter
11777e6a30 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.
(This used to be commit 96bc2abfcb0dd0912696fad76e43cb217b33e061)
2003-08-14 21:14:28 +00:00
Richard Sharpe
4e4558998e Small fix to include existing CPPFLAGS when looking for iconv.
(This used to be commit 772bb41a9d321c7f7377af01d1583c73fccb1e08)
2003-08-14 21:07:30 +00:00
Alexander Bokovoy
8d670d117c Try to honor predefined CPPFLAGS when finding correct iconv flags
(This used to be commit ee362ce47596a90f60b0dd3b414503547863e01b)
2003-08-14 20:56:04 +00:00
Richard Sharpe
3b9f84290a Small tweaks to configure.in to support Irix and to remove the changing
of LIBS where we don't need to change them, and to ensure that if
--with-iconv was specified we only search the list of locations specified.
(This used to be commit c2274274a6cec7aed5ba5fee72e529ff3e0c71e0)
2003-08-14 01:12:12 +00:00
Richard Sharpe
1eb7fe8eaf A small tweak to allow IRIX to work by detecting ISO-8859-1 to UTF-8,
because Samba really only needs CP850 to UTF-8 and ISO-8859-1 seems to be
much the same as 8859.
(This used to be commit 02e3d779f150f99e777007a50b58861c8921925b)
2003-08-14 00:08:42 +00:00
Richard Sharpe
609ffe06d9 Test for CP850 and reorder the tests, looking for ASCII, then CP850,
then IBM850 and lastly ISO-8859-1.
(This used to be commit df8ff3f6b54aca4e43459d4275c88b90508c961a)
2003-08-13 23:08:53 +00:00
Richard Sharpe
7a56a78964 This is an intermediate commit ... we check for three different charsets
in an iconv_open to be more robust.

However, what we really want to do is find the name for something like CP850,
which can be IBM850 on Solaris, and we might want to also check for
ISO-8859-1.

So, this commit adds a macro to aclocal.m4 that can check for a specific
charset.
(This used to be commit 81dc28ca82b94d1bc42f96273f6cefac6ca1848c)
2003-08-13 21:29:59 +00:00
Richard Sharpe
7c0b572085 Hoist the code for checking whether or not iconv actually works up into the
loop that looks for iconv, because we might have more than one version
of iconv available and the first version might not work like we want, so
we have to keep looking.

We have yet to look for other character conversions as well, but for now,
let's see what the build farm makes of the changes.
(This used to be commit 13be2ca51a6125a6de22fa7afb88ba0688f23ab8)
2003-08-13 19:35:37 +00:00
Alexander Bokovoy
7bc6f49fe4 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
(This used to be commit 8b263c2fda89ff6aa2dc3a60460c5d46cf0814c6)
2003-08-12 04:35:47 +00:00
Jelmer Vernooij
601b026572 Improve MySQL library detection, add support for MySQL 4
(This used to be commit 90cbc4361e86d591e38c80092612edaa3875ea67)
2003-08-11 00:31:28 +00:00
Herb Lewis
bfb312800f add tests for IRIX attr functions
(This used to be commit ea57a57db036de6245ff44cd953dae3b482b4744)
2003-08-01 19:45:12 +00:00
Tim Potter
48c01deb30 Whoops - this is probably better shell syntax.
(This used to be commit 4644085b682c806796f9acf2ed73de9dd9872738)
2003-07-31 04:28:43 +00:00
Tim Potter
04b4c100c3 Turn on automatic winbindd support for FreeBSD and see what the compile farm
thinks of it.
(This used to be commit e6210295e4daa5f1768616b4d8390a173c5c67ae)
2003-07-31 04:27:41 +00:00
Alexander Bokovoy
428653ef72 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
(This used to be commit e856a96c2c42c39843e5e1a3a6b0d538e7179900)
2003-07-29 18:07:13 +00:00
Tim Potter
71a93a1551 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.
(This used to be commit 2e42fa3d7217615d90ad64261513bd1e8a65f535)
2003-07-21 23:42:45 +00:00
Volker Lendecke
0fe05982cd Ban getgrouplist on linux glibc systems with glibc <= 2.3.
This segfaults when you have to many group membership entries
in /etc/group.

Fixed in glibc CVS end of April 2003.

Volker
(This used to be commit 61bfdf0b12457689b08c19a6269259abf3d15410)
2003-07-17 10:03:37 +00:00
Jeremy Allison
8c38bb75b7 Add krb5_princ_component to Heimdal. Remove cli_ from mark packet signed.
Jeremy.
(This used to be commit dd46f8b22d6e8411081a1279e1cd32929e40370b)
2003-07-16 19:17:33 +00:00
Alexander Bokovoy
98af0e01b3 Accept --with-expsam=no as valid option (do nothing on it). Simplifies automatic option generation for spec files
(This used to be commit 4042d965f26d8cc056792df50d0a2a6f3f640e50)
2003-07-15 13:00:20 +00:00
Herb Lewis
5cd3b7c71c get rid of CFLAGS from LDSHFLAGS and WINBIND_NSS_LDSHFLAGS and instead
define it in SHLD for those systems the use CC for SHLD.
(This used to be commit d0e2f3d1098ac0b8fa9165b3a93cd8d325a7a0d9)
2003-07-11 14:20:12 +00:00
Richard Sharpe
c56bf515ce Final piece of support needed to find iconv libraries on FreeBSD.
This has been tested on RedHat 9.0 with libiconv built in as well as
FreeBSD 4.6.2 with iconv-2.0.3 and biconv.g/libbiconv.

We should perhaps also check for other conversions that just ASCII<-->UCS-2LE
especially because those two names do not appear in charset.aliases for
iconv-2.0.3.
(This used to be commit 53d953da10dbfaf778907f19115e127c5aac1da8)
2003-07-10 17:39:05 +00:00
Gerald Carter
5895dfb89b Cleaning up linking issues. sam/idmap*.c only links in
winbindd now.  Also removing an unused file.
(This used to be commit 688369c23c604e9b6654fcf07190d2e27c1138cf)
2003-07-07 20:00:29 +00:00
Tim Potter
2ceea00187 Display libraries detected by configure but before configure
summary as suggested by abartlet.
(This used to be commit 7b2c6181b17a0d62043569ffa49cdf6c5b0b6859)
2003-07-04 03:03:47 +00:00
Richard Sharpe
936d8e4a35 Fixing problems in the iconv discovery stuff in configure.in.
This is the first part of the fix that at least allows configure to
walk the list of supplied locations where libiconv etc might be found.

aclocal.m4 also needs a fix, as does a later test.
(This used to be commit 20786543139c546d112f8f6b6d4d796ee7fed609)
2003-07-02 21:15:59 +00:00
Gerald Carter
34f7dddab0 removing nisplussam
(This used to be commit f75683995cf0d17df55a70dacd72ab2d6cd17989)
2003-07-01 18:08:11 +00:00
Gerald Carter
82676162af fix compile problem with nisplussam
(This used to be commit 2f7051e2bcaaa45a7315208fc9b5812e6ed657d9)
2003-07-01 15:16:08 +00:00