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

695 Commits

Author SHA1 Message Date
Jelmer Vernooij
9647f860bd r24814: Fix headers, trim core.h even more. 2007-10-10 15:03:14 -05:00
Jelmer Vernooij
31993cf67b r24780: More work allowing libutil to be used by external users. 2007-10-10 15:03:10 -05:00
Andrew Bartlett
7865d10a29 r24730: Allow secrets entries to be for service principals.
Andrew Bartlett
2007-10-10 15:02:59 -05:00
Jelmer Vernooij
1ce32673d9 r24712: No longer expose the 'BOOL' data type in any interfaces. 2007-10-10 15:02:54 -05:00
Andrew Bartlett
52cce94532 r24504: Try to return more useful error information on why a bind failed.
Note that the correct return for a failed alter_context is a fault,
not a bind_nak.

Andrew Bartlett
2007-10-10 15:02:03 -05:00
Andrew Bartlett
a650ad8b37 r24282: Try to fix the occasional Samba4 crash in BASE-BENCH-READWRITE, as
seen in particular on opi.

This looked like a Heimdal problem, but I think it was simply that we
didn't do a talloc_reference() to keep tabs on the memory we were
using, and in between obtaining the pointer and using it, it was
assigned to unrelated memory.

Andrew Bartlett
2007-10-10 15:01:35 -05:00
Andrew Bartlett
5e07417ada r24074: Test both permitted logon hours and permitted workstations in the
RPC-SAMLOGON test.

This showed that, as noted by bug #4823, we didn't test for invalid
workstations.  In fact, the code had been ported across, but because
untested code is broken code, it never worked...

Andrew Bartlett
2007-10-10 15:01:21 -05:00
Andrew Bartlett
a4939ab629 r24061: Anther part of bug #4823, which is that until now Samba4 didn't parse
the logon hours, even if set.

This code happily stolen from the great work in Samba3 :-)

Andrew Bartlett
2007-10-10 15:01:21 -05:00
Andrew Bartlett
dc27a7e41c r23810: Make things static, and remove unsued code.
This includes some of the original ildap ldap client API.  ldb
provides a much easier abstraction on this to use, and doesn't use
these functions.

Andrew Bartlett
2007-10-10 14:59:21 -05:00
Andrew Tridgell
5c9b19271e r23801: The FSF has moved around a lot. This fixes their Mass Ave address. 2007-10-10 14:59:18 -05:00
Andrew Tridgell
40c0919aaa r23798: updated old Temple Place FSF addresses to new URL 2007-10-10 14:59:15 -05:00
Andrew Tridgell
84b468b2f8 r23795: more v2->v3 conversion 2007-10-10 14:59:14 -05:00
Andrew Tridgell
fcf38a38ac r23792: convert Samba4 to GPLv3
There are still a few tidyups of old FSF addresses to come (in both s3
and s4). More commits soon.
2007-10-10 14:59:12 -05:00
Andrew Bartlett
b7e727186e r23680: Make it easier to setup a domain member server - the 'server role'
will now control the auth methods, but an override is still available,
ex:

auth methods:domain controller = <methods>

Andrew Bartlett
2007-10-10 14:59:00 -05:00
Andrew Bartlett
37e7070ca9 r23455: These buffers may not be null terminated. Ensure we don't run past the
end of teh buffer printing the error strings.

Andrew Bartlett
2007-10-10 14:53:17 -05:00
Kai Blin
553b7e146f r23311: Updating the samba4 winbind protocol to version 18.
nsswitch/winbindd_nss.h is just copied from SAMBA_3_0.
nsswitch/winbind_nss_config.h is copied from SAMBA_3_0, too, but I had to
drop some of the defines to make things build again.

Kai
2007-10-10 14:53:10 -05:00
Andrew Bartlett
cbdce358ae r23136: Set the event context onto the credentials in more places.
This helps ensure that the kerberos code uses the right event context.

