1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-15 23:24:37 +03:00

23535 Commits

Author SHA1 Message Date
Jeremy Allison
101dc36162 Ensure temporary memory is freed - pointed out by "Li, Ying (ESG)" <ying.li2@hp.com>.
We aren't currently leaking memory, but are leaving it around for
longer than we need to.
Jeremy.
(This used to be commit 25bbc9a6613bef0f3f73ecf634a38a9d56020f40)
2007-10-26 17:58:28 -07:00
Jeremy Allison
73eefd6b72 Fix popt bool problems (need POPT_ARG_NONE, not POPT_ARG_VALUE).
Reported by kukks - thanks !
Jeremy.
(This used to be commit 9993f8d1af23735f3a4b6de82f5825a6a6ba22d6)
2007-10-26 16:22:18 -07:00
Jeremy Allison
fc91aa6988 Move the horrible hack for link local addresses out of namequery.c
and into util_sock.c. is_ipaddress() now copes with link:local:v6%ifname
addresses, as does interpret_string_addr().
Jeremy
(This used to be commit a3f7db3d30ced566c8340696914f1be3293a9c5b)
2007-10-26 16:03:20 -07:00
Jeremy Allison
7cbfaa31d8 Fix a few more sockaddr -> sockaddr_storgage.
Jeremy.
(This used to be commit 4b3635d6bc1bd5e4135ef208dff052e1d9b58a12)
2007-10-26 16:02:16 -07:00
Stefan Metzmacher
cd648750e0 one more struct in_addr => struct sockaddr_storage
jra: please check this...

metze
(This used to be commit cecc8075513a3cca17aeab0c88ae05ed13a07ee3)
2007-10-26 16:37:32 +02:00
Jeremy Allison
e054affb7b Fix bug in writing names into gencache
as well as 2 typos where AF_INET6 was mistypes as AF_INET.
JERRY YOU NEED THESE FIXES.
Fixes smbclient -L localhost -U%
Bugs reported by Kukks (thanks kukks).
Jeremy.
(This used to be commit f109f82622ca30ae2360e8300152e90b9587ffd8)
2007-10-25 19:07:25 -07:00
Jeremy Allison
6128d116b3 Fix resolve name to resolve IPv6 addresses of link-local%ifaddr
Jeremy.
(This used to be commit e6609cab732d5cd5cc9a5ae50aee15147f2ec6ec)
2007-10-25 18:28:36 -07:00
Jeremy Allison
922db25272 Fix a mismatched interface where we were using
uint32 instead of enum lsa_SidType.
Jeremy.
(This used to be commit 2df8252ff76406bfe57cd76e9927b5056e89e6ae)
2007-10-25 18:29:49 -07:00
Jeremy Allison
4da94864dd Fix cast typo - would have broken all dgram sends.
Jeremy.
(This used to be commit 17ea899f39e80241afa235cb933695ba6bae846a)
2007-10-25 18:15:02 -07:00
Jeremy Allison
42f9694139 Fixed missing in_addr -> sockaddr_storage conversion (how did
I miss this...).
Jeremy.
(This used to be commit f982774c8d95c48355bbd821c8224fadb8bb303e)
2007-10-25 18:11:29 -07:00
Jeremy Allison
34a8e1c51e Fix reversed bool check for access. Found by kukks.
Thanks !
Jeremy.
(This used to be commit a13e8bd39de978d69666b8aeb884d943885a3605)
2007-10-25 17:17:46 -07:00
Jeremy Allison
e6fcfdb54e Merge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test
(This used to be commit ec891be53cc4042baf418c1f7b037a11e5055273)
2007-10-25 16:22:40 -07:00
Jeremy Allison
d58398bd23 When doing reverse lookups actually look up the name, not
just the numeric address (doh!) :-).
Jeremy.
(This used to be commit 9aa9ecd8cc29d055d78f16b8fb2156ec04063c42)
2007-10-25 16:14:52 -07:00
Jeremy Allison
1870643d20 Try and fix the Solaris build by adding a missing define
(from Jerry).
Jeremy
(This used to be commit a68bbea0d42cc64b9fa731ab2a1da82ef30937c6)
2007-10-25 15:43:44 -07:00
Jeremy Allison
38c34ffd6b Ensure we don't terminate if we fail to bind to a socket,
only fail if we can't bind to any socket.
Jeremy.
(This used to be commit 2ec6224b552ef86fa1739c9e396c39c7ec6c76c6)
2007-10-25 14:11:35 -07:00
metze
7c6ed7aa1c [libreplace] define AI_NUMERICSERV as it's used in getaddrinfo.c
metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25728 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit 11a977aa0757801fb0fa805b123e7bc75c8be447)
2007-10-25 15:55:47 +02:00
metze
aae2ebab2d [libreplace] move and fix getaddrinfo configure checks
- move getaddrinfo check into getaddrinfo.m4
- add getaddrinfo.o to LIBREPLACEOBJ so that we really build the replacements

metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25726 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit de01c503f4d16b8c3c0ad75225cf0b1822fd8c7f)
2007-10-25 15:55:19 +02:00
metze
899f921c72 - include getaddrinfo.h after we have defined struct addrinfo
- use rep_ instead of pg_ as prefix in getaddrinfo.[ch]
- define HAVE_<name> macros when we replace functions

metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25724 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit e56977ea459b3615d33237d19ed8e7ad8b509853)
2007-10-25 15:53:44 +02:00
metze
800ca51792 [libreplace] if we replace types define the HAVE_<type> macro
this is needed as heimdal's roken.h also tries to replace the types

metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25718 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit b81d8bc43cd7167a5cd4b18c26ba3eecf75043eb)
2007-10-25 15:53:09 +02:00
metze
cd486165e9 [libreplace] move definition of struct addrinfo so that it can use socklen_t
metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25715 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit 45150075677451b48ce56ebdce96aca1ed13fa80)
2007-10-25 15:52:59 +02:00
metze
556513ff72 [libreplace] move define of a constant to near to the others
metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25714 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit fa120f7c50d0084e7d887811e5fa59ae3bcfe53e)
2007-10-25 15:52:47 +02:00
metze
8cca849769 [libreplace] include socket_wrapper.h after we have typedef'ed socklen_t
metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25713 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit f1d434a132e424f2fdce59d51a7c398988c1474d)
2007-10-25 15:51:51 +02:00
Jeremy Allison
fac788d6e2 Don't terminate on an invalid address family.
Jeremy.
(This used to be commit d04a8a6cdcc505e0244882a9abb7174eadbf81a7)
2007-10-24 16:11:01 -07:00
Jeremy Allison
325f3a0be2 We do support name lookups for host and service in our replacement
code - remove the restrictions from the original Postgres code.
Jeremy.
(This used to be commit bc9008aa1dcb66890795f0ff2d3046da7df867d9)
2007-10-24 14:40:24 -07:00
Jeremy Allison
f88b7a076b This is a large patch (sorry). Migrate from struct in_addr
to struct sockaddr_storage in most places that matter (ie.
not the nmbd and NetBIOS lookups). This passes make test
on an IPv4 box, but I'll have to do more work/testing on
IPv6 enabled boxes. This should now give us a framework
for testing and finishing the IPv6 migration. It's at
the state where someone with a working IPv6 setup should
(theorecically) be able to type :
smbclient //ipv6-address/share
and have it work.
Jeremy.
(This used to be commit 98e154c3125d5732c37a72d74b0eb5cd7b6155fd)
2007-10-24 14:16:54 -07:00
Jeremy Allison
e01cbcb28e Fix for AIX interface code from Kyle Stemen <kstemen@centeris.com>
Jeremy.
(This used to be commit 4d4ab9aeb9d85b4c98cbf8a8363a9cefecd4b365)
2007-10-24 12:44:38 -07:00
Stefan Metzmacher
6a6c549cdc handle wellknown sids in winbindd_passwd.c
metze
(This used to be commit 251bd4ea4cdd0a751ed3b91562272221af148e37)
2007-10-24 16:14:29 +02:00
Stefan Metzmacher
cd8a2b5ffe [crash fix] don't use already free'ed memory
(found by "make valgrindtest" and my "start winbindd on make test" patch)

metze
(cherry picked from commit fe21e48489852720a05b305b251e4f5cbb200f7a)
(cherry picked from commit 26d8a1ad20c10da495970c584983fbd261b4946e)
(This used to be commit a128a8805e172738334ec6854548f138c335058b)
2007-10-24 15:36:53 +02:00
Stefan Metzmacher
176a837cc4 ignore source/cscope.out
metze
(This used to be commit 49b2b8784b75c10cdf6e91de6a06f0ca435089cc)
2007-10-24 11:19:29 +02:00
Andrew Tridgell
e5830c1365 added a syncops VFS module for filesystems which do not guarantee meta-data operations are immediately committed to disk in stable form. Essential for clustered Samba setups
(This used to be commit 8b19cb17b9ae9e1cd4a96df6e7dedb75aff7ee96)
2007-10-23 20:43:27 +10:00
James Peach
e5fe5a569f Reorder pthread mutex check so that it doesn't output its result
in the middle of the output for the winbind nss check.
(This used to be commit 1eddefa72cefd0c6836ddbe8eaef074ce732b0d9)
2007-10-22 22:03:40 -07:00
Simo Sorce
5e8086e9a2 r25573: Add my (C) as well
(cherry picked from commit a024e27e7136deb87aeed995348a1c494a850ce6)
(This used to be commit 37ee6f498b175b8f3b7e75eba8dd7c709327384c)
2007-10-22 08:46:11 +02:00
Stefan Metzmacher
3d9a578064 r25571: split up child_dispatch_table into domain, idmap and locator tables
metze
(cherry picked from commit abbb36a37c1dba2218a6c7ec31739eba5f250127)
(This used to be commit 5af1b45ed31043f952ec141d0f5f2973aec69d1a)
2007-10-22 08:46:11 +02:00
Stefan Metzmacher
6ded271f77 r25570: move code of the locator child into its own file
metze
(This used to be commit 56640908a6367acfdfd53568a0d329c13330e5eb)
2007-10-22 08:46:10 +02:00
Stefan Metzmacher
58e049efa3 r25569: move more idmap stuff into winbindd_idmap.c
metze
(cherry picked from commit 953229f040580071f6ee09413f67f7edd3227728)
(This used to be commit 590954407b5badfb9d6b8fb55077dc6a520fb816)
2007-10-22 08:46:10 +02:00
Stefan Metzmacher
1e9e1b6fca r25568: move idmap related functions into their own file.
the final goal is to have 3 child dispatch tables
'domain', 'idmap' and 'locator' instead of one.

