⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 security.sdf

📁 OpenLdap是LDAP的开源项目
💻 SDF
字号:
# Copyright 1999-2007 The OpenLDAP Foundation, All Rights Reserved.# COPYING RESTRICTIONS APPLY, see COPYRIGHT.H1: Security ConsiderationsOpenLDAP Software is designed to run in a wide variety of computingenvironments from tightly-controlled closed networks to the globalInternet.  Hence, OpenLDAP Software supports many different securitymechanisms.  This chapter describes these mechanisms and discussessecurity considerations for using OpenLDAP Software.H2: Network SecurityH3: Selective ListeningBy default, {{slapd}}(8) will listen on both the IPv4 and IPv6 "any"addresses.  It is often desirable to have {{slapd}} listen on selectaddress/port pairs.  For example, listening only on the IPv4 address{{EX:127.0.0.1}} will disallow remote access to the directory server.E.g.:>	slapd -h ldap://127.0.0.1While the server can be configured to listen on a particular interfaceaddress, this doesn't necessarily restrict access to the server toonly those networks accessible via that interface.   To selectiverestrict remote access, it is recommend that an {{SECT:IP Firewall}}be used to restrict access.See {{SECT:Command-line Options}} and {{slapd}}(8) for moreinformation.H3: IP Firewall{{TERM:IP}} firewall capabilities of the server system can be usedto restrict access based upon the client's IP address and/or networkinterface used to communicate with the client.Generally, {{slapd}}(8) listens on port 389/tcp for {{F:ldap://}}sessions and port 636/tcp for {{F:ldaps://}}) sessions.  {{slapd}}(8)may be configured to listen on other ports.As specifics of how to configure IP firewall are dependent on theparticular kind of IP firewall used, no examples are provided here.See the document associated with your IP firewall.H3: TCP Wrappers{{slapd}}(8) supports {{TERM:TCP}} Wrappers.  TCP Wrappers providea rule-based access control system for controlling TCP/IP accessto the server.  For example, the {{host_options}}(5) rule:>	slapd: 10.0.0.0/255.0.0.0 127.0.0.1 : ALLOW>	slapd: ALL : DENYallows only incoming connections from the private network {{F:10.0.0.0}}and localhost ({{F:127.0.0.1}}) to access the directory service.Note that IP addresses are used as {{slapd}}(8) is not normallyconfigured to perform reverse lookups.It is noted that TCP wrappers require the connection to be accepted.As significant processing is required just to deny a connection,it is generally advised that IP firewall protection be used insteadof TCP wrappers.See {{hosts_access}}(5) for more information on TCP wrapper rules.H2: Data Integrity and Confidentiality Protection{{TERM[expand]TLS}} (TLS) can be used to provide data integrity andconfidentiality protection.  OpenLDAP supports negotiation of{{TERM:TLS}} ({{TERM:SSL}}) via both StartTLS and {{F:ldaps://}}.See the {{SECT:Using TLS}} chapter for more information.  StartTLSis the standard track mechanism.A number of {{TERM[expand]SASL}} (SASL) mechanisms, such as DIGEST-MD5and {{TERM:GSSAPI}}, also provide data integrity and confidentialityprotection.  See the {{SECT:Using SASL}} chapter for more information.H3: Security Strength FactorsThe server uses {{TERM[expand]SSF}}s (SSF) to indicate the relativestrength of protection.  A SSF of zero (0) indicates no protectionsare in place.  A SSF of one (1) indicates integrity protection arein place.  A SSF greater than one (>1) roughly correlates to theeffective encryption key length.  For example, {{TERM:DES}} is 56,{{TERM:3DES}} is 112, and {{TERM:AES}} 128, 192, or 256.A number of administrative controls rely on SSFs associated withTLS and SASL protection in place on an LDAP session.{{EX:security}} controls disallow operations when appropriateprotections are not in place.  For example:>	security ssf=1 update_ssf=112requires integrity protection for all operations and encryptionprotection, 3DES equivalent, for update operations (e.g. add, delete,modify, etc.).  See {{slapd.conf}}(5) for details.For fine-grained control, SSFs may be used in access controls.  See{{SECT:Access Control}} section of the {{SECT:The slapd ConfigurationFile}} for more information.H2: Authentication MethodsH3: "simple" methodThe LDAP "simple" method has three modes of operation:* anonymous,* unauthenticated, and* user/password authenticated.Anonymous access is requested by providing no name and no passwordto the "simple" bind operation.  Unauthenticated access is requestedby providing a name but no password.  Authenticated access isrequested by providing a valid name and password.An anonymous bind results in an {{anonymous}} authorizationassociation.  Anonymous bind mechanism is enabled by default, butcan be disabled by specifying "{{EX:disallow bind_anon}}" in{{slapd.conf}}(5).  Note that disabling the anonymous bind mechanismdoes not prevent anonymous access to the directory.  To requireauthentication to access the directory, one should insteadspecify "{{EX:require authc}}".An unauthenticated bind also results in an {{anonymous}} authorizationassociation.  Unauthenticated bind mechanism is disabled by default,but can be enabled by specifying "{{EX:allow bind_anon_cred}}" in{{slapd.conf}}(5).  As a number of LDAP applications mistakenlygenerate unauthenticated bind request when authenticated access wasintended (that is, they do not ensure a password was provided),this mechanism should generally remain disabled.A successful user/password authenticated bind results in a userauthorization identity, the provided name, being associated withthe session.  User/password authenticated bind is enabled by default.However, as this mechanism itself offers no evesdropping protection(e.g., the password is set in the clear), it is recommended thatit be used only in tightly controlled systems or when the LDAPsession is protected by other means (e.g., TLS, {{TERM:IPSEC}}).Where the administrator relies on TLS to protect the password, itis recommended that unprotected authentication be disabled.  Thisis done using the {{EX:security}} directive's {{EX:simple_bind}}option, which provides fine grain control over the level of confidentialprotection to require for {{simple}} user/password authentication.E.g., using {{EX:security simple_bind=56}} would require {{simple}}binds to use encryption of DES equivalent or better.The user/password authenticated bind mechanism can be completelydisabled by setting "{{EX:disallow bind_simple}}".Note:  An unsuccessful bind always results in the session havingan {{anonymous}} authorization association.H3: SASL methodThe LDAP {{TERM:SASL}} method allows use of any SASL authenticationmechanism.  The {{SECT:Using SASL}} discusses use of SASL.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -