1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
Commit Graph

44 Commits

Author SHA1 Message Date
Matt Kraai
6657598168 Do not redefine strupr
Signed-off-by: Günther Deschner <gd@samba.org>
2009-09-02 13:02:39 +02:00
Matt Kraai
dcf03b9d43 do not redefine _INT32 2009-07-03 11:50:53 +02:00
Stefan Metzmacher
a73bd05eec s3: only define TALLOC_ZERO if needed
metze
2009-03-16 11:14:53 +01:00
Björn Jacke
00913a73c7 prefer gssapi header files from subdirectory
this fixes some compile time noise on FreeBSD 7
2009-02-23 13:41:16 +01:00
Tim Prouty
d629ba480b talloc: Change the two other definitions of TALLOC_FREE to match the primary version
Eventually these two other definitions should be removed and all of
the TALLOC macros should live in the same header.  Until then, this
patch eliminates some build warnings.
2009-01-23 17:29:21 -08:00
Volker Lendecke
87f496f3c1 Fix a potential NULL deref in line 258 found by the IBM checker 2008-10-04 22:07:14 +02:00
Gerald (Jerry) Carter
8e1d93e6a6 libaddns: Use the same prerequisite for DDNS update as Windows XP.
Hostname, TYPE: CNAME, CLASS: NONE

This has to have been broken for ages.  I cannot see
how it would have worked in any environment.
2008-10-03 10:51:21 -05:00
Jelmer Vernooij
0888ffa2b7 Make Samba 3 and Samba 4 both use the same single copy of libreplace. 2008-09-16 16:30:14 +02:00
Michael Adam
f698952a39 build: fix a no previous prototype warning when building without ldap/gssapia
move prototype of dns_create_update_request() to appropriate section in dns.h

Michael
(This used to be commit 0fba954989)
2008-08-08 23:30:19 +02:00
Volker Lendecke
7215b1f69a Fix an uninitialized variable, Coverity ID 481
(This used to be commit 9e4f576abf)
2008-03-06 11:47:31 +01:00
Michael Adam
ba6eaa6906 Try and fix the AIX build.
The __ss_family workaround is in lib/replace/system/network.h ...

Michael
(This used to be commit 778199cf00)
2008-01-10 01:04:47 +01:00
Jeremy Allison
381c38688d Try and fix the AIX build.
Jeremy.
(This used to be commit 231a148bad)
2008-01-09 14:35:15 -08:00
Jeremy Allison
7ca33d1112 Move the DNS tsig update to using struct sockaddr_storage
from struct in_addr. Still only does IPv4 updates but now
it'll be easy to add IPv6 when we have time.
Jeremy.
(This used to be commit ac3a433bef)
2008-01-08 13:11:12 -08:00
Jeremy Allison
30191d1a57 RIP BOOL. Convert BOOL -> bool. I found a few interesting
bugs in various places whilst doing this (places that assumed
BOOL == int). I also need to fix the Samba4 pidl generation
(next checkin).
Jeremy.
(This used to be commit f35a266b3c)
2007-10-18 17:40:25 -07:00
Günther Deschner
fa78132ab5 r25134: Fix Bug #4968 and make dns updates work with heimdal as well (again,
gss_import_name() needs to follow the same logic as in the LDAP sasl wrapping
(see -r25133).

Tested with MIT 1.2.7, 1.3.6, 1.4.3, 1.5.1, 1.6.1 and Heimdal 0.7.2, 1.0,
1.0.1.

Guenther
(This used to be commit 913fb138aa)
2007-10-10 12:30:43 -05:00
Jeremy Allison
a646210b2b r24808: Fix the same problem Volker noticed.
For some funny reason us4/gcc seems to fall over the '

Jeremy.
(This used to be commit 229e02d732)
2007-10-10 12:30:23 -05:00
Jeremy Allison
e9cea3e2d8 r24764: Fix second TALLOC_SIZE definition. Still watching the
build farm to see I didn't stuff this up...
Jeremy.
(This used to be commit 4ca43172d9)
2007-10-10 12:30:18 -05:00
Jeremy Allison
7b24eb65a0 r24759: Comment out the _nonnull calls for 3.2.x, as agreed with tridge.
Leaving the commented out code for now, in case I need to re-test
some stuff.
Jeremy
(This used to be commit 343be04643)
2007-10-10 12:30:18 -05:00
Andrew Tridgell
674b835241 r23799: updated old Franklin Street FSF addresses to new URL
(This used to be commit 43cd589773)
2007-10-10 12:28:26 -05:00
Jeremy Allison
be8b0685a5 r22589: Make TALLOC_ARRAY consistent across all uses.
Jeremy.
(This used to be commit 8968808c3b)
2007-10-10 12:19:49 -05:00
Jeremy Allison
4ab6a8ebb7 r22564: Move the _strict -> _zeronull functions into lib/util.c
and out of talloc at tridge's request.
Jeremy.
(This used to be commit da78488b86)
2007-10-10 12:19:45 -05:00
Jeremy Allison
12ba88574b r22542: Move over to using the _strict varients of the talloc
calls. No functional changes. Looks bigger than it is :-).
Jeremy.
(This used to be commit f6fa3080fe)
2007-10-10 12:19:44 -05:00
Volker Lendecke
d873858976 r21851: Obvious typos...
(This used to be commit ff886436b7)
2007-10-10 12:18:38 -05:00
Gerald Carter
c042d06490 r21848: add a comment about gss_import_name() and when to free the krb5 principal data
(This used to be commit 54a114fa75)
2007-10-10 12:18:38 -05:00
Volker Lendecke
ce07cefdb0 r21217: Just found a system that does not define in_addr_t but only struct
in_addr. Okay, it's a SuSE 7.0, but if the fix is so simple I think we should
not drop that :-)