metze
(cherry picked from commit 97c63f1b95190f3bcc1d9f34765934c97ffb720c)
(This used to be commit a1c354866c04a305aa28a287dc6c72db1aa845a9)
2007-10-22 08:46:10 +02:00
Stefan Metzmacher
e5cedc7611 r25567: make do_async() non static
metze
(cherry picked from commit badc714d7f82f8d7c21ecfeab137efb57e970210)
(This used to be commit d623b2fa710cfe7ef85b7e9dd84b274b081841ae)
2007-10-22 08:46:09 +02:00
Gerald (Jerry) Carter
6a8dfad25c Fix compile error caused by unknown variable.
(This used to be commit dfef16ac4318b460a5bd29475eb395c1905a5cd8)
2007-10-21 13:44:29 -05:00
Gerald (Jerry) Carter
6a1a83a850 Merge branch 'v3-2-test' of git://git.samba.org/samba into v3-2-test
(This used to be commit 33f690b3de03dc300590c3f69718f608b104a529)
2007-10-21 12:39:15 -05:00
Gerald (Jerry) Carter
69c6f16e31 Correct VERSION and version.c to use SAMBA_VERSION_VENDOR_PATCH
which is used by mkversion.sh.
(This used to be commit a62c7f9350322ab435244eafe6053fd5ee618973)
2007-10-21 12:32:06 -05:00
Volker Lendecke
d1db41c059 Don't segfault if locking.tdb can't be opened
Thanks to Steve Langasek <vorlon@debian.org>
(This used to be commit 67328bd27b1e881a4bcdd5160133afa9a267eaac)
2007-10-21 19:26:26 +02:00
Volker Lendecke
611479fd44 Fix two type-punned warnings
(This used to be commit 04d660bbb371f859cc50a9f3ea7d358f74acfa8b)
2007-10-21 08:47:30 +02:00
Stefan Metzmacher
669d43af31 fix move to OPT_LOG_STDOUT
metze
(This used to be commit 97f47e39139cef738a5f02980a0792417e0d365e)
2007-10-20 10:12:55 +02:00
Volker Lendecke
8f391ae471 Fix an incompatible pointer type warning
(This used to be commit 3c50caa9620899f982cd4a833356d965f47ec843)
2007-10-19 16:46:13 -05:00
Gerald (Jerry) Carter
bffd569392 Merge branch 'v3-2-test' of ssh://git.samba.org/data/git/samba into v3-2-test
(This used to be commit 23d3db0c229fe5e1d69f890d87c2be39b356ffb5)
2007-10-19 15:54:32 -05:00
Michael Adam
23f6c371c9 Streamline logic, reducing the amount of indentation.
Michael
(This used to be commit aae3d04e30a0e6f21f661da3dc6a2835d31ce964)
2007-10-19 15:54:23 -05:00
Gerald (Jerry) Carter
80b7bcb5fb Add test for "struct in6_addr" to the HAVE_IPV6 configure test.
Also make use of "if defined(HAVE_IPV6)" rather than testing for
AF_INET6 since this is not sufficient on HP-UX 11.11 to ensure
a working IPv6 implementation.
(This used to be commit 620785df4e57b72471ff0315e22e0d2f28a2b1a5)
2007-10-19 13:09:26 -07:00
Gerald (Jerry) Carter
61c4666a89 Move the test for the AIX specific interface code to the end.
This tests goes into an infinite loop on OS X so avoid it.
Probably should also be only conditionaly be run on AIX in the
first place.
(This used to be commit 641d0968da73dca24a3ddaf93451de1200d3c09b)
2007-10-19 13:09:00 -07:00
Gerald (Jerry) Carter
6095280304 Fix a crash in resolve_hosts() caused by an out-of-bounds array reference.
(This used to be commit bafcede2c29813f8719fc3b54f94612e72c48043)
2007-10-19 13:08:44 -07:00
Gerald (Jerry) Carter
13bf4c4bb7 Fix a crash in resolve_hosts() caused by an out-of-bounds array reference.
(This used to be commit fd28d09a95b31bdbc6babd13c5a4ed9fc9ef4bfd)
2007-10-19 15:08:40 -05:00