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

933 Commits

Author SHA1 Message Date
Jeremy Allison
8f91108faf Syncup between 2.2 and HEAD.
Jeremy.
(This used to be commit 39d4131a4571c9c7a96bdc2f6cd6be80a6c330af)
2001-06-27 17:26:29 +00:00
Andrew Tridgell
5ac133bac7 on sco2 socketpair_tcp needs a bind
(This used to be commit d8e5409ebb883844d9a1abc9840af1809957a444)
2001-06-27 13:58:44 +00:00
Andrew Tridgell
c6f647dfd9 handle EISCONN in socketpair_tcp
this should get the auto-tests working on IRIX
(This used to be commit 87f90d48d857828a6ed12bdc58d0d881be45dfce)
2001-06-27 10:44:14 +00:00
Jeremy Allison
9f447adbec Ensure numeric group or user names don't get misinterpreted.
Jeremy.
(This used to be commit e88da9dcc79801028127bcbe328af001b58e653a)
2001-06-25 21:29:33 +00:00
Andrew Tridgell
413ad23faf make sure we have BOOL in autoconf usage of util_sec.c
(This used to be commit 72f63f5144ececdef31c659ab645eb71a88943b5)
2001-06-25 01:20:47 +00:00
Andrew Tridgell
8b79a473fa - make the regresison test mode code build in by default. This should
allow us to have test targets without special configure options
- fixed make proto so that it actually does something
(This used to be commit 55109a752578e9389d853cb27ec17c2114ecff77)
2001-06-25 00:46:34 +00:00
Simo Sorce
d56e091694 fix compiler warnings
(This used to be commit 7420e2f7898f1d141ba2af3eda07a67862fee842)
2001-06-23 14:13:32 +00:00
Jeremy Allison
37eb0d6c74 Added other_safe_chars to alpha_strcpy(). Needs testing but is a better
fix for the problem.
Jeremy.
(This used to be commit e059fffd03a1382fb2b7059b6de369d9fc765a17)
2001-06-23 07:22:16 +00:00
Jeremy Allison
17d5d660b5 Fix for race condition found by Herb where we can end up with a NULL dbf.
Jeremy.
(This used to be commit 5cbb2106735ad0533198a83d62541cabd7beed20)
2001-06-22 19:46:38 +00:00
Andrew Tridgell
868d010aa1 added the ability to test smbd safely as an ordinary user. The way it works is
that libsmb/ creates a local tcp socket then launches smbd as a subprocess
attached to that socket. smbd thinks it is being launched from inetd.

to use it do the following:

- compile with -DSMB_REGRESSION_TEST
- run like this (also works with smbtorture etc)
    export SMBD_TEST=1
    export LIBSMB_PROG=bin/smbd
    smbclient //server/share -Uuser%pass

obviously you need to setup a smb.conf etc. Using --prefix to configure
is useful.

The aim of all this stuff is to add a decent set of regression tests
to the build farm, so we know if smbd actually runs correctly on all the
platforms, not just builds. We can run smbtorture, masktest, locktest etc,
plus a bunch of smbclient scripts and any new tests we write.

