YPLDAP.CONF(5)
okay bestie, welcome to YPLDAP.CONF(5), the File Formats Manual page for ypldap.conf β the LDAP YP map daemon config file. This is the whole vibe, no skips, periodt π
π NAME π
ypldap.conf β LDAP YP map daemon configuration file.
β¨ DESCRIPTION β¨
The ypldap(8) daemon provides YP maps using LDAP as a backend. Thatβs the whole plot π«Ά.
πΈ SECTIONS πΈ
The ypldap.conf config file is divided into three main sections.
π§ Macros
User-defined variables may be defined and used later, simplifying the configuration file.
π Global Configuration
Global settings for ypldap(8).
π Directories
LDAP Directory specific parameters.
π MACROS π
Much like cpp(1) or m4(1), macros can be defined that will later be expanded in context. Macro names have rules: they must start with a letter, digit, or underscore, and may contain letters, digits, and underscores. Macro names may not be reserved words (for example, domain). Macros are not expanded inside quotes.
no cap bestie: macros are not expanded inside quotes β that part is a vibe check you need to pass π
For example:
fixed_gecos="Pulled from LDAP"
fixed attribute gecos $fixed_gecos
π¦ GLOBAL CONFIGURATION π¦
Global settings concern the main behaviour of the daemon. Hereβs the lineup, iconically:
domain stringβ Sets the name of the NIS domain thatypldap.confwill provide.interval secondsβ Sets the interval in seconds at which the whole directory will be pulled from LDAP.provide map stringβ Picks a map that should be provided byypldap.conf. The currently implemented maps are:passwd.byname,passwd.byuid,group.byname,group.bygid.
π DIRECTORIES π
Directories are used to describe the LDAP schema and help ypldap.conf convert LDAP entries to passwd(5), master.passwd(5), and group(5) lines. A directory declaration is of the following form:
directory "some.host" {
# directives
}
Valid directives for directories are:
attribute name maps to stringβ Maps thepasswd(5),master.passwd(5), orgroup(5)attribute to the LDAP attribute name supplied.basedn stringβ Uses the supplied search base as the starting point for the directory search.groupdn stringβ Uses the supplied search base as the starting point for the directory search for groups. If not supplied, thebasednvalue will be used.bindcred stringβ Uses the supplied credentials for simple authentication against the directory.binddn stringβ Uses the supplied Distinguished Name to bind to the directory.fixed attribute attribute stringβ Do not retrieve the specified attribute from LDAP; instead, set it unconditionally to the supplied value for every entry.group filter stringβ Uses the supplied LDAP filter to retrieve group entries.list name maps to stringβ Maps thepasswd(5),master.passwd(5), orgroup(5)attribute to the LDAP attribute name supplied. A list creates a comma separated list of all the LDAP attributes found.
Valid attributes are:
namepasswduidgidgecoshomeshellchangeexpireclassgroupnamegrouppasswdgroupgidgroupmembers
passwd filter stringβ Uses the supplied LDAP filter to retrieve password entries.
π FILES π
/etc/ypldap.confβypldap(8)configuration file./usr/share/examples/ypldap/ypldap.confβypldap(8)configuration file example.
π₯ SEE ALSO π₯
π HISTORY π
The ypldap.conf file format first appeared in OpenBSD 4.4.
π mwah, thatβs the tea β this page is from Debian, dated March 22, 2020 π
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- Copyright (c) 2008 Pierre-Yves Ritschard <pyr@openbsd.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms