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

1430 Commits

Author SHA1 Message Date
Andrew Tridgell
9c68f9064d a working timegm() function for systems that don't have it
(This used to be commit 6efdd54d063043cac2fe151231ac1999ade25704)
2002-11-23 06:39:04 +00:00
Jeremy Allison
f023d6129b Lots of fixes for error paths where tdb_fetch() data need freeing.
Found via a post from Arcady Chernyak <Arcady.Chernyak@efi.com>.
Jeremy.
(This used to be commit 19f86f1f72aca924e9e320e20a175b5d21de45ad)
2002-11-23 02:52:38 +00:00
Andrew Tridgell
1abaa7c9d3 more %U fixes for head
(This used to be commit ea3787d819df14f8b451780a55d2bf76dc4030ef)
2002-11-20 00:39:57 +00:00
Andrew Tridgell
18e55a69ff a better for for using %U in smb.conf
this follows the method used for remote_machine and also fixes the
problem of anonymous connections clobbering the string
(This used to be commit 9ead4fc3c3f8b83f03c762a4dab77a64aabccbf9)
2002-11-19 23:44:24 +00:00
Tim Potter
4cb48b9154 Renamed uuid_to_string() to guid_to_string() to avoid conflict with OSF DEC
headers.
(This used to be commit d813997c5a66f786b191459de0dd030f4a1c539e)
2002-11-17 01:14:30 +00:00
Andrew Bartlett
d983ee8800 Add const to DEBUG() macro.
(This used to be commit 43020bb4e61e3b44c2637e49f9e98222262f09b1)
2002-11-15 13:57:25 +00:00
Jelmer Vernooij
3dc6b9e5f0 Move 'weird' character set into new 'developer' module
(This used to be commit afbff33eba7edd98329114b5113b3360cd6dfcc6)
2002-11-13 19:07:34 +00:00
Jelmer Vernooij
5988d5e92a Add a DEBUG() that gives the number of successfully loaded modules - useful for debugging
(This used to be commit 612ea35ab016c56e6ad9886283901bc7b417337a)
2002-11-13 13:47:12 +00:00
Jeremy Allison
250c980119 Removed global_myworkgroup, global_myname, global_myscope. Added liberal
dashes of const. This is a rather large check-in, some things may break.
It does compile though :-).
Jeremy.
(This used to be commit 82b8f749a36b42e22186297482aad2abb04fab8a)
2002-11-12 23:15:52 +00:00
Jelmer Vernooij
b6f84a37a9 Don't throw out WEIRD - yet (I committed my local changes together with my last fix. D'oh!)
(This used to be commit 5191719eeec7062118da2be3aefe35d065e97900)
2002-11-12 18:11:00 +00:00
Jelmer Vernooij
7b8697dccb Fix segfault with high debug levels
(This used to be commit a20676bc05f50bb89a55e67efef579eaaeac3f72)
2002-11-12 18:07:51 +00:00
Jelmer Vernooij
a3ccf4ae6d Add smb_register_charset() and use it
(This used to be commit 8b654658759a145c5c8aabb3c82220a70f70c3f7)
2002-11-12 15:18:12 +00:00
Jeremy Allison
0e8dc732ae Fix all returns to be size_t (they are all unsigned). Fixup strlen being
done on ucs2 strings.
Jeremy.
(This used to be commit 205e8f03015dd533ae62753f2098505f1231e3e4)
2002-11-11 22:12:48 +00:00
Simo Sorce
10968f47cf consolidate error mapping functions into a single file
(This used to be commit 80086728f2b0d5d56a8ed9e427cba36898d68fc7)
2002-11-10 04:16:59 +00:00
Andrew Bartlett
c501ac2bfa Compleatly remove support for logfile truncation. All logs are opened for
append writes.

(blessed by jra)

