1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-28 12:23:49 +03:00
Commit Graph

736 Commits

Author SHA1 Message Date
Günther Deschner
f7100156a7 Finally enable pidl generated SAMR & NETLOGON headers and clients.
Guenther
2008-01-17 16:54:46 +01:00
Jeremy Allison
79b7972de4 Tidy up code and debug for non-default krb5 IPv6 port.
Jeremy.
2008-01-16 13:28:24 -08:00
Jeremy Allison
f2aa921505 Fix IPv6 bug #5204, which caused krb5 DNS lookups
for a name '[<ipv6 addr>'.
Jeremy.
2008-01-16 13:21:46 -08:00
Günther Deschner
b7a06b54e0 Fix memleak in ads_build_path().
Guenther
2008-01-16 16:06:15 +01:00
Günther Deschner
44d67e8462 Print principal in debug statement in kerberos_kinit_password() as well.
Guenther
2008-01-14 18:39:08 +01:00
Jeremy Allison
0599d57eff Fix CID 476. Ensure a valid pac_data pointer is always passed to
ads_verify_ticket as it's always derefed.
Jeremy.
2008-01-11 23:53:27 -08:00
Jeremy Allison
1b7cc80c61 Coverity 512, uninitialized var.
Jeremy.
2008-01-11 23:43:33 -08:00
Günther Deschner
ddc1307844 Do not ignore provided machine_name in ads_get_upn().
Guenther
2008-01-08 14:07:01 +01:00
Michael Adam
2e5d01b214 Re-Indent function ldap_open_with_timeout().
This reverts commit #cafda34783f0961c9b463803c19cfcb69f836e3f .

I just learned (the hard way) that these indeted functions
are not indented by accident but that the intention of this
is to not include the prototype into proto.h.

Michael
2008-01-04 22:56:10 +01:00
Michael Adam
7d9d2de390 Add a debug message (when the LDAP server has really been connected).
Michael
2008-01-04 22:09:36 +01:00
Michael Adam
465a3b356c Untangle assignment and result check.
Michael
2008-01-04 22:09:36 +01:00
Michael Adam
9e70d1f24d Enhance DEBUG-verbosity of ldap_open_with_timeout().
Michael
2008-01-04 22:09:36 +01:00
Michael Adam
cafda34783 Unindent function header.
Michael
2008-01-04 22:09:35 +01:00
Michael Adam
71c3c8ad4c Fix a misleading DEBUG message.
At this stage, the (tcp) connection to the LDAP server has not
been established, this is what is about to be attempted. What
has been succesfully done, is a CLDAP netlogon query.

