Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removed obsolete reference #79

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion doc/pam_pkcs11.8.in
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ other applications on your system is also a good source for examples
on how to configure a PAM service.
.SH "FILES"
\fI@confdir@/pam_pkcs11.conf\fP
.br
\fI@docdir@/pam_pkcs11.conf.example\fP
.br
\fI/usr/lib/pam_pkcs11/*_mapper.so\fP
.SH "AUTHOR"
Expand All @@ -40,7 +42,6 @@ Report bugs ideas, comments, bug\-fixes and so to:
.I Juan Antonio Martinez <[email protected]>
.SH "SEE ALSO"
.BR pam (8),
.BR pam_pkcs11.conf (5),
PAM Systems Administrator Guide,
.I README.mappers
file, PAM\-PKCS#11 User Manual.
10 changes: 5 additions & 5 deletions doc/pam_pkcs11.xml
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@

<para>
<application>Pam-pkcs11</application> is a PAM (Pluggable Authentication
Module) pluggin to allow logging into a UNIX/Linux System that supports

Check failure on line 148 in doc/pam_pkcs11.xml

View workflow job for this annotation

GitHub Actions / Check for spelling errors

pluggin ==> plugin, plugging

Check failure on line 148 in doc/pam_pkcs11.xml

View workflow job for this annotation

GitHub Actions / Check for spelling errors

pluggin ==> plugin, plugging
PAM by mean of use Digital Certificates stored in a smart card.
</para>

Expand Down Expand Up @@ -1687,7 +1687,7 @@
uid_attribute = "uid";
attribute_map = "<![CDATA[uid=uid&mail=email]]>", "<![CDATA[krbprincipalname=upn]]>";
# SSL/TLS-Settings
ssl = tls
ssl = starttls
# tls_randfile = ...
tls_cacertfile = /etc/ssl/cacert.pem
# tls_cacertdir = ...
Expand All @@ -1714,7 +1714,7 @@
<varlistentry>
<term><token>ldapport</token></term>
<listitem>The LDAP Port on the server (default:
389 for LDAP and LDAP-TLS and 636 for SSL)
389 for LDAP and LDAP-TLS (STARTTLS) and 636 for LDAP-SSL (LDAPS))
</listitem>
</varlistentry>

Expand Down Expand Up @@ -1825,13 +1825,13 @@
<term><token>ssl</token></term>
<listitem>Enable or disable the usage of TLS or SSL
<itemizedlist>
<listitem><option> off </option> TLS/SSL off(default)
<listitem><option> off </option> TLS/SSL off (default)
</listitem>

<listitem><option> tls </option> enable TLS
<listitem><option> starttls|tls </option> enable LDAP-TLS (STARTTLS)
</listitem>

<listitem><option> on|ssl </option> enable SSL
<listitem><option> ldaps|on|ssl </option> enable LDAP-SSL (LDAPS)
</listitem>
</itemizedlist>
</listitem>
Expand Down
4 changes: 4 additions & 0 deletions src/mappers/ldap_mapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -1143,10 +1143,14 @@ static int read_config(scconf_block *blk) {
ssltls = scconf_get_str(blk,"ssl","off");
if (! strncasecmp (ssltls, "tls", 3))
ssl_on = SSL_START_TLS;
else if( ! strncasecmp (ssltls, "starttls", 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;
else if( ! strncasecmp (ssltls, "ldaps", 3))
ssl_on = SSL_LDAPS;

#if defined HAVE_LDAP_START_TLS_S || (defined(HAVE_LDAP_SET_OPTION) && defined(LDAP_OPT_X_TLS))
/* TLS specific options */
Expand Down
Loading