1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-11 16:58:40 +03:00

23495 Commits

Author SHA1 Message Date
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
Jeremy Allison
f6a01b82c5 Fix access control code to be IPv6/v4 protocol independent.
Make unix_wild_match() talloc, not pstring based.
Next will be name resolution code, and client code.
Jeremy.
2007-10-16 11:33:37 -07:00
Simo Sorce
8c770c367c Fix default domains support using compat syntax.
Without this fix idmap_rid can't be used with the compatible syntax.
Includes fix to keep trusted domains working
2007-10-16 14:16:03 -04:00
Jeremy Allison
5c8adce3f3 Merge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test 2007-10-15 16:12:01 -07:00
Jeremy Allison
4a56b697b6 Move to protocol independent code in most of lib/util_sock.c
We don't use gethostbyname any more except in one case where
we're looking for host aliases (I don't know how to do that
with getaddrinfo yet). New function should be getaddrinfo().
Next step will be fixing lib/access.c, and then changing
libsmb/namequery.c to cope with IPv6 address returns.
Jeremy.
2007-10-15 16:11:48 -07:00
Jeremy Allison
406737cd9a Fix warning messages for unused variables.
Jeremy.
2007-10-15 15:52:30 -07:00
Alexander Bokovoy
97f9a90b82 Correctly free memory in regfio paths 2007-10-15 17:41:09 -05:00
Günther Deschner
357f003849 Add WERR_SERVICE_ALREADY_RUNNING.
Guenther
2007-10-15 19:10:19 +02:00
Stefan Metzmacher
96820f8d8f rename getsmbpass -> rep_getpass and provide the function prototype
metze
2007-10-15 15:42:13 +02:00
Stefan Metzmacher
d20c2fa274 use "system/*.h" to get the system includes
metze
2007-10-15 15:41:06 +02:00
Stefan Metzmacher
f4c0961a16 fix the compilation of getpass.c and it's configure test
metze
2007-10-15 13:20:41 +02:00
Jeremy Allison
33ee0cfb19 r16320: Ensure variable is not null before calling fclose. Klocwork #412. Jeremy. 2007-10-15 13:20:41 +02:00
Jeremy Allison
46c12de07f r16245: Cope with string being zero len. Klocwork bug #410. Jeremy. 2007-10-15 13:20:40 +02:00
jmcd
0cd1ed0424 Volker's fix for bug #668. Change the \n after the password prompt to go to tty instead of stdout. 2007-10-15 13:20:40 +02:00
Stefan Metzmacher
d4ae42b1b2 reapply: Allow ^C to interrupt smbpasswd if using our getpass. from Jeremy
metze
2007-10-15 13:20:40 +02:00
Stefan Metzmacher
3e8f43e3cf reformat getpass() replacement code
metze
2007-10-15 13:20:39 +02:00
Stefan Metzmacher
0177158d85 missing stuff from samba4's libreplace
metze
2007-10-15 13:19:28 +02:00
metze
ec8e3f7f92 don't imply "system/network.h" within replace.h,
as this brings in the socket_wrapper.h in unexpected
code and we endup with a missing 'swrap_close' while linking

metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25602 0c0555d6-39d7-0310-84fc-f1cc0bd64818
2007-10-15 13:19:28 +02:00
Günter Kukkukk
29eb4d0e2d Latest ipv6 changes broke (deprecated) smbmount, smbmnt and smbctool
In addition some cleanup has been done to avoid compiler warnings.
2007-10-15 12:31:21 +02:00
Volker Lendecke
add1294562 Fix one more place for IFF_LOOPBACK 2007-10-14 19:00:49 +02:00
Volker Lendecke
483cf289c8 Fix get_interfaces detection
During configure, we don't have config.h around yet, and we need strlcpy now.
2007-10-14 13:45:02 +02:00
Jelmer Vernooij
f8580abbd5 Merge commit '5e95c548864bc8b075b8343e69a69e1a22c92456' into 3.2-trivial 2007-10-14 00:56:27 +02:00
Jelmer Vernooij
84660aaab0 Ignore vim backup files. 2007-10-13 23:39:46 +02:00