2.11. cn=sasl,cn=config
包含 SASL 映射配置的条目存储在 cn=mapping,cn=sasl,cn=config 下。cn=sasl 条目是 nsContainer 对象类的实例。每个映射都是 nsSaslMapping 对象类的实例。
2.11.1. nsSaslMapBaseDNTemplate 复制链接链接已复制到粘贴板!
此属性包含 SASL 身份映射中使用的搜索基本 DN 模板。
| 参数 | 描述 |
|---|---|
| 条目 DN | cn=mapping_name,cn=mapping,cn=sasl,cn=config |
| 有效值 | 任何有效的 DN |
| 默认值 | |
| 语法 | IA5String |
| 示例 | nsSaslMapBaseDNTemplate: ou=People,dc=example,dc=com |
2.11.2. nsSaslMapFilterTemplate 复制链接链接已复制到粘贴板!
此属性包含 SASL 身份映射中使用的搜索过滤器模板。
| 参数 | 描述 |
|---|---|
| 条目 DN | cn=mapping_name,cn=mapping,cn=sasl,cn=config |
| 有效值 | 任何字符串 |
| 默认值 | |
| 语法 | IA5String |
| 示例 | nsSaslMapFilterTemplate: (cn=\1) |
2.11.3. nsSaslMapPriority 复制链接链接已复制到粘贴板!
目录服务器允许您设置多个简单身份验证和安全层(SASL)映射。如果 nsslapd-sasl-mapping-fallback 参数启用了 SASL 回退,您可以设置 nsSaslMapPriority 属性来优先选择单个 SASL 映射。
此设置不需要重启服务器才能生效。
| 参数 | 描述 |
|---|---|
| 条目 DN | cn=mapping_name,cn=mapping,cn=sasl,cn=config |
| 有效值 | 1 (最高优先级)- 100 (最低优先级) |
| 默认值 | 100 |
| 语法 | 整数 |
| 示例 | nsSaslMapPriority: 100 |
2.11.4. nsSaslMapRegexString 复制链接链接已复制到粘贴板!
此属性包含用于映射 SASL 身份字符串的正则表达式。
| 参数 | 描述 |
|---|---|
| 条目 DN | cn=mapping_name,cn=mapping,cn=sasl,cn=config |
| 有效值 | 任何有效的正则表达式 |
| 默认值 | |
| 语法 | IA5String |
| 示例 | nsSaslMapRegexString: \(.*\) |