1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-27 14:04:05 +03:00

4533 Commits

Author SHA1 Message Date
Andrew Tridgell
450ac2e4de r6812: more talloc portability tweaks 2007-10-10 13:16:46 -05:00
Andrew Bartlett
f4b7484516 r6811: Another attempt at better kerberos/gssapi headers.
Andrew Bartlett
2007-10-10 13:16:46 -05:00
Tim Potter
f377c71e4f r6810: Rename auth/{ntlmssp,gensec,kerberos} mk and m4 files to be called
config.mk and config.m4 to be consistent with the rest of Samba.
2007-10-10 13:16:46 -05:00
Andrew Tridgell
f4bfc3a80e r6809: ifeq is not portable in make - jelmer, you'll need to find some other way of doing
this if you want detection of socket wrapper :-)
2007-10-10 13:16:46 -05:00
Andrew Tridgell
c8a274c873 r6808: - test for gcov not needed
- samba malloc wrapper avoidance not needed now we don't use includes.h

- make testsuite work when BOOL, True, False already defined
2007-10-10 13:16:46 -05:00
Jelmer Vernooij
3541ebe31b r6807: Fix in-tree build of talloc testsuite 2007-10-10 13:16:46 -05:00
Andrew Bartlett
5749b63f17 r6806: Try again to fix the build on various kerberos libs.
Andrew Bartlett
2007-10-10 13:16:46 -05:00
Jelmer Vernooij
a02e077397 r6805: Remove two remaining references to gensec_gsskrb5 2007-10-10 13:16:45 -05:00
Jelmer Vernooij
c2ce09d380 r6804: Add config.h for talloc (and use it) 2007-10-10 13:16:45 -05:00
Andrew Bartlett
a7e2ecfac9 r6803: Try to bring in the correct GSSAPI headers for the krb5 mech. This
should allow us to ditch the local static storage for OIDs, as well as
fix the build on non-heimdal platforms.

Andrew Bartlett
2007-10-10 13:16:45 -05:00
Andrew Tridgell
235f5c510b r6802: - fixed CFLAGS
- don't fail if we don't have xsltproc
2007-10-10 13:16:45 -05:00
Andrew Bartlett
c8e8fa129e r6801: It appears that krb5_make_principal, while convenient, is not portable.
Andrew Bartlett
2007-10-10 13:16:45 -05:00
Andrew Bartlett
0101728d8e r6800: A big GENSEC update:
Finally remove the distinction between 'krb5' and 'ms_krb5'.  We now
don't do kerberos stuff twice on failure.  The solution to this is
slightly more general than perhaps was really required (as this is a
special case), but it works, and I'm happy with the cleanup I achived
in the process.  All modules have been updated to supply a
NULL-terminated list of OIDs.

In that process, SPNEGO code has been generalised, as I realised that
two of the functions should have been identical in behaviour.

Over in the actual modules, I have worked to remove the 'kinit' code
from gensec_krb5, and placed it in kerberos/kerberos_util.c.

The GSSAPI module has been extended to use this, so no longer requires
a manual kinit at the command line.  It will soon loose the
requirement for a on-disk keytab too.

The general kerberos code has also been updated to move from
error_message() to our routine which gets the Heimdal error string
(which may be much more useful) when available.

Andrew Bartlett
2007-10-10 13:16:45 -05:00
Andrew Bartlett
0268d6c46b r6799: Remove a rudundent variable from the context structure - we can figure
this out by asking GENSEC, just like everybody else.

Andrew Bartlett
2007-10-10 13:16:45 -05:00
Andrew Bartlett
31ff2cd8e1 r6798: Valgrind pain is not something I look forward to - if we ever fall
back to the 'not /dev/urandom' method of random number generation, I
don't want to be chasing down 'use of uninitialised value' though all
the crypto code.

Andrew Bartlett
2007-10-10 13:16:44 -05:00
Rafal Szczesniak
0f9a2aef6c r6797: Typo fix.
rafal
2007-10-10 13:16:44 -05:00
Andrew Bartlett
e8cf3d58ec r6796: Remove the gensec_gsskrb5 module, which had had all of it's special
features merged back into gensec_gssapi.

(Removed because I've made some API changes, and it isn't worth
'fixing' the rudundent code to cope with changes)

Andrew Bartlett
2007-10-10 13:16:44 -05:00
Jelmer Vernooij
46509eb899 r6795: Make some functions static and remove some unused ones. 2007-10-10 13:16:44 -05:00
Simo Sorce
f5956d1501 r6794: spellfix 2007-10-10 13:16:44 -05:00
Andrew Bartlett
6b9020661a r6793: Move auth_sam to use the dnsDomain rather than the
soon-to-be-depricated 'realm'.

Add torture test for this behaviour.

Andrew Bartlet
2007-10-10 13:16:44 -05:00
Andrew Bartlett
9153d73061 r6792: Allow a mech to fail on the first pass at the packet, and still fall
back to the other options.

Andrew Bartlett
2007-10-10 13:16:43 -05:00
Andrew Bartlett
5fa9be75d9 r6791: My early notes on the particular things I have discovered as I learn
kerberos, and how Microsoft constructs their kerberos implementation.

Andrew Bartlett
2007-10-10 13:16:43 -05:00
Jelmer Vernooij
c1f1b5a945 r6790: Use config.h file for ldb and add test for stdint.h 2007-10-10 13:16:43 -05:00
Jelmer Vernooij
9f1b15832d r6787: Use debhelper for the debian packages 2007-10-10 13:16:43 -05:00
Stefan Metzmacher
58c6887da4 r6781: -add some comments on how attributes and objectClasses are identified in DRSUAPI
-and some comments on what the attribute syntaxes matches what internal datatypes