Andrew Bartlett
2007-10-10 14:52:54 -05:00
Andrew Bartlett
d285bd927c r23132: Resolve an issue where we would use the ccache after we free()ed it.
The problem was, we would set the ccache, then invalidate it as we set
details from it (like the principal name from the ccache).

Instead, set the ccache onto the credentials structure after we are
done processing it.

Andrew Bartlett
2007-10-10 14:52:53 -05:00
Andrew Bartlett
3b1dfb9306 r23063: Make sure to invalidate the ccache when we set a
username/password/realm/etc from the command line.

Also make sure it can't 'come back' from a later call to
cli_credentials_guess(), buy setting a threshold.

This should fix the issues with the build farm...

Andrew Bartlett
2007-10-10 14:52:46 -05:00
Andrew Tridgell
26cf849408 r23036: error checking on asn1_init() failure 2007-10-10 14:52:43 -05:00
Andrew Bartlett
ec2014f08b r23034: Thanks to metze for providing some vital clues in the 'kerberos ccache
on credentials don't do anything' bug.

The problem was simple, we didn't set the ccache as having been
initialised, so we always created a new one.

Andrew Bartlett
2007-10-10 14:52:43 -05:00
Andrew Tridgell
3db49c2ec9 r23030: finally fixed up our asn1 code to use better memory allocation. This
should allow us to fix some long standing memory leaks.
2007-10-10 14:52:42 -05:00
Stefan Metzmacher
876a6ef485 r22990: free temporary memory also on success...
metze
2007-10-10 14:52:37 -05:00
Andrew Bartlett
3aa9d70723 r22987: Clarify how the events are handled in the kerberos code, and
standardise with the rest of the code.

Andrew Bartlett
2007-10-10 14:52:36 -05:00
Andrew Tridgell
c0f65eb656 r22969: fix some more places where we could end up with more than one event
context. We now have an event context on the torture_context, and we
can also get one from the cli_credentials structure
2007-10-10 14:52:34 -05:00
Andrew Bartlett
2a7dec4e5d r22967: Move to the TCP packet interface for the krb5_send_to_kdc plugin.
This replaces a lump of hand-crafted code with the generic packet
system used in the rest of Samba4.

(I started this while chasing down the epoll bug, which turned out to
be seperate)
2007-10-10 14:52:33 -05:00
Andrew Bartlett
9dc6f36e43 r22966: Make sure to return LOGON_FAILURE if the user's kerberos password is
incorrect.

Andrew Bartlett
2007-10-10 14:52:33 -05:00
Andrew Tridgell
46a7d83c2b r22961: use EVENT_FD_AUTOCLOSE and SOCKET_FLAG_NOCLOSE to fix up some hairy
problems with order of socket closing in krb5
2007-10-10 14:52:32 -05:00
Stefan Metzmacher
b54584dfab r22748: fix memleaks by passing an mem_ctx to
irpc_servers_byname()

metze
2007-10-10 14:52:09 -05:00
Stefan Metzmacher
f0a12355bc r22635: make it possible to not turn off dns canonicalization of hostnames
with krb5:set_dns_canonicalize=yes

needed for the drsuapi replication, but we should fix this with
a kdc locator plugin ...

metze
2007-10-10 14:51:56 -05:00
Stefan Metzmacher
44c27b2fe6 r22627: fix crash msgs_tmp isn't always initialized
and we don't need an extra allocated string anyway

metze
2007-10-10 14:51:55 -05:00
Stefan Metzmacher
255acbb113 r22621: fix the 'sam' auth module
metze
2007-10-10 14:51:54 -05:00
Jelmer Vernooij
5ff665b653 r22602: s/HAVE_SOCKET_IPV6/HAVE_IPV6/ to match the define used by Heimdal. 2007-10-10 14:51:50 -05:00
Andrew Bartlett
367231ea21 r22594: This helped coax out valgrind errors last night, but we don't need it any more.
Andrew Bartlett
2007-10-10 14:51:48 -05:00
Andrew Bartlett
bd26e4ffaf r22582: Cleanups towards making winbind work again. We still have a long way to go, as this has bitrotted over the past months.
This change in particular catches winbind up with the next
composite_create() function.

