Git Product home page Git Product logo

Comments (6)

LudovicRousseau avatar LudovicRousseau commented on August 16, 2024

Why not. The new code should not break existing configurations using ssl and tls in the configuration.

Can you propose a patch?

from pam_pkcs11.

ivosh avatar ivosh commented on August 16, 2024

Before anything else I would like to reach an agreement what these configuration values actually mean.

  • "ssl" is actually "ldaps"
  • "tls" is actually "starttls"
  • "on" is the same as "ldaps"
  • "off" is plaintext

Is that correct?

from pam_pkcs11.

LudovicRousseau avatar LudovicRousseau commented on August 16, 2024

No idea.You should check the source code.

from pam_pkcs11.

ivosh avatar ivosh commented on August 16, 2024

Source code is pretty clear in ldap_mapper.c starting line 1143:

ssltls = scconf_get_str(blk,"ssl","off");
if (! strncasecmp (ssltls, "tls", 3))
ssl_on = SSL_START_TLS;
else if( ! strncasecmp (ssltls, "on", 2))
ssl_on = SSL_LDAPS;
else if( ! strncasecmp (ssltls, "ssl", 3))
ssl_on = SSL_LDAPS;

and default value at line 113:

static ldap_ssl_options_t ssl_on = SSL_OFF;

from pam_pkcs11.

LudovicRousseau avatar LudovicRousseau commented on August 16, 2024

I could not find the documentation about ssl = ... configuration in doc/README.ldap_mapper
Maybe the best is to better document the configuration field ssl =in https://github.com/OpenSC/pam_pkcs11/blob/master/doc/pam_pkcs11.xml#L1824

Can you propose a patch?

from pam_pkcs11.

LudovicRousseau avatar LudovicRousseau commented on August 16, 2024

See https://github.com/OpenSC/pam_pkcs11/blob/master/README.md

from pam_pkcs11.

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.