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

1455 Commits

Author SHA1 Message Date
Andrew Bartlett
8a78a0a27a Patch from metze to add what he feels is the correct semantics for a Domain
Controller.  As we have had a number of attempts at this over the last little
while, I need to get my test rig going, and give this whole area a poke...

Meanwhile, if you want to use this, just adjust your 'auth methods' line to use
samstrict_dc...

Andrew Bartlett
(This used to be commit 18e598ec24)
2003-01-13 13:11:36 +00:00
Andrew Bartlett
5bd2d3f2ee Patch from metze to to make testparm show values for 'workgroup', 'netbios
name' and 'netbios scope'.  Probably has a similar effect on SWAT.

Also adds '-V' to testparm.

Andrew Bartlett
(This used to be commit 71f4d8efd3)
2003-01-13 13:03:25 +00:00
Andrew Bartlett
20ecae9a58 Accessing data after it's been free()ed really is a no-no...
Andrew Bartlett
(This used to be commit 6e821285a4)
2003-01-13 12:42:20 +00:00
Jeremy Allison
82b41dca9d Added new message_send_pid() code that uses tdb append to reduce locking
contention on the messaging tdb.
Jeremy.
(This used to be commit 5b8cf0810a)
2003-01-11 00:17:37 +00:00
Jeremy Allison
fe6bb1e9ed First part of efficiency fixes for message sending to pid's (cutting down
the amount of time we hold tdb locks). Gulp down all messages at once rather
than reading/re-writing one at a time. NOTE: All dispatch routines *must*
be able to cope with incoming message on *odd* byte boundaries (all current
handlers do).
Jeremy.
(This used to be commit 04243e39cf)
2003-01-10 20:17:06 +00:00
Tim Potter
c4b4386996 Remove read_with_timeout() and replaced its only caller (the passwd chat
stuff) with a call to read_socket_with_timeout() which does the same thing.

Passwd chat still works but I couldn't figure out the right arguments to
passwd chat to get it to work right but data was definitely getting
through.
(This used to be commit 88eb9e9486)
2003-01-09 06:58:07 +00:00
Tim Potter
6e87ae0db3 Removed pointless null statement in signal handler.
(This used to be commit db24489eb4)
2003-01-08 04:14:12 +00:00
Gerald Carter
df4af79c78 patch to include support for daemontools from Michael Handler
(This used to be commit 4c48c475a2)
2003-01-03 17:32:11 +00:00
Andrew Bartlett
a746483fd8 Add PRINTF_ATTRIBUTE() to a few more printf() style functions. Aids in
compiler-based argument checking.
(This used to be commit 16fe928e68)
2003-01-02 12:54:02 +00:00
Andrew Bartlett
e030b91bf8 Call me parinoid, but I don't like the idea that we could ever have dbf point
to a closed file.  Swap the assign and the close around.

Andrew Bartlett
(This used to be commit ceb2a79849)
2003-01-02 12:53:04 +00:00
Andrew Bartlett
6d66fb308a BIG patch...
This patch makes Samba compile cleanly with -Wwrite-strings.
 - That is, all string literals are marked as 'const'.  These strings are
always read only, this just marks them as such for passing to other functions.

What is most supprising is that I didn't need to change more than a few lines of code (all
in 'net', which got a small cleanup of net.h and extern variables).  The rest
is just adding a lot of 'const'.

As far as I can tell, I have not added any new warnings - apart from making all
of tdbutil.c's function const (so they warn for adding that const string to
struct).

