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

23567 Commits

Author SHA1 Message Date
metze
b81d8bc43c [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
2007-10-25 15:53:09 +02:00
metze
4515007567 [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
2007-10-25 15:52:59 +02:00
metze
fa120f7c50 [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
2007-10-25 15:52:47 +02:00
metze
f1d434a132 [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
2007-10-25 15:51:51 +02:00
Jeremy Allison
d04a8a6cdc Don't terminate on an invalid address family.
Jeremy.
2007-10-24 16:11:01 -07:00
Jeremy Allison
bc9008aa1d We do support name lookups for host and service in our replacement
code - remove the restrictions from the original Postgres code.
Jeremy.
2007-10-24 14:40:24 -07:00
Jeremy Allison
98e154c312 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.
2007-10-24 14:16:54 -07:00
Jeremy Allison
4d4ab9aeb9 Fix for AIX interface code from Kyle Stemen <kstemen@centeris.com>
Jeremy.
2007-10-24 12:44:38 -07:00
Stefan Metzmacher
251bd4ea4c handle wellknown sids in winbindd_passwd.c
metze
2007-10-24 16:14:29 +02:00
Stefan Metzmacher
a128a8805e [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)
2007-10-24 15:36:53 +02:00
Stefan Metzmacher
49b2b8784b ignore source/cscope.out
metze
2007-10-24 11:19:29 +02:00
Andrew Tridgell
8b19cb17b9 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 2007-10-23 20:43:27 +10:00
James Peach
1eddefa72c Reorder pthread mutex check so that it doesn't output its result
in the middle of the output for the winbind nss check.
2007-10-22 22:03:40 -07:00
Simo Sorce
37ee6f498b r25573: Add my (C) as well
(cherry picked from commit a024e27e7136deb87aeed995348a1c494a850ce6)
2007-10-22 08:46:11 +02:00
Stefan Metzmacher
5af1b45ed3 r25571: split up child_dispatch_table into domain, idmap and locator tables
metze
(cherry picked from commit abbb36a37c1dba2218a6c7ec31739eba5f250127)
2007-10-22 08:46:11 +02:00
Stefan Metzmacher
56640908a6 r25570: move code of the locator child into its own file
metze
2007-10-22 08:46:10 +02:00
Stefan Metzmacher
590954407b r25569: move more idmap stuff into winbindd_idmap.c
metze
(cherry picked from commit 953229f040580071f6ee09413f67f7edd3227728)
2007-10-22 08:46:10 +02:00
Stefan Metzmacher
a1c354866c 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)
2007-10-22 08:46:10 +02:00
Stefan Metzmacher
d623b2fa71 r25567: make do_async() non static
metze
(cherry picked from commit badc714d7f82f8d7c21ecfeab137efb57e970210)
2007-10-22 08:46:09 +02:00
Gerald (Jerry) Carter
dfef16ac43 Fix compile error caused by unknown variable. 2007-10-21 13:44:29 -05:00
Gerald (Jerry) Carter
33f690b3de Merge branch 'v3-2-test' of git://git.samba.org/samba into v3-2-test 2007-10-21 12:39:15 -05:00
Gerald (Jerry) Carter
a62c7f9350 Correct VERSION and version.c to use SAMBA_VERSION_VENDOR_PATCH
which is used by mkversion.sh.
2007-10-21 12:32:06 -05:00
Volker Lendecke
67328bd27b Don't segfault if locking.tdb can't be opened
Thanks to Steve Langasek <vorlon@debian.org>
2007-10-21 19:26:26 +02:00
Volker Lendecke
04d660bbb3 Fix two type-punned warnings 2007-10-21 08:47:30 +02:00
Stefan Metzmacher
97f47e3913 fix move to OPT_LOG_STDOUT
metze
2007-10-20 10:12:55 +02:00
Volker Lendecke
3c50caa962 Fix an incompatible pointer type warning 2007-10-19 16:46:13 -05:00
Gerald (Jerry) Carter
23d3db0c22 Merge branch 'v3-2-test' of ssh://git.samba.org/data/git/samba into v3-2-test 2007-10-19 15:54:32 -05:00
Michael Adam
aae3d04e30 Streamline logic, reducing the amount of indentation.
Michael
2007-10-19 15:54:23 -05:00
Gerald (Jerry) Carter
620785df4e 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.
2007-10-19 13:09:26 -07:00
Gerald (Jerry) Carter
641d0968da 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.
2007-10-19 13:09:00 -07:00
Gerald (Jerry) Carter
bafcede2c2 Fix a crash in resolve_hosts() caused by an out-of-bounds array reference. 2007-10-19 13:08:44 -07:00
Gerald (Jerry) Carter
fd28d09a95 Fix a crash in resolve_hosts() caused by an out-of-bounds array reference. 2007-10-19 15:08:40 -05:00
Jeremy Allison
793a9d24a1 Fix the popt / bool issues. Some places we used BOOL
where we meant int. Fix this. Thanks to metze for
pointing this out.
Jeremy.
2007-10-19 11:38:36 -07:00
Günther Deschner
36578b22f1 Merge Tridge's fix for the winbind 32/64bit padding.
Guenther
2007-10-19 13:03:49 +02:00
Stefan Metzmacher
9cb1937fe8 fix startup of smbd, nmbd, winbindd
jra: POPT_ARG_VAL arguments need int values.
     I assume there're more places like this
     in the cmdline tools.

     Please fix this properly, as my commit is just
     a hack to get make test working again.

in samba4 we have a workaround for this see
smbd/server.c

metze
2007-10-19 10:34:06 +02:00
Jeremy Allison
f35a266b3c 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.
2007-10-18 17:40:25 -07:00
Stefan Metzmacher
ea3173a945 remove reference to removed code
see commit 9e5ad21e6793981a01f63f2de1c4d496ade0bb54

metze
2007-10-18 16:52:26 +02:00
Karolin Seeger
2972c97e5e Add net rap file user 2007-10-18 13:12:58 +02:00
Stefan Metzmacher
d70ddad2e8 don't skip some tests which samba3 passes (at least on my laptop)
metze
2007-10-18 11:05:56 +02:00
Stefan Metzmacher
f694df1919 make gdb_backtrace executable
metze
2007-10-18 11:05:47 +02:00
Stefan Metzmacher
50d5eec508 remove configure checks which are now in libreplace
metze
2007-10-18 10:55:59 +02:00
Stefan Metzmacher
1eefa0264b [libreplace] fix the standalone build of libreplace
all configure results which are used in replace.h
or any system/*.h should be in the in the libreplace
*.m4 files!

metze
2007-10-18 10:54:37 +02:00
Volker Lendecke
b474600973 r16050: Set the session key "SystemLibraryDTC" on ntlmssp binds. We only do INTEGRITY
and PRIVACY, so no other cases to take care of so far...

Andrew B., if you have time, could you take a look? This makes us survive the
RPC-SAMBA3SESSIONKEY test.

Volker
(cherry picked from commit 25cc1e7ff15675b70001d1cb8d8584880650dd2e)
2007-10-18 09:25:09 +02:00
Jeremy Allison
315215e20e Reformatting fix for new coding guidelines. BOOL ->bool.
Jeremy.
2007-10-17 12:10:12 -07:00
Stefan Metzmacher
354bdd38e8 delete empty file lib/replace/system/getaddrinfo.h
metze
2007-10-17 15:21:48 +02:00
Volker Lendecke
15935bad1d r17064: lsa_GetUserName needs to return the name for S-1-5-7 on an anonymous login.
Found that because I want to play around with setsharesecurity, for this I
need the "whoami" call figuring out the SID of the currently connected user.

Not activating this test yet until the build farm has picked up the new samba4
revision.

Volker
(cherry picked from commit 5cfe482841b77208b68376f9e2b8a4a62271f7c9)
2007-10-17 13:38:44 +02:00
Stefan Metzmacher
cb98869fa1 fix crash bug in pidl generated client code, this
could have happend with [in,out,unique] pointers
when the clients sends a valid pointer, but the server
reponse with a NULL pointer (as samba-3.0.26a do for some calls).

I've tested with midl to see how windows handles this situation
and also the reverse case where the client sends NULL and
the server reposnse with non-NULL.

It appears that midl generated code just ignores this
and only copies the result if both pointers are non-NULL.

metze
2007-10-17 10:35:51 +02:00
Jeremy Allison
2ef50e325c Improve IPv4 detection.
Jeremy.
2007-10-16 16:01:13 -07:00
Jeremy Allison
0ffdf4fdee Move #defined for getaddrinfo into network.h (as other
defines). Allows RHEL4 compile to work.
Jeremy.
2007-10-16 15:15:23 -07:00
Jeremy Allison
3ef3c3afc3 Added in missing def for AI_ADDRCONFIG.
Jeremy.
2007-10-16 12:22:58 -07:00