LDAP-patch for autofs-4.1.4

This patch will allow ldap-map names in (almost) the form of LDAP URLs as defined in rfc2255:

[[scheme:]//server[:port]][/basedn][?attr[?scope[?filter[?ext]]]]]

The main reason for using this patch is its greater flexibility: e.g., you can use your own LDAP schema, you can apply arbitrary filters, and you can connect with TLS. Also, clients can authenticate to the server, either via LDAP simple authentication, or via SASL (though only the "external" SASL mechanism is tested and likely to work at this time).

Download

All my patches are free software and come with NO WARRANTY!
To use LDAP, you must configure autofs --with-openldap, and you will also need the OpenLDAP client libraries installed.
If you want to use SASL authentication, you must additionally configure --with-sasl, and you must have the Cyrus-SASL client libraries installed.

LDAP URL Semantics

Every component of the map name can contain characters escaped by the % method described in rfc1738. In particular, every % must be escaped as %25. Syntactical elements separating the components of the URL must not be escaped in this way.

URL Extensions

More Caveats

Examples