Andrew Bartlett
(This used to be commit 92a777d0ea)
2003-01-02 09:07:17 +00:00
Jeremy Allison
0fdf60f051 Finish adding strings to all talloc_init() calls.
Jeremy.
(This used to be commit 784d15761c)
2002-12-23 23:53:56 +00:00
Jeremy Allison
b95b82b798 talloc_init_named -> talloc_init.
Jeremy.
(This used to be commit 20a44d4cf1)
2002-12-22 16:02:36 +00:00
Jeremy Allison
7f23546730 Forward port the change to talloc_init() to make all talloc contexts
named. Ensure we can query them.
Jeremy.
(This used to be commit 842e08e52a)
2002-12-20 20:23:06 +00:00
Herb Lewis
c26dd35c76 merge from 2.2
actually print args for %g and %e
(This used to be commit 47a0ba53fd)
2002-12-19 19:56:31 +00:00
Simo Sorce
48fb7b090e updates to the gums
introduce genparser will be used by tdbsam2
(This used to be commit 831d3d1ec7)
2002-12-16 12:11:02 +00:00
Jeremy Allison
a030b19767 The name pointer in the talloc context must not be a talloced entry as
calling talloc_destroy_pool(as we do sometimes) will destroy it.
Jeremy.
(This used to be commit 63f344e27b)
2002-12-14 00:57:01 +00:00
Jeremy Allison
7dd847ba9c Fixed auth module code. Added VALGRIND defines to reduce spurious warnings.
Jeremy.
(This used to be commit ff3a8d3728)
2002-12-11 23:54:46 +00:00
Jeremy Allison
7c83af93e9 The _abs time functions should not be converting from/to GMT.
Patch from "Jordan Russell" <jr-list-samba-technical@quo.to>
Jeremy.
(This used to be commit aecc9db60a)
2002-12-10 00:46:47 +00:00
Jeremy Allison
8c13b09b9d Ensure global_scope() returns "", not the NULL string. Froma tpot fix.
Jeremy.
(This used to be commit 7185b846e4)
2002-12-06 19:58:27 +00:00
Jim McDonough
ce397dbf04 fns for retrieving dns host name and domain name (get rid of lp_realm hacks).
(This used to be commit 456813308d)
2002-12-03 19:35:46 +00:00
Andrew Bartlett
d1438c4b20 POSIX indicates that this is always in network byte order, so we don't need the
little-endian case (tested on Intel-linux).

Andrew Bartlett
(This used to be commit 281b713b12)
2002-12-01 03:02:50 +00:00
Gerald Carter
bea9e3416f removing inet_aton()
(This used to be commit 08ac3610f9)
2002-11-27 04:45:12 +00:00
Andrew Bartlett
65643516d7 Having waited for *way* too long, this is mimir's namecache and trusted domain
cache code.

This uses gencache, mimir's new caching code that stores at text-based cache
of various data.

Mimir has done a *lot* of work on this patch, and it is finally time to
get it in CVS.

Andrew Bartlett
(This used to be commit 47f3bfe956)
2002-11-26 11:57:30 +00:00
Andrew Bartlett
5aca399a38 Add ntlm_auth, a new program to provide a stable interface to winbind's
authentication code.

In particular, ntlm_auth is designed to replace the winbind authentication
'helpers' currently supplied by Squid.  I have added support for the current
plaintext password protocol used by Squid, and will add the real guts (NTLMSSP
support) shortly.

I'll merge this into 3.0 when I've got the interface more stable (error message
format etc) and got the important NTLMSSP support added.

Also move SWAT's URL decoding code into util_str.c, for use in both utilities.

Andrew Bartlett
(This used to be commit 82dbf83887)
2002-11-24 08:32:03 +00:00
Andrew Tridgell
9c68f9064d a working timegm() function for systems that don't have it
(This used to be commit 6efdd54d06)
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 19f86f1f72)
2002-11-23 02:52:38 +00:00
Andrew Tridgell
1abaa7c9d3 more %U fixes for head
(This used to be commit ea3787d819)
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 9ead4fc3c3)
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 d813997c5a)
2002-11-17 01:14:30 +00:00
Andrew Bartlett
d983ee8800 Add const to DEBUG() macro.
(This used to be commit 43020bb4e6)
2002-11-15 13:57:25 +00:00
Jelmer Vernooij
3dc6b9e5f0 Move 'weird' character set into new 'developer' module
(This used to be commit afbff33eba)
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 612ea35ab0)
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 82b8f749a3)
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 5191719eee)
2002-11-12 18:11:00 +00:00
Jelmer Vernooij
7b8697dccb Fix segfault with high debug levels
(This used to be commit a20676bc05)
2002-11-12 18:07:51 +00:00
Jelmer Vernooij
a3ccf4ae6d Add smb_register_charset() and use it
(This used to be commit 8b65465875)
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 205e8f0301)
2002-11-11 22:12:48 +00:00
Simo Sorce
10968f47cf consolidate error mapping functions into a single file
(This used to be commit 80086728f2)
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 81633064dd)
2002-11-08 23:05:34 +00:00
Gerald Carter
4703553378 patches from Urban
(This used to be commit da269a73ed)
2002-11-08 18:44:57 +00:00
Tim Potter
075a9fe96f Fix compiler warnings.
(This used to be commit 3a68613e93)
2002-11-06 20:13:02 +00:00
Jelmer Vernooij
e79de17061 Remove dummy function I used for testing
(This used to be commit 15c71551db)
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 1602d58949)
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 a82dbb3c22)
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 00d4e5c67b)
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 86eb0a25b1)
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 a8d2dd8d00)
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 732bc4519f)
2002-10-30 12:03:40 +00:00
Jelmer Vernooij
1f40ad5813 Add initial vesion of new module system
(This used to be commit b5d05d3ec6)
2002-10-30 11:52:36 +00:00