This doesn't help much with nmbd (at least not yet) but its a good start.
(This used to be commit 7e8e6ae9a88c4d2587eb4e7f0501cd71bd36ebb2)
2001-06-22 15:14:45 +00:00
Tim Potter
147af5f318 Spelling fix.
(This used to be commit 5f4889beb9311fd3912c3dfccf18fc9ab22b964c)
2001-06-22 01:58:19 +00:00
Andrew Tridgell
1cce779d77 the BAD_PTR idea in talloc.h is actually a bad idea - it means callers have no way of telling if the call really failed
(This used to be commit 7a96ca313e2f6b5ad8a713babd3cac0bbcc4c399)
2001-06-22 01:56:16 +00:00
Andrew Tridgell
91b8a8d1d2 next_token() was supposed to be a reentrant replacement for strtok(),
but the code suffered from bitrot and is not now reentrant. That means
we can get bizarre behaviour
i've fixed this by making next_token() reentrant and creating a
next_token_nr() that is a small non-reentrant wrapper for those lumps
of code (mostly smbclient) that have come to rely on the non-reentrant
behaviour
(This used to be commit 674ee2f1d12b0afc164a9e9072758fd1c5e54df7)
2001-06-21 09:10:42 +00:00
Simo Sorce
82970b833c initial support for paramter type P_LIST
it will avoid problems with lists being longer than 1024 bytes
just now only ip list parameters have been converted to the new type
(hosts allow, hosts deny, ssl hosts, ssl hosts resign)
(This used to be commit e1572f85d6247b760db10825b2fa688d7ed50bd3)
2001-06-20 16:54:32 +00:00
Jeremy Allison
809c025878 Added patches to remove Linux specific XFS ACLs. These are now handled by the
generic Linux ACL code.
rpc_server/srv_samr_nt.c: Don't delete a policy handle before it's created.
Jeremy.
(This used to be commit db5b82e53a7061c4764d39ceb3df82e706aad42f)
2001-06-18 20:27:35 +00:00
Tim Potter
7b01c627c6 Removed silly Get_Hostbyname() wrapper as DNS names are case-insensitive
and the use of this function only increased timeouts when Samba queries
a broken DNS server.
(This used to be commit 720fea53603b2f99153709e6717ca930ab60ca9f)
2001-06-18 05:42:18 +00:00
Jeremy Allison
4248d14ff6 Fix from TAKAHASHI Motonobu <monyo@samba.gr.jp> for multibyte conversion
problems.
Jeremy.
(This used to be commit 24eea8a309ff0151277b9537a5c00321041e70d3)
2001-06-12 18:20:26 +00:00
Jeremy Allison
2f99c0e602 lib/util_getent.c: removed debug code.
smbd/posix_acls.c: Attempt to fix the "lose default acl" problem in Solaris.
Needs testing.
lib/sysacls.c: Typo fix.
Jeremy.
(This used to be commit d989f8bd3e1524183a24fb67be1af05b3289f648)
2001-06-12 01:49:30 +00:00
Jeremy Allison
3fc8c04cc2 Found & fixed memory bug. num+1 * sizeof(x) != (num+1)*sizeof(x)........
Jeremy.
(This used to be commit e0f88cabfc5ef480e7f8a7fecd2d12a1b4371a2a)
2001-06-11 22:06:11 +00:00
Jeremy Allison
da9963e66b Fixed typo in Solaris and UnixWare ACLs.
Jeremy.
(This used to be commit bd750def132d9a787728dc35c68df9166a15fbd7)
2001-06-09 03:10:27 +00:00
Jeremy Allison
f63ee18c68 *Wonderful* patch from Andrew Bartlett that will help ensure tdb's are
cleaned on clients abending connections. Thanks Andrew !
Jeremy.
(This used to be commit 1b3977c5367a0b713b194f369abd9872ae01ac2a)
2001-06-09 01:38:54 +00:00
Jeremy Allison
c7b67c26e2 Herb's IRIX fix for deleting default ACLs.
Jeremy.
(This used to be commit 81b5a628d1471f71964b21817b9bec1ac80585c4)
2001-06-08 21:27:46 +00:00
Jeremy Allison
96686f8f55 AIX has no default acls.
Jeremy.
(This used to be commit 5853f1dc423a25276dafe7f3d284db534bfb41ff)
2001-06-08 19:56:15 +00:00
Jeremy Allison
b7fb885b81 Added sys_acl_delete_def_file for UnixWare and Solaris from
Michael Davidson <michael_davidson@pacbell.net>.
Jeremy.
(This used to be commit 5668512ffa608810be0622832c9dbc7a2fda5a8f)
2001-06-08 19:55:47 +00:00
Jeremy Allison
a80a96b745 Added sys_acl_delete_def_file() - needed as part of NT ACL editing fix.
Will add changes for other supported ACL systems shortly (Herb, I may
need help with the IRIX one).
Jeremy.
(This used to be commit a8532b193d1fe123155a69dd70e433f8fc312bfc)
2001-06-08 19:29:57 +00:00
Jeremy Allison
e8e07a26eb Changes to use new genrand code that got missed while I was in Japan.
Jeremy.
(This used to be commit 5a15831b9ae79ce1ce34d5574fe5da114d184e45)
2001-06-06 22:04:26 +00:00
Andrew Tridgell
05fc3e578c use LDSHFLAGS not -shared in several places
(This used to be commit 8ec9c87b5d1a7dae17d5b1a30f58effaf5e69e4b)
2001-06-04 05:13:59 +00:00
Tim Potter
6dce5c47c6 If a debug class was explicitly set to zero the debug system would not
recognise it as there was no distinction made between zeroing a debug
class and just not setting it to anything.  I've added a
debuglevel_isset array in parallel with the debuglevel_class array to
fix this.

Added a couple of new debug classes which I might start filling out
to get smb, rpc header and rpc marshall/unmarshalling debugs tidied
up.

Fixed a bunch of cut&paste bugs in include/debug.h