We also needed to remove an unused flags field, and fill in the lm
response.

Andrew Bartlett
2007-10-10 14:51:47 -05:00
Andrew Bartlett
0fd74ada22 r22558: Move to a static list of enctypes to put into our keytab. In future,
I'll allow this to be configured from the secrets.ldb, but it should
fix some user issues.

Andrew Bartlett
2007-10-10 14:51:43 -05:00
Stefan Metzmacher
e0e35965d1 r22404: more dependencies which should be private
metze
2007-10-10 14:51:14 -05:00
Stefan Metzmacher
a6ba465fa8 r22397: hopefully fix the build on some aix hosts in the build-farm
we need to make sure -Iheimdal/lib/gssapi comes before -I/usr/local/include

metze
2007-10-10 14:51:13 -05:00
Stefan Metzmacher
fbf1b1bfa0 r22387: see if this fixes the build on the aix1 hosts
metze
2007-10-10 14:51:12 -05:00
Stefan Metzmacher
c8a210bc6f r22385: remove unused include
metze
2007-10-10 14:51:12 -05:00
Andrew Bartlett
9e0c0cd0ff r22294: Lock the delegated credentials to being kerberos only, we just don't
have the data for anything else.

Andrew Bartlett
2007-10-10 14:50:58 -05:00
Andrew Bartlett
144ab7294d r22293: Try to make it more clear what failed to parse.
Andrew Bartlett
2007-10-10 14:50:57 -05:00
Andrew Bartlett
bbde5b6a2f r22208: Print the target principal name, to help with kdc unreachable errors.
Andrew Bartlett
2007-10-10 14:50:38 -05:00
Stefan Metzmacher
4e8f844be9 r22199: fix typo
metze
2007-10-10 14:50:37 -05:00
Andrew Bartlett
16a2bb87a8 r22187: Test kerberos logins in the smbclient blackbox tests, including with a
machine account.

Andrew Bartlett
2007-10-10 14:50:01 -05:00
Andrew Bartlett
305d1421ef r22115: I don't like the DOMAIN environment variable. It really isn't a good
match for what we are using it for here.

Andrew Bartlett
2007-10-10 14:49:51 -05:00
Andrew Bartlett
3430d8c072 r21736: Fix the smbclient test to do something more interesting with the last
few authentication tests.  Now that the tests correctly 'fail', I was
able to fix the credentials subsystem to honour USER and PASSWD.

To get --machine-pass working, I needed ldb to always load it's static
modules, so I put this in ldb_connect().

Andrew Bartlett
2007-10-10 14:49:20 -05:00
James Peach
73cea4e0c6 r21668: Add SMB_QFS_POSIX_WHOAMI to trans2.h so it's easy to find. Add
convenience API to create an anonymous credential. Don't clobber
cmdline_credentials in the UNIX-WHOAMI test.
2007-10-10 14:49:07 -05:00
Stefan Metzmacher
426238eb45 r21451: if kerberos is requested ( -k yes ), we should use authentificated connections
metze
2007-10-10 14:48:37 -05:00
Stefan Metzmacher
e20b53f6fe r21434: - get rid of "krb5Key"
- use "sambaPassword" only as virtual attribute for passing
  the cleartext password (in unix charset) into the ldb layer
- store des-cbc-crc, des-cbc-md5 keys in the Primary:Kerberos
  blob to match w2k and w2k3
- aes key support is disabled by default, as we don't know
  exacly how longhorn stores them. use password_hash:create_aes_key=yes
  to force creation of them.
- store the cleartext password in the Primary:CLEARTEXT blob
  if configured

TODO:
 - find out how longhorn stores aes keys
 - find out how the Primary:WDigest blob needs to be constructed
   (not supported by w2k)

metze
2007-10-10 14:48:34 -05:00