Andrew Bartlett
(This used to be commit 81633064dd196c40541ecece8def51745f514646)
2002-11-08 23:05:34 +00:00
Gerald Carter
4703553378 patches from Urban
(This used to be commit da269a73edb7f637b1e1f8b3dafe677f46f66f85)
2002-11-08 18:44:57 +00:00
Tim Potter
075a9fe96f Fix compiler warnings.
(This used to be commit 3a68613e934e25f2ccfbf5afa5e26b5f47b40a53)
2002-11-06 20:13:02 +00:00
Jelmer Vernooij
e79de17061 Remove dummy function I used for testing
(This used to be commit 15c71551db038071d981ca4e37ef505004e79b89)
2002-11-02 16:40:14 +00:00
Jelmer Vernooij
8a6b05d36d Add more options to popt_common and use them. Current ones are:
-V Version information
 -n Set netbios name
 -l Set directory to store log files in
 -d Set debuglevel
 -s Load specified configuration file
 -O Set socket options
(This used to be commit 1602d5894947b59fd36c161053a66c0afe2c959c)
2002-11-02 16:16:15 +00:00
Jelmer Vernooij
fb6c6ec09e add smb_load_modules() to load a list of modules - does this function look ok ?
(This used to be commit a82dbb3c22e6cb2096efb87c12a6006642806aac)
2002-10-31 18:08:45 +00:00
Jim McDonough
b1598ff699 Fix build. Don't use BSD setenv. Use POSIX putenv.
Jeremy, it wasn't me!!!!!!
(This used to be commit 00d4e5c67b8a3b8eafa56fd46fbaf4922030dd81)
2002-10-30 18:18:25 +00:00
Jelmer Vernooij
9dcba81933 use sys_dlopen instead of dlopen (thanks to jra for noticing)
(This used to be commit 86eb0a25b1df8ca25872f9846a74d0f13a4ad045)
2002-10-30 17:50:36 +00:00
Jelmer Vernooij
04d21551e1 - Remove RTLD_GLOBAL
- make smb_load_module() return the return value of init_module()
(This used to be commit a8d2dd8d009797486105188f8fdb898a65bb25b0)
2002-10-30 12:07:49 +00:00
Andrew Tridgell
809f740166 added a timegm() function for systems that don't have it
(This used to be commit 732bc4519f1119100607cc84400e8f84e0c0ba9d)
2002-10-30 12:03:40 +00:00
Jelmer Vernooij
1f40ad5813 Add initial vesion of new module system
(This used to be commit b5d05d3ec6808465d27e15db2a9ff48804e2e78e)
2002-10-30 11:52:36 +00:00
Jelmer Vernooij
cca032f1cd Fix bug in '-d'
(This used to be commit 8c15db105addbafd822d96d29ff1692566b92267)
2002-10-26 14:49:30 +00:00
Jeremy Allison
7689a9c969 First cut of new ACL mapping code from Andreas Gruenbacher <agruen@suse.de>.
This is not 100% the same as what SuSE shipped in their Samba, there is
a crash bug fix, a race condition fix, and a few logic changes I'd like to
discuss with Andreas. Added Andreas to (C) notices for posix_acls.c
Jeremy.
(This used to be commit a81d700ae9c82d4b7ea631ab7862162a2ed3d512)
2002-10-23 01:22:45 +00:00
Andrew Tridgell
66ad44b588 reverted an incorrect fix. What I was trying to do was fix a problem
with filenames with spaces in mangle_hash.c but the real problem is
that mangle_hash.c assumes that the set of valid characters for 8.3
names is the same as the set of valid characters for long names. Thats
an invalid assumption, with space being the obvious example.
(This used to be commit e0065f4db4a1cfae03a3bb86e5cfea9c45dfa1c3)
2002-10-21 03:47:51 +00:00
Andrew Tridgell
d51c1e333b a space is a standard valid character in a filename
(This used to be commit 0db79d4a379a502362c230a9019d5d71f5af8e0e)
2002-10-21 03:40:18 +00:00
Tim Potter
a07df8249d Bugfix for pidfile_create() from Kelledin.
(This used to be commit 4808a95f5f4536774d41bebca76660f010069117)
2002-10-21 00:05:01 +00:00
Andrew Bartlett
d00d56faea It seems that I'm meant to be using the helper function here, not the struct
directly...