Modified smbcontrol and the messaging system debug handler to like the
debuglevel_isset stuff.
(This used to be commit 391e7caf76cbc22021629ef0ec5e0c32806edfd7)
2001-06-01 12:04:44 +00:00
Jeremy Allison
0b1f72eda3 Rename bzero -> memset.
Check returns from *all* mallocs (including strdups).
Jeremy.
(This used to be commit 6594a59263c9ec8f62d23f3aa1b56051eefc2f88)
2001-05-31 14:41:53 +00:00
Tim Potter
1744a49cae Fixed compiler warning.
(This used to be commit adb61490af7bbd5f028892692bfe831af8c79f23)
2001-05-29 07:34:51 +00:00
Simo Sorce
bbf5ea221a 4 new functions to retrieve single linked list of group and passwd entries
+ a fix to an infinite loop in srv_samr_nt.c caused by misuse of
setgrent/getgrent/endgrent solved by these new functions
(This used to be commit 97dbb54a13e2285f1905ee1ec9aafeebdaee8917)
2001-05-29 07:34:01 +00:00
Jeremy Allison
9ff6634db9 Fixup the large_writex problem (a large_writex can send a full 64k of data,
we already have space for this we just need to understand the length correctly).
Jeremy.
(This used to be commit 19145bae720bbcc32dcab380c62a33d1f0e3eef0)
2001-05-24 19:28:22 +00:00
Jeremy Allison
00cdd8cfa2 Fix for random stream generator.
Jeremy.
(This used to be commit b2867ddfa26ffbc94d022d88b849ef58fd1cc788)
2001-05-24 18:24:54 +00:00
Jeremy Allison
10211f53f9 Check sizes of data entries in connections.tdb before deciding they're crecs...
We will need this when we use finer grained locking for max connections.
Jeremy.
(This used to be commit c6cd42a6791e26174eb795fd08ddbbd797e5a9cf)
2001-05-15 18:12:02 +00:00
Jeremy Allison
495aa4c28a string_hash() should be static. hash_clear() should be void.
Jeremy.
(This used to be commit e8ab89fbc0b6cec9f3e80fe4327992b2ec7a4a40)
2001-05-12 20:15:39 +00:00
Tim Potter
c61e75e3e5 Added talloc_strdup() funcion.
(This used to be commit eea43a5a916eb7f4bef6817ce0aa8051f9145b18)
2001-05-11 07:03:13 +00:00
Jeremy Allison
91febc38e3 Needs to be >=, not just >.
Jeremy.
(This used to be commit fa6a5bf94a3716c0554e2bcbe0eb4b0912f15604)
2001-05-10 23:55:33 +00:00
Jeremy Allison
e0f5d84e9d Fix for problem with "" string in trim_string(). Pointed out by Ben Winslow <rain@bluecherry.net>.
Jeremy.
(This used to be commit df2e306171f0a71af77dbaafc7ccbf78e27befb8)
2001-05-10 23:17:46 +00:00
Tim Potter
281629ac06 Added sid_peek_rid() function to return the rid of a sid. Saves mucking
around with copying a sid to a temporary variable and using sid_split_rid().
(This used to be commit 9ee43d61be1284b72fd04054c44545847c73120f)
2001-05-10 00:48:06 +00:00
Tim Potter
9051f1e2c7 Bumped up debug level on set socket options from 3 to 5.
(This used to be commit f0b8ff4eeb3f276c37d062dbd25f7c8b0a02d593)
2001-05-10 00:35:24 +00:00
Tim Potter
b50d072529 Hey what happened to my debug messages? Early exit from reopen_logs()
if using stdout_logging.
(This used to be commit 831b0983bd799fd73de18921f09991a1647ec482)
2001-05-07 23:46:48 +00:00
Andrew Tridgell
9d5348c758 removed need for scandir in client.c
fixed possible bug with readdirname on systems with NAMELEN != strlen
(This used to be commit 78f448b7d4b83f569d27e0abf6b1759c43ff21f3)
2001-05-07 05:19:52 +00:00
Tim Potter
a36f9250e7 Preliminary merge of winbind into HEAD. Note that this compiles and links
but I haven't actually run it yet so it probably doesn't work.  (-:
(This used to be commit 59f95416b66db6df05289bde224de29c721978e5)
2001-05-07 04:32:40 +00:00
Andrew Tridgell
fe6b398a79 fix interfaces.c for aix 3.2.5
(This used to be commit a69532ffde761453f3d9189be2fbf1036c2ed196)
2001-05-07 03:21:23 +00:00
Tim Potter
3762d48404 Some versions of readline don't have rl_completion_func_t. )-:
Spotted by http://build.samba.org/
(This used to be commit da5a0f5c5b0917148fb6b668d4316aa4924708a1)
2001-05-07 02:03:32 +00:00
Tim Potter
3bb92410a4 Fixed compiler warning.
(This used to be commit 063c2dea920dbf415e22d0359baa7b36bf513f09)
2001-05-07 01:08:41 +00:00
Andrew Tridgell
9074322761 replace modf so we don't need the math library
(This used to be commit 79c0d24a3092098d3d8e58ebe07cf61db7d898e5)
2001-05-06 15:19:25 +00:00
Jeremy Allison
c6e8e75a64 Merging Gerald's PDC SAM name fix.
Jeremy.
(This used to be commit d31799850440c6c2267a4edb217d447df75aab5a)
2001-05-03 02:50:11 +00:00
Jeremy Allison
aac630b382 Had to add a "pam password change" parameter (defaults to "off") and inlined
the pam password change code to ensure that existing and working password
chat scripts don't break with 2.2.1. PAM password changing has to be explicitly
requested.
Allowed wildcards in pam password change matching (matches password chat
script matching). Had to add const (sorry Tim :-) to ms_fnmatch() to
stop warnings. Don't worry - the const changes are isolated and don't
cause any other warnings :-).
Jeremy.
(This used to be commit 47b4d82536c09bffe3a0d9917fa31d935f1be7d8)
2001-05-02 23:32:09 +00:00
Jeremy Allison
75da59c8ad Fixed password entry caching bug pointed out by Elrond.
Jeremy.
(This used to be commit dc31b47deda188cb88288a8f33dc09faed9b2c41)
2001-04-30 22:56:52 +00:00