Skip to content

How to use LdapSdk to delegate existing kerberos ticket to LdapConnection bind? #181

@gredwhite

Description

@gredwhite

I have the following architecture:

  • Samba(AD)
  • Web App (it sends requests to Samba) which is spring boot 3 application
  • Client

Client sends Kerberos ticket to web application and SpnegoAuthenticationProcessingFilter can handle it.

I've read about AD feature called Unconstrained delegation

Unconstrained delegation is a feature in Active Directory that allows a computer, service, or user to impersonate any other user and access resources on their behalf across the entire network, completely unrestricted.

And I need exactly that. I want user which login initially

  • Send requests to webapp with kerberos ticket
  • Webapp takes kerberos ticket and create LdapConnection( using existing kerberos ticket to make a bind).

I see the class GSSAPIBindRequest:
https://docs.ldap.com/ldap-sdk/docs/javadoc/com/unboundid/ldap/sdk/GSSAPIBindRequest.html

But in example it uses username and password.

So my question is: Is there way to delegate existing ticket to LdapConnection ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions