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

80 Commits

Author SHA1 Message Date
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
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 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
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 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
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
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
fbf1b1bfa0 r22387: see if this fixes the build on the aix1 hosts
metze
2007-10-10 14:51:12 -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
dc4242c09c r21362: rename:
"ntPwdHash" => "unicodePwd"
"lmPwdHash" => "dBCSPwd"
"sambaLMPwdHistory" => "lmPwdHistory"
"sambaNTPwdHistory" => "ntPwdHistory"

Note: you need to reprovision after this change!

metze
2007-10-10 14:48:20 -05:00
Stefan Metzmacher
a246e4bbaa r21314: add more usefull debug output
metze
2007-10-10 14:48:08 -05:00
Stefan Metzmacher
1f8a037ac4 r21142: fix compiler warnings
metze
2007-10-10 14:44:33 -05:00
Andrew Bartlett
6ce557a1af r21135: Instead of having hooks to update keytabs as an explicit thing, update
them as a hook on ldb modify, via a module.

This should allow the secrets.ldb to be edited by the admin, and to
have things update in the on-disk keytab just as an in-memory keytab
would.

This isn't really a dsdb plugin, but I don't have any other good ideas
about where to put it.

Andrew Bartlett
2007-10-10 14:44:31 -05:00
Stefan Metzmacher
a91dc4a02a r20135: attach default gensec features to the cli_credentials structure,
so make it possible to force encryption or signing.

metze
2007-10-10 14:29:12 -05:00
Simo Sorce
3929c086d5 r19832: better prototypes for the linearization functions:
- ldb_dn_get_linearized
  returns a const string

- ldb_dn_alloc_linearized
  allocs astring with the linearized dn
2007-10-10 14:28:22 -05:00
Simo Sorce
a580c871d3 r19831: Big ldb_dn optimization and interfaces enhancement patch
This patch changes a lot of the code in ldb_dn.c, and also
removes and add a number of manipulation functions around.

The aim is to avoid validating a dn if not necessary as the
validation code is necessarily slow. This is mainly to speed up
internal operations where input is not user generated and so we
can assume the DNs need no validation. The code is designed to
keep the data as a string if possible.

The code is not yet 100% perfect, but pass all the tests so far.
A memleak is certainly present, I'll work on that next.

Simo.
2007-10-10 14:28:22 -05:00
Jelmer Vernooij
8768bec81f r19676: Fix some more dependencies. 2007-10-10 14:25:29 -05:00
Jelmer Vernooij
4422031d1d r19670: Reduce the number of unresolved symbols when building with shared libraries. 2007-10-10 14:25:27 -05:00
Andrew Bartlett
4826f17351 r19604: This is a massive commit, and I appologise in advance for it's size.
This merges Samba4 with lorikeet-heimdal, which itself has been
tracking Heimdal CVS for the past couple of weeks.

This is such a big change because Heimdal reorganised it's internal
structures, with the mechglue merge, and because many of our 'wishes' have been granted:  we now have DCE_STYLE GSSAPI, send_to_kdc hooks and many other features merged into the mainline code.  We have adapted to upstream's choice of API in these cases.

In gensec_gssapi and gensec_krb5, we either expect a valid PAC, or NO
PAC.  This matches windows behavour.  We also have an option to
require the PAC to be present (which allows us to automate the testing
of this code).

This also includes a restructure of how the kerberos dependencies are
handled, due to the fallout of the merge.

Andrew Bartlett
2007-10-10 14:25:03 -05:00
Andrew Bartlett
2b569c42e0 r19598: Ahead of a merge to current lorikeet-heimdal:
Break up auth/auth.h not to include the world.

Add credentials_krb5.h with the kerberos dependent prototypes.

