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

36411 Commits

Author SHA1 Message Date
Volker Lendecke
e81ea8a291 s3: Make cli_session_setup_lanman2 async
Signed-off-by: Jeremy Allison <jra@samba.org>

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Apr 27 00:25:35 CEST 2011 on sn-devel-104
2011-04-27 00:25:34 +02:00
Volker Lendecke
531628e558 s3: Make cli_session_setup_nt1 async
Signed-off-by: Jeremy Allison <jra@samba.org>
2011-04-26 12:22:55 -07:00
Volker Lendecke
40e2ee9cb6 s3: Make plaintext session setup async
Signed-off-by: Jeremy Allison <jra@samba.org>
2011-04-26 12:22:55 -07:00
Volker Lendecke
ca9ac7c4c7 s3: Remove cli_write
Signed-off-by: Jeremy Allison <jra@samba.org>
2011-04-26 12:22:55 -07:00
Volker Lendecke
0226428eb9 s3: Use cli_writeall instead of cli_write
Signed-off-by: Jeremy Allison <jra@samba.org>
2011-04-26 12:22:55 -07:00
Volker Lendecke
d018fccb70 s3: Add cli_writeall
Signed-off-by: Jeremy Allison <jra@samba.org>
2011-04-26 12:22:55 -07:00
Christian Ambach
7a4cff842d s3:vfs use gpfs_lib_init
With newer GPFS releases, libgpfs contains a function
gpfs_lib_init(). It marks the pseudo-device the lib uses
as interface to the GPFS kernel module to not be to
destroyed after each call to GPFS.
This saves us some microseconds creating and removing the device
each time we do a call to libgpfs.

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Tue Apr 26 20:52:36 CEST 2011 on sn-devel-104
2011-04-26 20:52:36 +02:00
Günther Deschner
633dbabe91 s3-utils: Fix Bug #8106. Fix the build of smbget on HP NonStop.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Tue Apr 26 16:41:17 CEST 2011 on sn-devel-104
2011-04-26 16:41:17 +02:00
Volker Lendecke
77ea148f7f s3: Fix a typo
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Tue Apr 26 13:31:08 CEST 2011 on sn-devel-104
2011-04-26 13:31:08 +02:00
Volker Lendecke
dbc36befb5 s3: Allow unlimited parallelism in pthreadpool 2011-04-26 12:41:56 +02:00
Andrew Bartlett
ccb62947e9 s3-libads Remove KRB5_DNS_HACK
We have winbindd write a custom krb5.conf or use a kdc locator plugin
to do this properly now.

Andrew Bartlett
2011-04-26 17:16:34 +10:00
Andrew Bartlett
c18954775e libcli/dns Improve dns_hosts_file, using Samba3's struct dns_rr_srv
By reworking the 'fake DNS' file to use struct dns_rr_srv it should be
possible to emulate that resolver layer as well as the Samba4
sockaddr_storage* based layer.  This will then give us a common DNS
emulation for 'make test'.

Andrew Bartlett
2011-04-26 17:16:34 +10:00
Andrew Bartlett
0ffc4c51ee build: Invert --enable-s3build into --disable-s3build
We always want the s3 binaries, except when building an smbtorture4
for the s3-waf and autoconf builds.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Tue Apr 26 04:27:28 CEST 2011 on sn-devel-104
2011-04-26 04:27:28 +02:00
Andrew Bartlett
ad6ee6d55a build: Move Heimdal/MIT compat build rules to heimdal_build
This allows top level build rules to rely on these names at all times.

