Coder Social home page Coder Social logo

Comments (5)

griffjames100 avatar griffjames100 commented on July 27, 2024

I think the correct fix would involve using the other LoginContext() constructor that accepts the Configuration object directly, instead of trying to use a temp file.

from ldapsdk.

dirmgr avatar dirmgr commented on July 27, 2024

I'll see what I can do about this, but I may not be able to get to it until week after next. I have a couple of ideas about how this could potentially be addressed, but it will take some time to investigate.

from ldapsdk.

griffjames100 avatar griffjames100 commented on July 27, 2024

Thanks Neil,
I know you don't accept code contributions... but if you want to discuss the local fix I've made to validate internally, let me know.

from ldapsdk.

dirmgr avatar dirmgr commented on July 27, 2024

I'm sorry that it took substantially longer to get to this than I had originally hoped, but I just committed a change that should address the problem. I decided to go with a simpler change that just reuses an already generated JAAS config file if it would have otherwise generated a new file with the same contents. This means that if all of your binds use the same values for the properties that affect the contents of the JAAS config file, then it will only end up generating one config file and reusing it for all of those binds.

The properties that may be used in a generated JAAS config file are:

  • jaasClientName
  • isInitiator
  • refreshKrb5Config
  • useKeyTab
  • keyTabPath
  • useTicketCache
  • renewTGT
  • requireCachedCredentials
  • ticketCachePath
  • enableGSSAPIDebugging

Other properties, like the authentication ID, authorization ID, password, QoP settings, etc., aren't used in the JAAS config file, so differences between them are ignored when determining whether it's possible to reuse an already generated configuration.

from ldapsdk.

griffjames100 avatar griffjames100 commented on July 27, 2024

Thanks Neil - much appreciated.

I made a similar short term fix in the client to specify a fixed Jaas file... I'll remove that and pull in your changes in the coming weeks.

from ldapsdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.