1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-17 02:05:21 +03:00

3412 Commits

Author SHA1 Message Date
Stefan Metzmacher
fdc27be1be remove faked_create_user() BUILD_FARM hack as we have nss_wrapper now
metze
(This used to be commit fc98c1904865608509a01911afa46de74873ef41)
2007-11-09 09:53:02 +01:00
metze
c4a20912b1 nss_wrapper: hopefully a better fix for the solaris get*ent_r functions
metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25873 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit e0c8c01650b2aa0a1ab491c9800b8aa575bf4185)
2007-11-09 09:53:01 +01:00
metze
39d65a9f50 nss_wrapper: revert solaris get*ent_r() functions
This was the wrong approach, as in future lib/replace
should hide this special solaris stuff.

metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25872 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit 350d6c19e3e933804ce7234f21ef008c74894e2e)
2007-11-09 09:53:01 +01:00
metze
29832ab0fe nss_wrapper: set the destination pointer in the get*_r functions
metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25871 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit 17b449212a2f68262a95b0ebaabb377cc9a8dcc9)
2007-11-09 09:53:01 +01:00
metze
f54458939d libreplace: AC_VERIFY_C_PROTOTYPE() needs AC_LANG_SOURCE() to bring in confdefs.h
metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25870 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit 95dfbd3a6c22ff6381c8b220b06ec3a5cf59c06b)
2007-11-09 09:53:00 +01:00
metze
673d502ba3 nss_wrapper: add solaris versions of getpwent_r and getgrent_r
metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25868 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit 70ea441fe46d75162adc6c4b055a9fd5fab00342)
2007-11-09 09:53:00 +01:00
metze
05206ce0c2 libreplace: solaris has different prototypes for getpwent_r and getgrent_r
metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25867 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit 77900d2ba03455412ad645e757ba468ca90453fb)
2007-11-09 09:52:59 +01:00
metze
90d034f7cf nss_wrapper: not all systems have get*_r calls
metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25866 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit 2451399acb9dbba6b02935f6a1d02e2b56b499ef)
2007-11-09 09:52:59 +01:00
metze
ca2ced5c23 libreplace: check for nss passwd|group get*_r functions
metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25865 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit 8e81dd7356eb8422284a93bfc9b55ed1523c8208)
2007-11-09 09:52:59 +01:00
metze
7c43422e1b nss_wrapper: add nss_wrapper.pl
This script will be used to add|delete passwd|group entries

metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25837 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit 28789e60cc59a3e7a42500ebb78c472093be6b12)
2007-11-09 09:52:58 +01:00
metze
419c600897 nss_wrapper: add support for groups and return EPERM in initgroups()
The NSS_WRAPPER_GROUP envvar should point to
the /etc/group style file.

Note: NSS_WRAPPER_PASSWD and NSS_WRAPPER_GROUP both
      need non-empty values to enable NSS Wrapper
      support.

metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25836 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit 6abc84a564682f2b3dda314b5a08816ef99ac517)
2007-11-09 09:52:57 +01:00
metze
d2397d7b1b nss_wrapper: add support for passwd accounts
The NSS_WRAPPER_PASSWD envvar should point to
the /etc/passwd style file.

metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25835 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit 36af3e864c2698b2f4ffd1bc3c873f1e4f8b718b)
2007-11-09 09:52:57 +01:00
metze
6fb510d3f3 nss_wrapper: add lib/nss_wrapper skeleton
metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25834 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit 0924b0c8de70c0b84785cf6885f6aab325fc9b8e)
2007-11-09 09:52:56 +01:00
jelmer
745b458cee Try to fix building dso's on hpux with gcc
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25886 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit 4642af8026f086488672a51a0ecce2603e65f4ce)
2007-11-09 09:31:26 +01:00
jelmer
2c50c6143b Try to get some more flags right.
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25880 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit ccb39b18448376b094680fa927c60159cc5ec566)
2007-11-09 09:30:28 +01:00
jelmer
c0511ba7d3 Add libreplace macro for soname flags.
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25877 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit 81167d8f38e11423bcde5305f9e77ec268b0cf2e)
2007-11-09 09:29:16 +01:00
jelmer
b26cc8be3d Try to fix the build on some HPUX machines.
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25875 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit 8d1f54f45d9b8278e5e031d016b1e7b44d3b1a22)
2007-11-09 09:27:03 +01:00
Jeremy Allison
3f006ca95a More pstring/fstring removal.
Jeremy.
(This used to be commit 7646f4b284403c18b22ca5cc7de4a57ba571183e)
2007-11-08 19:00:10 -08:00
Jeremy Allison
5f4693d8f8 Remove more pstring/fstrings.
Jeremy.
(This used to be commit 7a1de5b44e84a7474e78518c6ba33b3fedc42b5f)
2007-11-08 18:50:07 -08:00
Jeremy Allison
7f97c6b96c Remove unneeded variable.
Jeremy.
(This used to be commit c21bc756e36581d3adc770bc2b773b5cf9bf11d0)
2007-11-08 18:01:00 -08:00
Jeremy Allison
214bb0f119 Fix case where we have no dns domain name. Return a talloc of "".
Jeremy.
(This used to be commit ab8934844a8ae08657769ce1787c32f14a7eb745)
2007-11-08 17:58:55 -08:00
Jeremy Allison
d40e47db4b Remove more fstring/pstring bad useage. Go talloc !
Jeremy.
(This used to be commit 2a0173743d2cf615d52278f3dd87cc804abe2d16)
2007-11-08 17:25:45 -08:00
Jeremy Allison
976b0ec487 Merge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test
(This used to be commit d9335456d23271a4b15b97d24f1b263700a3b9df)
2007-11-08 15:13:41 -08:00
Stefan Metzmacher
9ba9af75d2 libreplace: we need to link to make sure the functions are available
metze
(This used to be commit 130de20d646fe14f494b021a98d6855c7b5b2a1a)
2007-11-08 12:20:16 +01:00
Jeremy Allison
e501c0cd44 Unify the name and addr cache for client_name to
make threading easier ultimately.
Jeremy.
(This used to be commit 48e0725cd6bb976ca799e6b8464c94aeffb1672b)
2007-11-07 12:48:58 -08:00
Jeremy Allison
1ee8607d4a Fix tdbtorture build.
Jeremy.
(This used to be commit c14db81be5212dfa6fbcf8bfdcf725d7db3376ca)
2007-11-06 23:13:11 -08:00
Jeremy Allison
99fd77f4ae Fix const warning.
Jeremy.
(This used to be commit ecc2555197860ae56726724ec824fc149d2d831c)
2007-11-06 23:09:31 -08:00
Jeremy Allison
3809490dd0 Keep the tdb code in sync with Samba4.
Mainly this is the svn changes :

------------------------------------------------------------------------
r23238 | tridge | 2007-05-30 01:15:49 -0700 (Wed, 30 May 2007) | 6 lines

merged transaction lock changes from ctdb

this ensures that having the global lock also implies the transaction
lock

------------------------------------------------------------------------
r22832 | tridge | 2007-05-13 18:00:06 -0700 (Sun, 13 May 2007) | 3 lines

merged the latest tdb changes from ctdb to Samba4