Andrew Bartlett
2011-04-26 11:29:29 +10:00
Jeremy Allison
d00f1febd5 No longer need to call SMB_VFS_LSTAT - check name hasn't changed above is sufficient.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Mon Apr 25 23:35:37 CEST 2011 on sn-devel-104
2011-04-25 23:35:37 +02:00
Jeremy Allison
eeb24c1773 Correctly detect and deny symlinks anywhere in a path (not just the last component) if "follow symlinks = no". 2011-04-25 22:49:04 +02:00
Volker Lendecke
80c395aef4 s3: Remove unused code
This is done in name_query_send these days

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon Apr 25 19:24:58 CEST 2011 on sn-devel-104
2011-04-25 19:24:58 +02:00
Volker Lendecke
a3d35ac44b s3: Move setting the name_query timeout
An async caller might want a different timeout behaviour
2011-04-25 18:39:20 +02:00
Stefan Metzmacher
a3a38ee90a s3:lib/util_sock: listen on IPv6 addresses with IPV6_ONLY (bug #7383)
This avoids getting IPv4 addresses as mapped IPv6 addresses
(e.g. ::ffff:192.168.0.1).

Before the bahavior was inconsistent between operating system
and distributions. Some system have IPV6_ONLY as default.

Now we consistently get AF_INET for IPv4 addresses and AF_INET6
for IPv6 addresses.

It also makes it possible to listen only on IPv6 now
as "::" doesn't imply "0.0.0.0" anymore. Which also
avoids confusing log messages that we were not able to
bind to "0.0.0.0".

metze
2011-04-25 17:42:03 +02:00
Stefan Metzmacher
4bfe2d5655 s3:lib/access: normalize IPv4 mapped IPv6 addresses in both directions (bug #7383)
metze
2011-04-25 17:41:56 +02:00
Volker Lendecke
40e0079bae s3: Some build farm machines do not have /bin/true
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon Apr 25 14:35:42 CEST 2011 on sn-devel-104
2011-04-25 14:35:42 +02:00
Volker Lendecke
b61c38fde6 s3: Fix some typos in dsgetdcname
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon Apr 25 12:35:30 CEST 2011 on sn-devel-104
2011-04-25 12:35:30 +02:00
Volker Lendecke
60e8e33414 s3: "port" is not used in dsgetdcname
Günther, please check!
2011-04-25 11:47:27 +02:00
Volker Lendecke
4f6b1e8c81 s3: Check for res_ninit
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon Apr 25 11:44:58 CEST 2011 on sn-devel-104
2011-04-25 11:44:58 +02:00
Volker Lendecke
422b2fa0d0 s3: Run pthreadpooltest in make test
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon Apr 25 10:39:12 CEST 2011 on sn-devel-104
2011-04-25 10:39:12 +02:00
Volker Lendecke
39375de835 s3: Add pthreadpooltest to main build 2011-04-25 09:50:33 +02:00
Volker Lendecke
f4a0f856f3 s3: pthreadpool_sig_fd->pthreadpool_signal_fd 2011-04-25 09:50:32 +02:00
Volker Lendecke
3c405f5e1d s3: Tiny doc for pthreadpool 2011-04-25 09:50:32 +02:00
Volker Lendecke
62689d8166 s3: Many pthreadpool fixes
In particular, this makes it fork-safe
2011-04-25 09:50:32 +02:00
Volker Lendecke
23a6af46c8 s3: Add a 10-second timeout for the 445 or netbios connection to a DC 2011-04-25 09:50:32 +02:00
Stefan Metzmacher
f7bc84409a s3:rpc_client: map fault codes to NTSTATUS with dcerpc_fault_to_nt_status()
Most fault codes have a NTSTATUS representation, so use that.

This brings the fault handling in common with the source4/librpc/rpc code,
which make it possible to share more highlevel code, between source3 and
source4 as the error checking can be the same now.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sun Apr 24 10:44:53 CEST 2011 on sn-devel-104
2011-04-24 10:44:53 +02:00
Stefan Metzmacher
e7cf7204e6 s3:winbindd: let winbindd_lookup_names() use dcerpc_binding_handle functions
metze
2011-04-24 09:53:54 +02:00
Stefan Metzmacher
7309daa532 s3:winbindd: let winbindd_lookup_sids() dcerpc_binding_handle functions
metze
2011-04-24 09:53:52 +02:00
Stefan Metzmacher
5b32708577 s3:includes: simplify INO_T_VAL macros
metze
2011-04-24 09:48:50 +02:00
Stefan Metzmacher
d7aa2eb7b6 s3:includes: simplify BIG_UINT macros
metze
2011-04-24 09:48:50 +02:00
Stefan Metzmacher
9127e555ab s3:smbd/trans2: make use of BVAL() and remove ugly LARGE_SMB_OFF_T ifdef's
We rely on uint64_t for a long time now...

metze
2011-04-24 09:48:49 +02:00
Volker Lendecke
123e5c1a75 s3: Fix Coverity ID 2478, UNINIT
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sat Apr 23 14:11:22 CEST 2011 on sn-devel-104
2011-04-23 14:11:22 +02:00
Stefan Metzmacher
64e7fba1be s3:include/vfs.h: remove very old hints for vfs modules with interface version < 8
The interface version is at 28 now, and this defines cause problem
on some systems, e.g. Tru64 defines vfs_init in the system headers.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sat Apr 23 12:07:35 CEST 2011 on sn-devel-104
2011-04-23 12:07:35 +02:00
Stefan Metzmacher
1cf715ed21 Revert "s3-vfs: another attempt to fix the Tru64 build."
This reverts commit 5290927187.

A better fix will follow.

metze
2011-04-23 11:17:47 +02:00
Stefan Metzmacher
4a4a774e61 s3:smbd/nttrans: make use of BVAL() and remove ugly LARGE_SMB_OFF_T ifdef's
We rely on uint64_t for a long time now...

metze
2011-04-23 11:17:46 +02:00
Stefan Metzmacher
5186209277 s3:lib/sysquota: remove ugly LARGE_SMB_OFF_T ifdef's
We rely on uint64_t for a long time now...

metze
2011-04-23 10:44:16 +02:00
Stefan Metzmacher
75ad180379 s3:libsmb: make use of BVAL() and remove ugly LARGE_SMB_OFF_T ifdef's
We rely on uint64_t for a long time now...

metze
2011-04-23 10:37:49 +02:00
Volker Lendecke
b48e22347d s3: Fix Coverity ID 2047, UNUSED_VALUE
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Fri Apr 22 10:53:24 CEST 2011 on sn-devel-104
2011-04-22 10:53:24 +02:00
Volker Lendecke
726fa732fa s3: Fix Coverity ID 2325, RESOURCE_LEAK 2011-04-22 10:06:36 +02:00
Volker Lendecke
f9e3af71d3 s3: Fix Coverity ID 2336, NULL_RETURNS 2011-04-22 10:06:36 +02:00
Volker Lendecke
018595e258 s3: Fix Coverity ID 2335, CHECKED_RETURN 2011-04-22 10:06:36 +02:00
Volker Lendecke
3e8a8fad59 s3: Fix Coverity ID 2307, NULL_RETURNS 2011-04-22 10:06:35 +02:00
Volker Lendecke
9a0676d5c9 s3: Fix Coverity ID 986, BUFFER_SIZE_WARNING
strncpy can leave the destination unterminated
2011-04-22 10:06:34 +02:00
Volker Lendecke
7e7ad53cbd s3: Fix Coverity ID 1340, NULL_RETURNS 2011-04-22 10:06:33 +02:00
Jeremy Allison
e919e767fb Cosmetic. Fix bad indentation.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Fri Apr 22 03:16:43 CEST 2011 on sn-devel-104
2011-04-22 03:16:43 +02:00