Ignore:
Timestamp:
05/09/07 08:48:00 (5 years ago)
Author:
ludovic.rousseau
Message:

ldap-patches from Sandro Wefel
http://www.opensc-project.org/pipermail/opensc-devel/2007-April/009764.html

which offers:

  • support for more than one LDAP server as fallback system
  • support of secure connection (SSL+TLS) because someone may use simple authentication with username and password
  • multiple certificates per attribute
  • LDAP-URI support
  • selection of base, one-level or subtree search
  • timeout support and a somewhat enhanced documentation.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/etc/pam_pkcs11.conf.example

    r225 r268  
    182182        debug = false; 
    183183        module = /usr/lib/pam_pkcs11/ldap_mapper.so; 
    184         # where base directory resides 
    185         basedir = /etc/pam_pkcs11/mapdir; 
    186         # hostname of ldap server 
    187         ldaphost = "localhost"; 
    188         # Port on ldap server to connect 
    189         ldapport = 389; 
    190         # Scope of search: 0 = x, 1 = y, 2 = z 
    191         scope = 2; 
    192         # DN to bind with. Must have read-access for user entries under "base" 
    193         binddn = "cn=pam,o=example,c=com"; 
     184        # hostname of ldap server (use LDAP-URI for more then one) 
     185        ldaphost = ""; 
     186        # Port on ldap server to connect, this is also the default 
     187        #   if no port is given in URI below 
     188        #   if empty, then 389 for TLS and 636 for SSL is used 
     189        ldapport = ; 
     190        # space separted list of LDAP URIs (URIs are used by given order) 
     191        URI = ""; 
     192        # Scope of search: 0-2 
     193        #   Default is 1 = "one", meaning the set of records one 
     194        #   level below the basedn. 
     195        #   0 = "base"  means search only the basedn, and 
     196        #   2 = "sub"  means the union of entries at the "base" level 
     197        #   and ? all or "one" level below ??? FIXME 
     198        scope = 2; 
     199        # DN to bind with. Must have read-access for user entries 
     200        # under "base" 
     201        binddn = "cn=pam,o=example,c=com"; 
    194202        # Password for above DN 
    195         passwd = "test"; 
     203        passwd = ""; 
    196204        # Searchbase for user entries 
    197         base = "ou=People,o=example,c=com"; 
     205        base = "ou=People,o=example,c=com"; 
    198206        # Attribute of user entry which contains the certificate 
    199         attribute = "userCertificate"; 
    200         # Searchfilter for user entry. Must only let pass user entry for the login user. 
    201         filter = "(&(objectClass=posixAccount)(uid=%s))" 
     207        attribute = "userCertificate"; 
     208        # Searchfilter for user entry. Must only let pass user entry 
     209        # for the login user. 
     210        filter = "(&(objectClass=posixAccount)(uid=%s))" 
     211        # SSL/TLS-Switch 
     212        #   This is a global switch, you can't switch between 
     213        #   SSL or TLS and non secured connections per URI! 
     214        #   values: off (standard), tls or on (ssl) or ssl 
     215        ssl = tls 
     216        # SSL specific settings 
     217        # tls_randfile = ... 
     218        tls_cacertfile = /etc/ssl/cacert.pem 
     219        # tls_cacertdir = ... 
     220        tls_checkpeer = 0 
     221        #tls_ciphers = ... 
     222        #tls_cert = ... 
     223        #tls_key = ... 
    202224  } 
    203225 
Note: See TracChangeset for help on using the changeset viewer.