Jeremy.
(This used to be commit ab11c0055761e97ba32a8c3ec4fa6f8763a262cd)
2007-11-06 22:57:35 -08:00
Jeremy Allison
d8f3c9d078 Fix bug where tdb lock call interrupted with
an alarm sig would not terminate and could lead
to runaway smbd processes.
Thanks to Dave Daugherty @ Centrify for pointing
this out to us.
Jeremy.
(This used to be commit ef8da1698371c95495add53df81a978df709c88d)
2007-11-06 21:47:57 -08:00
metze
4930bab6b8 libreplace: we should only have one location where we check for required functions
metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25864 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit 760f24f10cbea7ce22acd0772fb5b125f718d129)
2007-11-06 09:38:59 +01:00
metze
cfb20163a5 libreplace: we need include <unistd.h> before nss_wrapper.h
metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25863 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit 20ec1f472566bbc570fa138cce5dbd0407aef530)
2007-11-06 09:38:59 +01:00
jelmer
caa6e6f544 Fix export dynamic for HPUX.
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25861 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit 4d02b1344b76c6147944188161f73ad3917b8abc)
2007-11-06 09:38:59 +01:00
jelmer
29725af3be Remove flag that causes problems on some hosts.
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25860 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit 57bea8cd02cb7964bbb64ba26b83c372f0e12b94)
2007-11-06 09:38:59 +01:00
jelmer
e759ca8492 Wrap native HPUX functions in dl implementation.
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25859 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit 0ec16729299887b4a80a7e24fbd1750632276691)
2007-11-06 09:38:58 +01:00
jelmer
29303bd12e Check for HPUX dl functions.
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25855 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit 9f862e9faf0fa9cddfcc2f87d9f247082718b3e0)
2007-11-06 09:38:58 +01:00
jelmer
a2cf98daf0 Move SHLIBEXT determination into a test as well.
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25852 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit 322cf8002bab1e449616d9fcea0bd4c9535cfe6a)
2007-11-06 09:38:58 +01:00
jelmer
b8fdd9e383 Move system-specific ldflags checks to libreplace so they can be used by ldb.
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25851 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit 63b7690335360a073dc1ae111f740a7934f1a92f)
2007-11-06 09:38:58 +01:00
jelmer
1622ab608d Add macro for picflag.
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25850 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit 48c70f604071fcf7c0887fe0136bdc2dda4c8ff4)
2007-11-06 09:38:58 +01:00
jelmer
0627ebc620 Add configure test for -Wl,--export-dynamic.
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25846 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit 4904af51cdccd4e52d2805bd62f39276447c4646)
2007-11-06 09:38:57 +01:00
metze
f16544ad3b libreplace: include nss_wrapper.h if NSS_WRAPPER is defined
metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25838 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit 809fee4bef66eb8b8687f88257c0d6f77d3b4063)
2007-11-06 09:38:57 +01:00
Jeremy Allison
36441da424 Remove the horror that was the global smb_rw_error.
Each cli struct has it's own local copy of this variable,
so use that in client code. In the smbd server, add one
static to smbd/proccess.c and use that inside smbd. Fix
a bunch of places where smb_rw_error could be set by
calling read_data() in places where we weren't reading
from the SMB client socket (ie. winbindd).
Jeremy.
(This used to be commit 255c2adf7b6ef30932b5bb9f142ccef4a5d3d0db)
2007-11-05 11:12:56 -08:00
Jeremy Allison
536a9e7922 Don't alloc struct iface_struct nics[MAX_INTERFACES]; (128 entries)
on the stack - use talloc.
Jeremy
(This used to be commit b5e37af251a26648b0e4f59ca548c5374399175e)
2007-11-04 22:20:04 -08:00
Jeremy Allison
6a2a27076f This should really be a cond_set_smb_read_error().
Jeremy.
(This used to be commit 5ab76b58c00dde89b56060482f5cdc5d0c6c56cb)
2007-11-04 22:14:19 -08:00
Jeremy Allison
85ff0b2d75 Don't use 0 when we mean SMB_READ_OK.
Jeremy.
(This used to be commit 08ee4314a9e25700288f4ea1af22ee1732dfea61)
2007-11-04 22:12:31 -08:00
Günther Deschner
a7be4d50d4 Merge commit 'origin/v3-2-test' into branches/upstream
(This used to be commit d0bf0ad2ae9a2bff4cec8c7e801a22c624b874ae)
2007-11-05 03:39:18 +01:00
Volker Lendecke
2d73e86cce Remove unnecessary code
SAFE_FREE checks for NULL anyway, and SMB_STRDUP panics on failure
(This used to be commit 4cdebda39b9b1790fc5c7df3dc81bfb46b047ad7)
2007-11-05 03:40:31 +01:00
Günther Deschner
e83e0f3684 Display sec ace flags.
Guenther
(This used to be commit 52bf835c5e9b2fa759c61bf4a7a364eeaeae6043)
2007-11-05 03:27:13 +01:00
Jeremy Allison
5b0b4f23ef Remove most of the remaining globals out of lib/util_sock.c.
I have a plan for dealing with the remaining..... Watch
this space.
Jeremy.
(This used to be commit 963fc7685212689f02b3adcc05b4273ee5c382d4)
2007-11-03 23:20:10 -07:00
Jeremy Allison
51a0354d75 Remove more static data from lib/util_sock.c and
callers.
Jeremy.
(This used to be commit 35aaa36f82c70964cee5d0778eb04547b226dd3f)
2007-11-03 22:34:46 -07:00
Jeremy Allison
56aa420195 Missed one case where I need to pass down addrlen.
Jeremy
(This used to be commit 62b5ca3334598aec3304d21118f67702afc3854a)
2007-11-03 20:27:59 -07:00