Andrew Bartlett
(This used to be commit 0abeb8725e8ea53a468d6004457bb7fa89a0f8b2)
2002-10-18 22:27:55 +00:00
Jim McDonough
e042a93cce Format objectGUIDs on ads dumps.
(This used to be commit 7eaf7e7115c75e682b1b9368c6f28c60429885e5)
2002-10-18 20:11:29 +00:00
Jeremy Allison
e13dd2f302 Start to merge the new ACL mapping code from Andreas Gruenbacher <agruen@suse.de>.
Jeremy.
(This used to be commit f6103f866a5e698ab55fdab1444a14e3d8da16bb)
2002-10-18 19:46:28 +00:00
Andrew Bartlett
4ac9ccfde4 Nice *big* patch from metze.
The actual design change is relitivly small however:

It all goes back to jerry's 'BOOL store', added to many of the elements in a
SAM_ACCOUNT.  This ensured that smb.conf defaults did not get 'fixed' into
ldap.  This was a great win for admins, and this patch follows in the same way.

This patch extends the concept - we don't store values back into LDAP unless
they have been changed.  So if we read a value, but don't update it, or we
read a value, find it's not there and use a default, we will not update
ldap with that value.  This reduced clutter in our LDAP DB, and makes it
easier to change defaults later on.

Metze's particular problem was that when we 'write back' an unchanged value,
we would clear any muliple values in that feild.  Now he can still have his
mulitivalued 'uid' feild, without Samba changing it for *every* other
operation.

This also applies to many other attributes, and helps to eliminate a nasty
race condition.  (Time between get and set)

This patch is big, and needs more testing, but metze has tested usrmgr, and
I've fixed some pdbedit bugs, and tested domain joins, so it isn't compleatly
flawed ;-).

The same system will be introduced into the SAM code shortly, but this fixes
bugs that people were coming across in production uses of Samba 3.0/HEAD, hence
it's inclusion here.

Andrew Bartlett
(This used to be commit 7f237bde212eb188df84a5d8adb598a93fba8155)
2002-10-12 03:38:07 +00:00
Simo Sorce
650e0274a1 try to put every security descriptors related definitions in the same file.
also try to uniform names to a clean scheme.

first part.
(This used to be commit a123e05877caf90c28980be2d84b1d0b46e4fd21)
2002-10-06 23:53:34 +00:00
Jelmer Vernooij
7ee8de012b Add more common options to popt_common - and start using
the ones for debuglevel and configuration file in pdbedit
(This used to be commit cb0d03a393d9009c3e16b9d05d88c171de9a9414)
2002-10-05 05:43:44 +00:00
Jeremy Allison
9c94d1a2f7 Add a timeout to tdb_lock_bystring(). Ensure we never have more than
MAX_PRINT_JOBS in a queue.
Jeremy.
(This used to be commit bb58a08af459b4abae9d53ab98c15f40638ce52b)
2002-10-04 22:53:30 +00:00
Jelmer Vernooij
f7832e935f Remove useless spaces - this broke make proto
(This used to be commit 0341fb45829c5d13a7e02daaa9b960fdff492323)
2002-10-04 20:14:41 +00:00
Andrew Bartlett
08387abd7d Another patch from Steve Langasek <vorlon@netexpress.net>, again from the
Debian patchset.

The idea is to still allow DNS domains to be specified in 'hosts allow' and
'hosts deny' without making the admin set 'hostname lookups' in their smb.conf.
His concern is about upgrades.

This has been designed not to change the value of %M.

