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

64 Commits

Author SHA1 Message Date
Andrew Bartlett
40088b9566 r8511: This 'can't happen', but GCC gives warnings because it thinks it can.
Andrew Bartlett
2007-10-10 13:29:33 -05:00
Stefan Metzmacher
c4c93eeec2 r8363: - we need to correct the realm for the krbtgt/NETBIOSDOMAINREALM
into krbtgt/DNS.DOMAIN.REALM too
  with this a windows client asks for the correct ticket when you try to login
  (but it's still not working correct, as some how we mess up the dns host name of the
   client and it asks for the wrong service principal)

- fix some compiler wranings
- fix some debug messages

metze
2007-10-10 13:20:12 -05:00
Andrew Bartlett
33dcbe938d r8249: Clarify (with a comment) why we are playing these games here.
Andrew Bartlett
2007-10-10 13:19:25 -05:00
Andrew Bartlett
a0ad13f5bc r8181: Allow host/foo.realm/realm@REALM requests, assuming that the realm
forms both differ only in case.  We may need a better solution than
this later.

Andrew Bartlett
2007-10-10 13:19:17 -05:00
Andrew Bartlett
e2015671c2 r7993: Further work on the Krb5 PAC.
We now generate the PAC, and can verifiy both our own PAC and the PAC
from Win2k3.

This commit adds the PAC generation code, spits out the code to get
the information we need from the NETLOGON server back into a auth/
helper function, and adds a number of glue functions.

In the process of building the PAC generation code, some hints in the
Microsoft PAC specification shed light on other parts of the code, and
the updates to samr.idl and netlogon.idl come from those hints.

Also in this commit:

The Heimdal build package has been split up, so as to only link the
KDC with smbd, not the client utils.

To enable the PAC to be veified with gensec_krb5 (which isn't quite
dead yet), the keyblock has been passed back to the calling layer.

Andrew Bartlett
2007-10-10 13:18:57 -05:00
Andrew Bartlett
9886aa6f0e r7969: It seems reasonable that our tickets be marked renewable, in the
absense of an apparent AD flag to control this behaviour.

Andrew Bartlett
2007-10-10 13:18:55 -05:00
Andrew Bartlett
2358e0c0e4 r7765: Thanks to Maurice Massar <massar@unix-ag.uni-kl.de> for spotting that
I missed one spot in moving from hdb_ent_type to the
internal-to-hdb-ldb hdb_ldb_ent_type, which results in a

Kerberos: Server has invalid flag set -- krbtgt/....@....

on kinit.

Andrew Bartlett
2007-10-10 13:18:33 -05:00
Andrew Bartlett
fb83465dbc r7680: Move to using our own private enum for the principal type inside the
hdb-ldb module.  This removes the need for the KRBTGT case to exist in
the broader heimdal code.

Andrew Bartlett
2007-10-10 13:18:21 -05:00
Andrew Bartlett
a948e743bb r7651: Only convert SERVER requests to KRBTGT requests.
Andrew Bartlett
2007-10-10 13:18:17 -05:00
Andrew Bartlett
7f6a7f7fc5 r7520: Fix memory leak in hdb-ldb.c
Andrew Bartlett
2007-10-10 13:18:05 -05:00
Andrew Bartlett
13cf51612d r7304: Make the libkdc actually work:
- Remove (some) excess logging
 - use samdb_connect() to hook into the right handling for multiple tdb handles
 - move the connect to the server startup, rather than per-packet.
 - Fix config.mk dependency

Tested with a WinXP domain join.

Andrew Bartlett
2007-10-10 13:17:39 -05:00
Andrew Bartlett
63272794c4 r7270: A big revamp to the way we handle kerberos errors in Samba4. We now
fill in the function pointers to handle the logging, and catch all the
kerberos warnings. (Currently at level 3).

To avoid a memory leak, this requries a new function: krb5_freelog(),
which I've added to lorikeet/heimdal.

This also required a revamp to how we handle the krb5_context, so as
to make it easier to handle with talloc destructors.

Andrew Bartlett
2007-10-10 13:17:34 -05:00
Andrew Tridgell
7cbb95d3f5 r7264: fix up the socket handling for abartlet. Still only udp, but it won't
be hard to do tcp as well.
2007-10-10 13:17:33 -05:00
Andrew Bartlett
26cd4b4f68 r7241: The KDC almost links...
Using current lorikeet/heimdal, and with the KDC module enabled (it is
disabled by default), I almost get the KDC to link.

(To enable the KDC for testing, comment out the only line in
smbd/config.m4, and add 'kdc' to the 'server services' line in
smb.conf).
2007-10-10 13:17:30 -05:00