Samba

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • kerberos_derive_salting_principal() is bogus code

    5 answers - 971 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    PGP SIGNED MESSAGE
    Hash: SHA1
    Jeremy,
    Unless I am badly mistaken, this is cannot work. I've even
    stepped though with gdb and we never actually succeed in derving
    the salting principal for DES keys. Here's why:
    () sends a TGS
    for the proposed service principal and then tries to decrypt
    it with the passed in encytype. The problem
    is that the service ticket will always be sealed with the
    the strongest key associated with the principal which in
    an AD domain is always RC4-HMAC. But we always skip this
    enctype in ().
    I just don't see any point to this code at all.
    ciao, jerry
    Samba http://www.samba.org
    Centeris http://www.centeris.com
    "What man is a man who does not make the world better?"
    PGP SIGNATURE
    Version: GnuPG v1.4.2 (GNU/Linux)
    Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
    x1RVLPI3NQBjqlVvhqNVNHY=
    =KzcE
    PGP SIGNATURE
  • No.1 | | 956 bytes | |

    Wed, Jul 05, 2006 at 05:14:03PM -0500, Gerald (Jerry) Carter wrote:
    PGP SIGNED MESSAGE
    Hash: SHA1

    Jeremy,

    Unless I am badly mistaken, this is cannot work. I've even
    stepped though with gdb and we never actually succeed in derving
    the salting principal for DES keys. Here's why:

    () sends a TGS
    for the proposed service principal and then tries to decrypt
    it with the passed in encytype. The problem
    is that the service ticket will always be sealed with the
    the strongest key associated with the principal which in
    an AD domain is always RC4-HMAC. But we always skip this
    enctype in ().

    I just don't see any point to this code at all.

    What if this were an smbclient kerborized connection
    using an MIT kdc ? I do recall the person who sent
    in this code originally was using an MIT kdc (although
    I could have been mistaken, it was a while ago).

    Jeremy.
  • No.2 | | 914 bytes | |

    PGP SIGNED MESSAGE
    Hash: SHA1

    Jeremy Allison wrote:

    What if this were an smbclient kerborized connection
    using an MIT kdc ? I do recall the person who sent
    in this code originally was using an MIT kdc (although
    I could have been mistaken, it was a while ago).

    You miss the point though. This is done when running
    'net ads join'. That code has nothing to do with non-MS
    realms. I'm not saying that DES keys are not useful, I'm
    saying the derive salting principal code is broken on
    systems with RC4-HMAC support.

    cheers, jerry

    Samba http://www.samba.org
    Centeris http://www.centeris.com
    "What man is a man who does not make the world better?"
    PGP SIGNATURE
    Version: GnuPG v1.4.2 (GNU/Linux)
    Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

    CY/SSKKNPNTMChLaQaP3peg=
    =4bPL
    PGP SIGNATURE
  • No.3 | | 1171 bytes | |

    PGP SIGNED MESSAGE
    Hash: SHA1

    Gerald (Jerry) Carter wrote:
    Jeremy,

    Unless I am badly mistaken, this is cannot work. I've even
    stepped though with gdb and we never actually succeed in derving
    the salting principal for DES keys. Here's why:

    () sends a TGS
    for the proposed service principal and then tries to decrypt
    it with the passed in encytype. The problem
    is that the service ticket will always be sealed with the
    the strongest key associated with the principal which in
    an AD domain is always RC4-HMAC. But we always skip this
    enctype in ().

    I just don't see any point to this code at all.

    I take it back. If the machine account has the DESNLY
    flag set, then this code would make sense. But running
    it in the presence of RC4-HMAC support does not.

    cheers, jerry

    Samba http://www.samba.org
    Centeris http://www.centeris.com
    "What man is a man who does not make the world better?"
    PGP SIGNATURE
    Version: GnuPG v1.4.2 (GNU/Linux)
    Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

    WmR7SyaPavXB3XUVHcs=
    =rK+
    PGP SIGNATURE
  • No.4 | | 448 bytes | |

    Wed, Jul 05, 2006 at 05:42:05PM -0500, Gerald (Jerry) Carter wrote:

    You miss the point though. This is done when running
    'net ads join'. That code has nothing to do with non-MS
    realms. I'm not saying that DES keys are not useful, I'm
    saying the derive salting principal code is broken on
    systems with RC4-HMAC support.

    Ah ok - can we easily avoid it doing net ads join then ?

    Jeremy.
  • No.5 | | 911 bytes | |

    Wed, 2006-07-05 at 17:42 -0500, Gerald (Jerry) Carter wrote:
    PGP SIGNED MESSAGE
    Hash: SHA1

    Jeremy Allison wrote:

    What if this were an smbclient kerborized connection
    using an MIT kdc ? I do recall the person who sent
    in this code originally was using an MIT kdc (although
    I could have been mistaken, it was a while ago).

    You miss the point though. This is done when running
    'net ads join'. That code has nothing to do with non-MS
    realms. I'm not saying that DES keys are not useful, I'm
    saying the derive salting principal code is broken on
    systems with RC4-HMAC support.

    It was written for old RHEL systems without that support.

    Better would be to actually ask for the salt, either by a modified
    kerberos API, or volker's mini-krb5 testing implementation, as we only
    need to process 2 packets.

    Andrew Bartlett

Re: kerberos_derive_salting_principal() is bogus code


max 4000 letters.
Your nickname that display:
In order to stop the spam: 3 + 2 =
QUESTION ON "Samba"

EMSDN.COM