metze
2007-10-10 13:16:43 -05:00
Andrew Tridgell
52d10c8d99 r6776: make the cldap torture test not dependent on the realm being set
correctly - it gets the realm from an initial no-attribute search
2007-10-10 13:16:43 -05:00
Simo Sorce
2f80b2070f r6768: Fix wrong comment 2007-10-10 13:16:42 -05:00
Tim Potter
45a0692be1 r6767: Fix compiler warning. 2007-10-10 13:16:42 -05:00
Andrew Tridgell
1d6ab9aaef r6766: some more cldap tests ...
my best guess now is that w2k3 converts the & in the cldap query to an |
for the ldap search. at least it behaves roughly like that.
2007-10-10 13:16:42 -05:00
Andrew Tridgell
177c8becd2 r6765: expanded the cldap test suite to test the usage of the DomainGuid,
AAC, and User attributes in cldap netlogon queries

interestingly, while WinXP generated cldap filters with these set, the
w2k3 cldap server seems to completely ignore them, so I didn't need to
alter our cldap server at all to pass the test :-)
2007-10-10 13:16:42 -05:00
Andrew Tridgell
7c1d0f449d r6764: added support for DomainGuid, DomainSid, AAC, and User attributes in
cldap netlogon queries
2007-10-10 13:16:42 -05:00
Andrew Tridgell
8890dd3ac3 r6763: added functions in libcli/ldap/ to binary encode some NDR structures into
ldap friendly filter strings
2007-10-10 13:16:42 -05:00
Andrew Tridgell
6f4ad382d4 r6762: with the zone right we don't need a fully qualified site name at all 2007-10-10 13:16:42 -05:00
Andrew Tridgell
1537558039 r6761: - not everyone is in my domain :-)
- started adding support for the other cldap attributes that XP uses
2007-10-10 13:16:41 -05:00
Jelmer Vernooij
39c8acdaa5 r6760: Update debian packages 2007-10-10 13:16:41 -05:00
Simo Sorce
5f10707e8a r6759: let us have a wildcard attribute so that we can set a default for all attributes
example:

*: CASE_INSENSITIVE

by placing it in the @ATTRIBUTES object you make all the matching be case insensitive
to make an excepion to the general rule now you just need to create an entry like:

name: CASE_SENSITIVE

the key CASE_SENSITIVE currently does not exist but has the effect of making the code
ignore the wildcard default flag and being ldb case sensitive by default it let the
"name" attribute be case sensitive again

Tridge, can you look at this commit?
Should we introduce a CASE_SENSITVE/BINARY flag and handle it in the code ?

Simo.
2007-10-10 13:16:41 -05:00
Jelmer Vernooij
8d63cd33a2 r6752: Patch by Steven Edwards to improve portability to mingw32 2007-10-10 13:16:41 -05:00
Andrew Tridgell
f0c37555ff r6751: dnsDomain should be CASE_INSENSITIVE (winxp will sometimes do a cldap query with this
in uppercase)
2007-10-10 13:16:41 -05:00
Andrew Tridgell
5aff7d36f3 r6750: some minor tweaks to the cldapd server
I can now join winxp -> samba4 DC using long name, and login. The nice
thing is there are no delays now, as the client likes the replies it gets
2007-10-10 13:16:41 -05:00
Andrew Tridgell
e564e3e596 r6747: first working version of cldapd server. It is missing 'sites' support, and
filling in some of the returned parameters is quite rough, but it seems to work OK
2007-10-10 13:16:41 -05:00
Andrew Tridgell
dc25be9d69 r6746: added ndr_push_union_blob() for pushing IDL unions into a DATA_BLOB 2007-10-10 13:16:40 -05:00
Andrew Tridgell
b644ff6fe1 r6745: - escape spaces in binary ldap blobs
- expose the ldap filter string parsing outside of ldap.c
2007-10-10 13:16:40 -05:00
Andrew Tridgell
992858e1b9 r6744: added support for reply packets in libcli/cldap/ 2007-10-10 13:16:40 -05:00
Andrew Tridgell
7af0c547e0 r6741: prevent talloc_strndup() from reading one byte past the end of a buffer,
giving valgrind errors
2007-10-10 13:16:40 -05:00
Andrew Tridgell
6d15e95111 r6740: make gensec_gssapi.c compile again 2007-10-10 13:16:40 -05:00
Andrew Bartlett
4a5829401b r6738: My version of the patch by metze that I just reverted (-r 6734).
This also includes other changes to reduce memory use by GENSEC when
not being used for sign/seal operations.  This should lower tridge's K
'per connection' benchmark further.

Andrew Bartlett
2007-10-10 13:16:40 -05:00
Andrew Bartlett
77d054c65a r6737: Explain these error returns a bit better.
Andrew Bartlett
2007-10-10 13:16:40 -05:00
Andrew Bartlett
27e6a853a5 r6736: Revert metze's -r 6734, as metze and I made the same changes at the
same time, but with different names.  This just helps me avoid
conflicts when I merge up my other changes.

Andrew Bartlett
2007-10-10 13:16:39 -05:00
Stefan Metzmacher
0c1cd40bce r6734: most compiler don't like struct elements without a name...
metze
2007-10-10 13:16:39 -05:00
Stefan Metzmacher
3536029e8f r6733: GSS_C_DCE_STYLE is not available for most builds
metze
2007-10-10 13:16:39 -05:00