Stefan Metzmacher
b787b6e1bd
libcli/cldap: don't pass tevent_context to cldap_socket_init()
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon Oct 10 23:23:07 CEST 2011 on sn-devel-104
2011-10-10 23:23:07 +02:00
Volker Lendecke
94b0f8f7fe
s3: Slightly simplify print_kdc_line()
...
No code change except for an early "return talloc_asprintf(..)" making an else
branch obsolete.
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon Sep 26 18:24:25 CEST 2011 on sn-devel-104
2011-09-26 18:24:25 +02:00
Volker Lendecke
9411b8e49d
s3: Slightly simplify print_kdc_line()
...
No code change except for an early "return talloc_asprintf(..)" making an else
branch obsolete.
2011-09-26 16:48:43 +02:00
Volker Lendecke
01eb3136b6
s3: Slightly simplify print_kdc_line()
...
No code change except for an early "return talloc_asprintf(..)" making an else
branch obsolete.
2011-09-26 16:48:43 +02:00
Volker Lendecke
507f1fcdcb
s3: Add some const to create_local_private_krb5_conf_for_domain
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sun Sep 18 23:31:28 CEST 2011 on sn-devel-104
2011-09-18 23:31:28 +02:00
Volker Lendecke
b126164ece
s3: Add some const to print_kdc_line
2011-09-18 22:00:54 +02:00
Jeremy Allison
92a655da86
If "ldap timeout" is non-zero, set the local search timeout to
...
be one second longer than the remote search timeout (which is
set to the "ldap timeout" value). This allows the remote search
timeout to fire in preference.
Allow lp_ldap_timeout() to be zero. Don't set the any local alarm
if so.
2011-08-19 18:43:51 -07:00
Volker Lendecke
31ee78fea9
s3: Increase a debug level in ads_find_dc
...
This message can happen with AD trusts that winbind can not cope with. The
message is not really clear and not worth spamming syslog always.
2011-08-17 12:30:08 +02:00
Andrew Bartlett
1231b784a1
s3-ntlmssp Remove auth_ntlmssp_and_flags()
...
There is no need to mask out these flags as they simply are not set
yet.
The correct abstraction is to ask for NTLMSSP features.
Andrew Bartlett
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-08-03 18:48:03 +10:00
Günther Deschner
183835d055
source3/libads/ldap_schema.h: fix licence/copyright
...
Guenther
2011-06-10 15:12:22 +02:00
Günther Deschner
59e878ff62
source3/libads/cldap.h: fix licence/copyright
...
Guenther
2011-06-10 15:12:20 +02:00
Günther Deschner
d5c5aa1c5f
source3/libads/ads_status.h: fix licence/copyright
...
Guenther
2011-06-10 15:12:19 +02:00
Günther Deschner
f2d4252dfa
source3/libads/ads_ldap_protos.h: fix licence/copyright
...
Guenther
2011-06-10 15:12:17 +02:00
Andrew Bartlett
74eed8f3ed
s3-param Remove special case for global_myname(), rename to lp_netbios_name()
...
There is no reason this can't be a normal constant string in the
loadparm system, now that we have lp_set_cmdline() to handle overrides
correctly.
Andrew Bartlett
2011-06-09 12:40:09 +02:00
Andrew Bartlett
8d4a8389bb
s3-talloc Change TALLOC_MEMDUP() to talloc_memdup()
...
Using the standard macro makes it easier to move code into common, as
TALLOC_MEMDUP isn't standard talloc.
2011-06-09 12:40:08 +02:00
Andrew Bartlett
5e26e94092
s3-talloc Change TALLOC_ZERO_ARRAY() to talloc_zero_array()
...
Using the standard macro makes it easier to move code into common, as
TALLOC_ZERO_ARRAY isn't standard talloc.
2011-06-09 12:40:08 +02:00
Andrew Bartlett
ad0a07c531
s3-talloc Change TALLOC_ZERO_P() to talloc_zero()
...
Using the standard macro makes it easier to move code into common, as
TALLOC_ZERO_P isn't standard talloc.
2011-06-09 12:40:08 +02:00
Andrew Bartlett
d5e6a47f06
s3-talloc Change TALLOC_P() to talloc()
...
Using the standard macro makes it easier to move code into common, as
TALLOC_P isn't standard talloc.
2011-06-09 12:40:08 +02:00
Andrew Bartlett
3d15137653
s3-talloc Change TALLOC_ARRAY() to talloc_array()
...
Using the standard macro makes it easier to move code into common, as
TALLOC_ARRAY isn't standard talloc.
2011-06-09 12:40:08 +02:00
Andrew Bartlett
73b377432c
s3-talloc Change TALLOC_REALLOC_ARRAY() to talloc_realloc()
...
Using the standard macro makes it easier to move code into common, as
TALLOC_REALLOC_ARRAY isn't standard talloc.
Andrew Bartlett
2011-06-09 12:40:08 +02:00
Jeremy Allison
e98fb2f2b9
Remove another PATH_MAX.
...
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Thu Jun 2 02:51:06 CEST 2011 on sn-devel-104
2011-06-02 02:51:06 +02:00
Andrew Bartlett
7630e73dac
s3-param prepare for some lp_ functions to return const
2011-06-01 04:19:05 +02:00
Michael Adam
72f2bd6a86
s3:libads/ndr: include ../librpc/ndr/libndr.h instead of librpc/ndr/util.h
2011-05-31 12:54:22 +02:00
Michael Adam
4c542015a1
s3:libads/kerberos_proto.h: add _LIBADS_KERBEROS_PROTO_H_ guard
2011-05-31 01:44:27 +02:00
Michael Adam
6bf3228f28
s3:libads/kerberos_proto.h: add GPL/Copyright header
2011-05-31 01:44:27 +02:00
Michael Adam
eb5db22771
s3:libads/ads_proto.h: add _LIBADS_ADS_PROTO_H_ guard
2011-05-31 01:44:27 +02:00
Michael Adam
6e9c055ce2
s3:libads/ads_proto.h: add GPL/Copyright header
2011-05-31 01:44:27 +02:00
Andrew Bartlett
c615ebed6e
s3-lib Replace StrCaseCmp() with strcasecmp_m()
...
strcasecmp_m() never needs to call to talloc, and via next_codepoint()
still has an ASCII fast-path bypassing iconv() calls.
Andrew Bartlett
2011-05-18 16:12:08 +02:00
Günther Deschner
1e208a7057
s3-includes: no need to globally include libads/ads_status.h.
...
Guenther
2011-05-06 16:37:22 +02:00
Jeremy Allison
f85e095dd2
More simple const fixups.
2011-05-05 23:56:08 +02:00
Jeremy Allison
e131c94ac1
More const fixes for compiler warnings from the waf build.
2011-05-05 23:56:07 +02:00
Günther Deschner
653b84d2d6
s3-libads: run minimal_includes.pl.
...
Guenther
2011-05-05 02:05:26 +02:00
Andrew Bartlett
5cc7a3a222
s3-libads Move variables into if (socket_wrapper_dir()) where they are used.
2011-04-29 16:38:12 +10:00
Andrew Bartlett
a427652010
s3-libads: Use ldap_init_fd() to connect to AD server in socket_wrapper
...
This means that we control the connection setup, don't rely on signals
for timeouts and the connection uses socket_wrapper where that is
required in our test environment.
According to bug reports, this method is also used by curl and other
tools, so we are not the first to (ab)use the OpenLDAP libs in this
way.
It is ONLY enabled for socket_wrapper at this time, as this is the
best way to get 'make test' working for S3 winbind tests in an S4
domain.
Andrew Bartlett
2011-04-28 05:30:21 +02:00
Andrew Bartlett
818ec32d0c
s3-libads Pass a struct sockaddr_storage to cldap routines
...
This avoids these routines doing a DNS lookup that has already been
done, and ensures that the emulated DNS lookup isn't thrown away.
Andrew Bartlett
2011-04-28 05:30:20 +02:00
Andrew Bartlett
e130dec97b
s3-libsmb Use 'resolv:hosts file' as a DNS emulation when specified.
...
This allows make test to operate without making real DNS calls.
Andrew Bartlett
2011-04-27 11:40:18 +10:00
Andrew Bartlett
806eef63ba
s3-libads Don't start a DEBUG with 'time'
...
This strange requirement comes from our subunit test harness.
Andrew Bartlett
2011-04-27 11:25:53 +10: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
Volker Lendecke
f9e3af71d3
s3: Fix Coverity ID 2336, NULL_RETURNS
2011-04-22 10:06:36 +02:00
Andrew Bartlett
f28f5db15a
libcli/auth Move PAC parsing and verification in common.
...
This uses the source3 PAC code (originally from Samba4) with some
small changes to restore functionality needed by the torture tests,
and to have a common API.
Andrew Bartlett
2011-04-20 04:31:07 +02:00
Günther Deschner
6768b65123
s3-waf: try to fix the non-ldap-but-krb5 build.
...
Guenther
2011-04-15 12:37:55 +02:00
Günther Deschner
9824e2e5ee
s3-rpc_client: add and use rpc_client/rpc_client.h.
...
Guenther
2011-04-13 22:23:59 +02:00
Günther Deschner
a730dff783
s3-libndr: add ../librpc/ndr/libndr.h include in some places.
...
Guenther
2011-03-31 00:14:01 +02:00
Günther Deschner
49ccae1c20
s3-includes: no point in including all security headers globally.
...
Guenther
2011-03-30 01:13:07 +02:00
Günther Deschner
0e771263ee
s3-includes: only include system/filesys.h when needed.
...
Guenther
2011-03-30 01:13:07 +02:00
Günther Deschner
2639f0b3ab
s3-prototypes: remove protos of some dead functions.
...
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Thu Mar 24 00:52:01 CET 2011 on sn-devel-104
2011-03-24 00:52:01 +01:00
Volker Lendecke
8dc93bed09
s3: Fix Coverity ID 770, REVERSE_INULL
...
We dereference "res" in various places, no point in checking. All current
callers send "res!=NULL".
2011-03-21 15:40:10 +01:00
Günther Deschner
3aa9d3005a
s3-build: only include asn1 headers where actually needed.
...
Guenther
2011-03-16 23:46:18 +01:00
Günther Deschner
fad0112373
s3-build: stop including ldap and lber headers everywhere in the code.
...
Instead use new header smb_ldap.h where all LDAP API related things are handled,
while smbldap.h only deals with our smbldap_X() API.
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Mar 16 10:54:51 CET 2011 on sn-devel-104
2011-03-16 10:54:50 +01:00