Andrew Bartlett
2007-10-10 14:25:00 -05:00
Jelmer Vernooij
8143de855c r19573: Move secrets.o into param/ (subsystems haven't been integrated yet). 2007-10-10 14:24:55 -05:00
Simo Sorce
ad75cf8695 r17516: Change helper function names to make more clear what they are meant to do 2007-10-10 14:15:31 -05:00
Andrew Bartlett
d5fc88c936 r16218: If a connection is forced as 'anonymous', don't treat it as
'authentication requested'...

Andrew Bartlett
2007-10-10 14:09:06 -05:00
Andrew Tridgell
6b4c085b86 r15853: started the process of removing the warnings now that
talloc_set_destructor() is type safe. The end result will be lots less
use of void*, and less calls to talloc_get_type()
2007-10-10 14:08:32 -05:00
Jelmer Vernooij
26442023d1 r15702: Fix typo 2007-10-10 14:08:07 -05:00
Andrew Bartlett
f9bcfb04aa r15498: Initialise the callback_running field, and get the flag set/clear the
right way around for all the callers.

Andrew Bartlett
2007-10-10 14:05:42 -05:00
Jelmer Vernooij
edf0701e87 r15422: Fix issues with functions being called recursively in the credentials
callback code.
2007-10-10 14:05:35 -05:00
Andrew Bartlett
f989927789 r15421: Correct function comments.
Andrew Bartlett
2007-10-10 14:05:35 -05:00
Andrew Bartlett
4c4b8e4b39 r15420: Add a new function to print a the 'unparsed' string format for usernames.
This is used in the password prompt, and should be reversable by the
parse string function.

Also, don't look at the ccache, even for the guess code, if kerberos
is disabled.

Andrew Bartlett
2007-10-10 14:05:35 -05:00
Andrew Bartlett
3a4ddc8f59 r15415: Use Jelmer's new credentials 'wrong password' code to give the user 3
attempts for the password, when talking to a remote CIFS server.

Andrew Bartlett
2007-10-10 14:05:34 -05:00
Jelmer Vernooij
5de894fb8b r15414: Support retrying different username/password combinations 2007-10-10 14:05:34 -05:00
Jelmer Vernooij
3ef9326386 r15304: Fix smbd build, more updates on getting --enable-dso to build again 2007-10-10 14:05:08 -05:00
Jelmer Vernooij
5b3ab728ed r15297: Move create_security_token() to samdb as it requires SAMDB (and the rest of LIBSECURITY doesn't)
Make the ldb password_hash module only depend on some keys manipulation code, not full heimdal
Some other dependency fixes
2007-10-10 14:05:04 -05:00
Jelmer Vernooij
adc8a019b6 r15207: Introduce PRIVATE_DEPENDENCIES and PUBLIC_DEPENDENCIES as replacement
for REQUIRED_SUBSYSTEMS.
2007-10-10 14:04:18 -05:00
Andrew Tridgell
cd106509b6 r14977: more IBM checker fixes 2007-10-10 14:00:49 -05:00
Andrew Tridgell
23724bfd24 r14837: fixed build error 2007-10-10 13:59:25 -05:00
Andrew Bartlett
cb6c27b4f2 r14701: Allow, with non-default options, NTLMSSP to access the LM session key,
even when not sending the LM response.  Needed to pass the
test_session_key against Win2k3.

Yes, I think this is a security flaw in the use of Win2k3-compatible NTLM.

Andrew Bartlett
2007-10-10 13:59:10 -05:00
Jelmer Vernooij
430c6516d3 r14484: Install more headers 2007-10-10 13:57:31 -05:00
Jelmer Vernooij
3dd477ca51 r14464: Don't include ndr_BASENAME.h files unless strictly required, instead
try to include just the BASENAME.h files (containing only structs)
2007-10-10 13:57:27 -05:00
Jelmer Vernooij
1a16a6f1df r14380: Reduce the size of structs.h 2007-10-10 13:57:16 -05:00
Jelmer Vernooij
98c4c30513 r14363: Remove credentials.h from the global includes. 2007-10-10 13:57:14 -05:00
Jelmer Vernooij
2c74698032 r13960: Generate makefile rules for installing/removing shared modules. 2007-10-10 13:52:32 -05:00
Jelmer Vernooij
1228358767 r13924: Split more prototypes out of include/proto.h + initial work on header
file dependencies
2007-10-10 13:52:24 -05:00
Andrew Bartlett
1ac7976ea6 r13206: This patch finally re-adds a -k option that works reasonably.
From here we can add tests to Samba for kerberos, forcing it on and
off.  In the process, I also remove the dependency of credentials on
GENSEC.

This also picks up on the idea of bringing 'set_boolean' into general
code from jpeach's cifsdd patch.

Andrew Bartlett
2007-10-10 13:51:33 -05:00