Volker
(This used to be commit a5d0d1c1e6)
2007-10-10 12:17:48 -05:00
Gerald Carter
19f85cd9b9 r20485: Add select with a 10 second timeout when reading DSN update responses.
(This used to be commit cb6c6a49e2)
2007-10-10 12:16:52 -05:00
James Peach
1beb6f6038 r20427: Rename dnp_open. This conflicts with the dns_open symbol in
libSystem on Mac OS X.
(This used to be commit 585ee7f31d)
2007-10-10 12:16:48 -05:00
Gerald Carter
db7bf9a6b6 r20173: DNS update fixes:
* Fix DNS updates for multi-homed hosts
* Child domains often don't have an NS record in
  DNS so we have to fall back to looking up the the NS
  records for the forest root.
* Fix compile warning caused by mismatched 'struct in_addr'
  and 'in_addr_t' parameters called to DoDNSUpdate()
(This used to be commit 3486acd3c3)
2007-10-10 12:16:29 -05:00
Gerald Carter
d879aa8f36 r20170: Fix secure DNS updates to work against
Wnidows 2000 DNS which expects the TKEY payload to
be in the answer section and not in the additional
set of records (like Windows 2003 and the RFC).
(This used to be commit a3b6734fda)
2007-10-10 12:16:29 -05:00
Herb Lewis
6914b29daa r20131: get rid of a few no previous prototype warnings
(This used to be commit e710a7d39a)
2007-10-10 12:16:26 -05:00
Gerald Carter
0d38f8af39 r19977: * Fix a crash in the secure DNS update code. Don't free
the host_principal memory while it is still being referenced
  by the gss code.
(This used to be commit 7a5a12e892)
2007-10-10 12:16:16 -05:00
Gerald Carter
c2aae726ea r19762: libaddns/*[ch] code fixes donated by Centeris Corporation
(http://www.centeris.com/) under my copyright.

* Rework error reporting to use DNS_ERROR instead
  of int32
* Convert memory allocation to use talloc()
* Generalize the DNS request/response packet marshalling
* Fix the secure update requests
(This used to be commit c787983336)
2007-10-10 12:15:53 -05:00
Andrew Tridgell
96f2a97e01 r18858: arrgh! - since HAVE_IMMEDIATE_STRUCTURES were last enabled the code
can no longer handle it (at least with gcc 4.1.2). Disable it until
investigated and fixed properly.
(This used to be commit c8670b33b4)
2007-10-10 12:01:06 -05:00
Stefan Metzmacher
beecb90440 r18784: hopefully fix the BOOL bug on AIX
metze
(This used to be commit 454d9590de)
2007-10-10 12:00:57 -05:00
Volker Lendecke
ee0e397d6f r18019: Fix a C++ warnings: Don't use void * in libads/ for LDAPMessage anymore.
Compiled it on systems with and without LDAP, I hope it does not break the
build farm too badly. If it does, I'll fix it tomorrow.

Volker
(This used to be commit b2ff9680eb)
2007-10-10 11:39:49 -05:00
Volker Lendecke
2868e7f99b r17851: Fix a warning & attempt to fix the Tru64 build
(This used to be commit b05cac3cb5)
2007-10-10 11:38:53 -05:00
Volker Lendecke
f60a0a9fd3 r17845: Remove a Solaris warning
(This used to be commit ec42ec31c0)
2007-10-10 11:38:53 -05:00
Volker Lendecke
9230c659f6 r17835: Fix Coverity bugs 306, 309, 310.
Jeremy, you might want to look at the trans2 one.

Volker
(This used to be commit d727fc681c)
2007-10-10 11:38:52 -05:00
Volker Lendecke
d59fe2834e r17833: Next step to fix the build farm.
Jerry, why don't you include "includes.h"?

Thanks,

Volker
(This used to be commit c02970c272)
2007-10-10 11:38:52 -05:00
Volker Lendecke
49a3f72ebb r17805: Sorry Jerry, I could not stand the warnings... :-)
(This used to be commit f5fcafd77e)
2007-10-10 11:38:49 -05:00
Gerald Carter
0d1e4dc5b0 r17803: finally get the new libaddns code to build on Solaris 9
(This used to be commit 6a4f4ce016)
2007-10-10 11:38:49 -05:00
Gerald Carter
bfbe5a50c6 r17802: trying to fix more build farm hosts
(This used to be commit d16fea385a)
2007-10-10 11:38:49 -05:00
Gerald Carter
26f55cb40d r17799: Start fixing the building carnage. Only include calls to
uuid lib fucntions when WITH_DNS_UPDATES is defined.
(This used to be commit 3c54720285)
2007-10-10 11:38:48 -05:00
Gerald Carter
5693e6c599 r17798: Beginnings of a standalone libaddns library released under
the LGPL.   Original code by Krishna Ganugapati <krishnag@centeris.com>.
Additional work by me.

It's still got some warts, but non-secure updates do
currently work.  There are at least four things left to
really clean up.

1. Change the memory management to use talloc() rather than
   malloc() and cleanup the leaks.
2. Fix the error code reporting (see initial changes to
   dnserr.h)
3. Fix the secure updates
4. Define a public interface in addns.h
5. Move the code in libads/dns.c into the libaddns/ directory
   (and under the LGPL).

A few notes:

* Enable the new code by compiling with --with-dnsupdate
* Also adds the command 'net ads dns register'
* Requires -luuid (included in the e2fsprogs-devel package).
* Has only been tested on Linux platforms so there may be portability
  issues.
(This used to be commit 36f04674ae)
2007-10-10 11:38:48 -05:00