Andrew Bartlett
(This used to be commit f428ee98d83a55922c991b0eeddd47891b80d918)
2002-10-03 03:31:41 +00:00
Jeremy Allison
b69d0e39bc Added const. Anal formatting fixup.
Jeremy.
(This used to be commit ae4bf35f942de6025d3f364d599cca9720734a19)
2002-10-02 19:11:59 +00:00
Jeremy Allison
a9ccc38c08 Fix Solaris sendfile detection. Add small fixes to sendfile code.
Jeremy.
(This used to be commit ef7bcaf1b7e1ca073b27a8836c6aa86e112b5bee)
2002-10-01 05:55:25 +00:00
Jeremy Allison
7dc8aa0854 Added Solaris sendfile patch + configure tests from Pierre Belanger <belanger@yahoo.com>.
Jeremy.
(This used to be commit 8db4d46dc983ce37814fb375d61951b6220a4c61)
2002-09-30 21:14:46 +00:00
Jeremy Allison
09507f5315 Don't zero out numwritten before using.... Found by Pierre Belanger belanger@pobox.com
Jeremy.
(This used to be commit a7009ad5c8aaae350b2521b8c0cd2538e561618a)
2002-09-30 05:19:43 +00:00
Andrew Bartlett
6b1367a7bc Fix the compile issue in bin/samtest, and make the 'system' token just have the
System sid.  This avoids comparing with ACEs that we don't yet support in the
ADS Domain security descriptor.
(This used to be commit ace7738e123b28f69c290f9f1de50011d230e14b)
2002-09-30 02:28:28 +00:00
Andrew Bartlett
df316e3cd9 Remove sam/api.c.
In order to reduce complexity, this patch removes the upper layer of the SAM
API.  Also, we remove the function pointers on the sam context - there really
is no point making these replaceable - that's for the modules.

Move a number of functions in include/interface.c around to allow for use of
'static' and to keep the external API in one chunk, at the bottem.  All these
functions were renamed to remove the context_sam -> sam

Consequential changes in the samtest module, and back out metze's change for
ACB filtering, becouse I think it belongs in the SAM backeds.  (But I will take
debate on this one).

Changes to the lib/util_sid.c code to create a 'system' token, and make it a
SAM_ASSERT() enforced requirement to have a token on those calls that specify
it.  samtest now uses this.

We should have a samtest call to set your own token.

We also need to extend our se_access code to cover the things that Win2k is
returning in it's access tokens.  Currently our system token doesn't pass, due
to unexpected flags.  (When running sam_ads against Win2k)

Andrew Bartlett
(This used to be commit b9036900d0bb227ec16c6a5792c18ef943dcf015)
2002-09-29 06:07:58 +00:00
Andrew Bartlett
0a23b0b4d5 Add const.
(This used to be commit f7dd66e88dba947a167d9a14c96810854dfc5c9d)
2002-09-28 12:11:19 +00:00
Andrew Bartlett
3cfd42e83b Add const.
(This used to be commit 0f5d18626bebaa0621ee703ea2cc8bf47e14ea3e)
2002-09-28 00:12:49 +00:00
Andrew Bartlett
5f662896aa Vance picked up a pile of typos etc at the CIFS confernce, and finally got them
off his laptop :-)

Andrew Bartlett
(This used to be commit df8f0338fae01e5edc176708c2b798c67c2e8c36)
2002-09-27 05:29:43 +00:00
Andrew Bartlett
55b6cebbd4 Some small cleanups to the libads code (mainly error checking), and give a
sane prototype for the push_utf8_allocate code.

Andrew Bartlett
(This used to be commit ce00a3238ed8a82639c4d0ee3e960f7000b1a7b0)
2002-09-27 03:05:20 +00:00
Andrew Bartlett
ad514000db Patch from "Stefan (metze) Metzmacher" <metze@metzemix.de> to do a *much*
better job of working with usrmgr.   Previously we were blanking out entires,
and all sort of mischif.

The new patch (which I've now had a chance to test/modify) also takes care not
to expand % values (ie we go \\%L\%U -> \\server\user, we don't want to store
\\server\user back) and to correctly notice 'not set' compared to 'null string'
etc.

Andrew Bartlett
(This used to be commit ab878b6cc4132594fc33f78aeebf0d8b7266c150)
2002-09-26 10:25:34 +00:00