Michael
2008-01-04 22:09:35 +01:00
Günther Deschner
5bbceac881 Add ads_get_joinable_ous().
Guenther
2008-01-03 18:15:59 +01:00
Volker Lendecke
54576733d6 Make use of [un]marshall_sec_desc 2007-12-29 23:13:03 +01:00
Jeremy Allison
d78045601a Add SMB encryption. Still fixing client decrypt but
negotiation works.
Jeremy.
2007-12-26 17:12:36 -08:00
Simo Sorce
814c1b0e00 While 'data' is usually 0 terminated, nothing in the spec requires that. The correct way is to copy only 'length' bytes.
Simo.
2007-12-17 15:26:08 -05:00
Volker Lendecke
ced0c42f05 make use of unmarshall_sec_desc 2007-12-16 14:15:16 +01:00
Jeremy Allison
44918f39c0 Doh, fix typo in error exit.
Jeremy.
2007-12-15 23:32:28 -08:00
Jeremy Allison
d0e33840fb Added patch originally by Andreas Schneider <anschneider@suse.de>
to cause us to behave like Vista when looking for remote
machine principal. Modified by me.
Jeremy.
2007-12-15 23:22:25 -08:00
Volker Lendecke
eb523ba776 s/sid_to_string/sid_to_fstring/
least surprise for callers
2007-12-15 22:47:30 +01:00
Volker Lendecke
c7c885078b Replace sid_string_static with sid_to_string
This adds 28 fstrings on the stack, but I think an fstring on the stack is
still far better than a static one.
2007-12-15 22:09:37 +01:00
Volker Lendecke
0a911d38b8 Use sid_string_talloc where we have a tmp talloc ctx 2007-12-15 22:09:36 +01:00
Volker Lendecke
bb35e794ec Replace sid_string_static by sid_string_dbg in DEBUGs 2007-12-15 22:09:36 +01:00
Michael Adam
1000c98eae Remove an incredible amount of whitespace.
Sorry - could not resist. Michael
2007-12-06 14:08:54 +01:00
Stefan Metzmacher
b55b19190d libads: fix typo
metze
2007-12-06 09:54:19 +01:00
Volker Lendecke
31d0a846db Remove some globals 2007-12-05 14:39:07 +01:00
Jeremy Allison
f9c8d62389 Make strhex_to_str clear on string limits. Remove pstring from web/*.c
Jeremy.
2007-12-03 17:17:05 -08:00
Volker Lendecke
1fab16ffb8 Remove some statics 2007-11-27 14:18:47 +01:00
Volker Lendecke
3088bc76f1 Remove a global 2007-11-26 17:48:40 +01:00
Jeremy Allison
809f5ab4c5 More pstring removal....
Jeremy.
2007-11-20 18:55:36 -08:00
Jeremy Allison
a1725f4ff7 Add MAX_DNS_NAME_LENGTH, remove more pstrings.
Jeremy.
2007-11-15 18:27:26 -08:00
Jeremy Allison
bda8c0bf57 Fix the setup_kaddr() call to cope with IPv6.
This is the last obvious change I can see. At
this point we can start claiming IPv6 support
(Hurrah !:-).
Jeremy.
2007-10-29 15:03:36 -07:00
Jeremy Allison
814daded90 Change our DNS code to cope with AAAA records. A6 records
look like a nightmare to use, so ignore them for now.
Jeremy.
2007-10-29 13:34:00 -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
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
Gerald (Jerry) Carter
5c6c8e1fe9 [GLUE] Rsync SAMBA_3_2_0 SVN r25598 in order to create the v3-2-test branch. 2007-10-10 15:34:30 -05:00
Michael Adam
3e155b249e r25422: Get rid of some cast warnings. 2007-10-10 12:31:04 -05:00
Gerald Carter
00a93ed336 r25407: Revert Longhorn join patch as it is not correct for the 3.2 tree.
The translate_name() used by cli_session_setup_spnego() cann rely
Winbindd since it is needed by the join process (and hence before
Winbind can be run).
2007-10-10 12:31:03 -05:00
Gerald Carter
8304ccba73 r25400: Windows 2008 (Longhorn) Interop fixes for AD specific auth2 flags,
and client fixes.  Patch from Todd Stetcher <todd.stetcher@isilon.com>.
2007-10-10 12:31:02 -05:00
Günther Deschner
53c99d415d r25328: When using ldap sasl wrapping with gssapi it's important to receive warnings
for clock-skew errors.

Guenther
2007-10-10 12:31:00 -05:00
Jeremy Allison
fe30a523df r25165: Use talloc_asprintf_append_buffer with an unmodified
string.
Jeremy.
2007-10-10 12:30:47 -05:00
Günther Deschner
cb2dc715e3 r25133: Fix sasl wrapping (for ldap sign&seal).
The gss_import_name() broke as we switched from the internal MIT OID
"gss_nt_krb5_principal" to "GSS_KRB5_NT_PRINCIPAL_NAME" and didn't switch from
passing the krb5_principal (or better: a pointer to that, see MIT's "*HORRIBLE*
bug") to pass the string principal directly.

Jerry, Jeremy, neither I could figure out the need of passing in a
krb5_principal at all nor could I reproduce the crash you were seeing.

I sucessfully tested the code (now importing a string) with MIT 1.2.7, 1.3.6,
1.4.3, 1.5.1, 1.6.1 and Heimdal 0.7.2, 1.0, 1.0.1.

Guenther
2007-10-10 12:30:43 -05:00
Günther Deschner
2dea9464bb r25109: Remove obsolete argument from ads_guess_service_principal().
Guenther
2007-10-10 12:30:41 -05:00
Günther Deschner
f31949ec34 r25108: Make ifdef labyrinth in sasl code a bit more readable.
Guenther
2007-10-10 12:30:40 -05:00
Günther Deschner
7e4dcf8e7e r25080: Once we decrypted the packet but have timing problems (closkew, tkt not yet or
no longer valid) there is no point to bother the keytab routines.

Guenther
2007-10-10 12:30:38 -05:00
Lars Müller
287604a1c7 r25030: ip_srv_nonsite and count_nonsite are initialized in get_kdc_list() in any
case.
2007-10-10 12:30:36 -05:00
Michael Adam
58d31e057b r24836: Initialize some uninitialized variables.
This prevents a segfault when get_kdc_ip_string() is called
with sitename == NULL.

Michael
2007-10-10 12:30:26 -05:00
Günther Deschner
af90c6949c r24833: Move locator to nsswitch (does not belong to libads anymore).
Guenther
2007-10-10 12:30:26 -05:00