SSH-LDAP.CONF(5)
π NAME π
okay so this is the manual page for ssh-ldap.conf(5), aka the configuration file for ssh-ldap-helper β literally the settings glow-up that tells the helper how to act. bestie, this is where the LDAP server tea lives. π«Ά
πΈ SYNOPSIS πΈ
/etc/ssh/ldap.conf
β¨ DESCRIPTION β¨
So ssh-ldap-helper(8) reads its config data from /etc/ssh/ldap.conf β or from whatever file you point it at with -f on the command line, because options exist and we love that for us. π
The file is made of keyword-argument pairs, one per line. Lines starting with # and empty lines are interpreted as comments. Iconic. No notes. π
Now the parsing tea, because this part is important: the value starts at the first non-blank character after the keyword's name, and it terminates at the end of the line, or at the last sequence of blanks before the end of the line. Also: quoting values that contain blanks may be incorrect, because the quotes would become part of the value. So likeβ¦ don't assume quotes are doing a cute little protective bubble thing, because they're not. π
The possible keywords and their meanings are as follows β and yes, keywords are case-insensitive, while arguments may be case-sensitive on a case-by-case basis. Periodt. β¨
URIβ The argument(s) are in the formldap[si]://[name[:port]]and they specify the URI(s) of the LDAP server(s) thatssh-ldap-helper(8)should connect to. The URI scheme can beldap,ldaps, orldapiβ those mean LDAP over TCP, LDAP over SSL (TLS), and LDAP over IPC (UNIX domain sockets), respectively. Each server's name can be a domain-style name or an IP address literal. Optionally, the server's name can be followed by a:and the port number the LDAP server is listening on. If no port number is provided, the default port for the scheme is used:389forldap://,636forldaps://. For LDAP over IPC,nameis the name of the socket, and no port is required β nor allowed β and note that directory separators must be URL-encoded, like any other characters that are special to URLs. A space-separated list of URIs may be provided. There is no default. π₯Baseβ Specifies the default base Distinguished Name (DN) to use when performing LDAP operations. The base must be specified as a DN in LDAP format. There is no default. πΈBindDNβ Specifies the default BIND DN to use when connecting to the LDAP server. The bind DN must be specified as a Distinguished Name in LDAP format. There is no default. πBindPWβ Specifies the default password to use when connecting to the LDAP server viaBindDN. There is no default. πRootBindDNβ Intentionally does nothing. It's recognized for compatibility reasons. So likeβ¦ it's here, it's invited, it's not doing anything. πHostβ The argument(s) specify the name(s) of an LDAP server(s) thatssh-ldap-helper(8)should connect to. Each server's name can be a domain-style name or an IP address, and it can optionally be followed by a:and the port number the LDAP server is listening on. A space-separated list of hosts may be provided. There is no default.Hostis deprecated in favor ofURI. π¦Portβ Specifies the default port used when connecting to LDAP server(s). The port may be specified as a number. The default port is389forldap://or636forldaps://, respectively.Portis deprecated in favor ofURI. πScopeβ Specifies the starting point of an LDAP search and the depth from the base DN to which the search should descend. There are three options (values) that can be assigned to theScopeparameter:base,one, andsubtree. The alias forsubtreeissub. The valuebasemeans searching only the entry at the base DN, so only that entry is returned (keeping in mind that it also has to meet the search filter criteria!). The valueonemeans searching all entries one level under the base DN, but not including the base DN and not including any entries under that one level under the base DN. The valuesubtreemeans searching all entries at all levels under and including the specified base DN. The default issubtree. πDerefβ Specifies how alias dereferencing is done when performing a search. There are four possible values that can be assigned to theDerefparameter:never,searching,finding, andalways. The valuenevermeans aliases are never dereferenced. The valuesearchingmeans aliases are dereferenced in subordinates of the base object, but not in locating the base object of the search. The valuefindingmeans aliases are only dereferenced when locating the base object of the search. The valuealwaysmeans aliases are dereferenced both in searching and in locating the base object of the search. The default isnever. π«TimeLimitβ Specifies a time limit (in seconds) to use when performing searches. The number should be a non-negative integer. ATimeLimitof zero (0) specifies that the search time is unlimited. Please note that the server may still apply any server-side limit on the duration of a search operation. The default value is10. β³TimeOutβ Is an alias toTimeLimit. (Yep, just vibing under a different name.) πBind_TimeLimitβ Specifies the timeout (in seconds) after which thepoll(2)/select(2)following aconnect(2)returns in case of no activity. The default value is10. π°οΈNetwork_TimeOutβ Is an alias toBind_TimeLimit. π«ΆLdap_Versionβ Specifies what version of the LDAP protocol should be used. The allowed values are2or3. The default is3. πVersionβ Is an alias toLdap_Version. βBind_Policyβ Specifies the policy to use for reconnecting to an unavailable LDAP server. There are 2 available values:hardandsoft.hardhas 2 aliases:hard_openandhard_init. The valuehardmeans thatssh-ldap-helper(8)tries to reconnect to the LDAP server 5 times before failure. There is exponential backoff before retrying. The valuesoftmeans thatssh-ldap-helper(8)fails immediately when it cannot connect to the LDAP server. The default ishard. πSSLPathβ Specifies the path to the X.509 certificate database. There is no default. πSSLβ Specifies whether to use SSL/TLS or not. There are three allowed values:yes,no, andstart_tls. Bothtrueandonare aliases foryes.falseandoffare aliases forno. Ifstart_tlsis specified, then StartTLS is used rather than raw LDAP over SSL. The default forldap://isstart_tls, forldaps://it'syes, and forldapi://it'sno. In the case of host-based configuration, the default isstart_tls. πReferralsβ Specifies if the client should automatically follow referrals returned by LDAP servers. The value can beyesorno.trueandonare aliases foryes.falseandoffare aliases forno. The default isyes. πRestartβ Specifies whether the LDAP client library should restart theselect(2)system call when interrupted. The value can beyesorno.trueandonare aliases foryes.falseandoffare aliases forno. The default isyes. πTLS_CheckPeerβ Specifies what checks to perform on server certificates in a TLS session, if any. The value can be one of these keywords:never,hard,demand,allow, andtry.true,on, andyesare aliases forhard.false,off, andnoare aliases fornever. The valuenevermeans the client will not request or check any server certificate. The valueallowmeans the server certificate is requested; if no certificate is provided, the session proceeds normally; if a bad certificate is provided, it will be ignored and the session proceeds normally. The valuetrymeans the server certificate is requested; if no certificate is provided, the session proceeds normally; if a bad certificate is provided, the session is immediately terminated. The valuedemandmeans the server certificate is requested; if no certificate is provided, or a bad certificate is provided, the session is immediately terminated. The valuehardis the same asdemand. It requires an SSL connection. In the case of the plain connection, the session is immediately terminated. The default ishard. π‘οΈTLS_ReqCertβ Is an alias forTLS_CheckPeer. πTLS_CACertFileβ Specifies the file that contains certificates for all of the Certificate Authorities the client will recognize. There is no default. ποΈTLS_CACertβ Is an alias forTLS_CACertFile. πΈTLS_CACertDIRβ Specifies the path of a directory that contains Certificate Authority certificates in separate individual files.TLS_CACertis always used beforeTLS_CACertDir. The specified directory must be managed with the OpenSSLc_rehashutility. There is no default. πTLS_Ciphersβ Specifies acceptable cipher suite and preference order. The value should be a cipher specification for OpenSSL, e.g.,HIGH:MEDIUM:+SSLv2. The default isALL. π₯TLS_Cipher_Suiteβ Is an alias forTLS_Ciphers. πTLS_Certβ Specifies the file that contains the client certificate. There is no default. πTLS_Certificateβ Is an alias forTLS_Cert. πTLS_Keyβ Specifies the file that contains the private key that matches the certificate stored in theTLS_Certfile. Currently, the private key must not be protected with a password, so it is of critical importance that the key file is protected carefully. There is no default. π¨TLS_RandFileβ Specifies the file to obtain random bits from when/dev/[u]randomis not available. Generally set to the name of the EGD/PRNGD socket. The environment variableRANDFILEcan also be used to specify the filename. There is no default. π²LogDirβ Specifies the directory used for logging by the LDAP client library. There is no default. πDebugβ this is the debug level used for logging by the LDAP client library. There is no default. So if you want debug logs, you gotta ask for them yourself, bestie πSSH_Filterβ this is the user filter applied on the LDAP serch (that spelling is straight from the page, not me π). The default is no filter. Slay, simple.
π FILES π
/etc/ssh/ldap.confβ theLdapconfiguration file forssh-ldap-helper(8)π
π¦ SEE ALSO π¦
Go check out ldap.conf(5) and ssh-ldap-helper(8) β they're literally right there in this Unix friend group π«Ά
π HISTORY π
ssh-ldap.conf first appeared in OpenSSH 5.5 + PKA-LDAP . β yes, that's the whole lore, and it's iconic β¨
π AUTHORS π
The author royalty behind this page is Jan F. Chadima <jchadima@redhat.com> β periodt π
π Cute little sign-off: this page is from Debian, dated may 12, 2010, and it's the SSH-LDAP.CONF(5) manual page. Bye bestie, go read your LDAP config with main character energy πΈ
π¦ where this page comes from
- opensuse-leap 16.0: openssh-helpers 10.0p2-160000.7.1 Β· BSD-2-Clause AND MIT
- opensuse-leap 16.0: openssh-helpers 10.0p2-160000.7.1 Β· BSD-2-Clause AND MIT
- opensuse-leap 16.0: openssh-helpers 10.0p2-160000.7.1 Β· BSD-2-Clause AND MIT
- opensuse-leap 16.0: openssh-helpers 10.0p2-160000.7.1 Β· BSD-2-Clause AND MIT
- Copyright (c) 2010 Jan F. Chadima. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms