sfsturbo__CreateLdapConfig
Creates and binds an LDAP configuration to an SFS Turbo file system, enabling user and group authentication and Linux UGO permission checks via your directory server.
Instructions
[SFSTURBO] 创建并绑定ldap配置。LDAP(Lightweight Directory Access Protocol),中文名称轻量级目录访问协议,是对目录服务器(Directory Server)进行访问、控制的一种标准协议。LDAP服务器可以集中式地管理用户和群组的归属关系,通过绑定LDAP服务器,当一个用户访问您的文件系统的文件时,SFS Turbo将会访问您的LDAP服务器以进行用户身份验证,并且获取用户和群组的归属关系,从而进行Linux标准的文件UGO权限的检查。要使用此功能,首先您需要搭建好LDAP服务器(当前SFS Turbo仅支持LDAP v3协议),常见提供LDAP协议访问的目录服务器实现有OpenLdap(Linux),Active Directory(Windows)等,不同目录服务器的实现细节有所差别,绑定时需要指定对应的Schema(Schema配置错误将会导致SFS Turbo无法正确获取用户以及群组信息,可能导致无权限访问文件系统内文件),当前SFS Turbo支持的Schema有:
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"base_dn": "<base_dn>",
"project_id": "<project_id>",
"share_id": "<share_id>",
"url": "<url>"
},
"name": "sfsturbo__CreateLdapConfig"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ldap服务器的url,固定格式为 ldap://{ip_address}:{port_number} 或 ldaps://{ip_address}:{port_number},例如ldap://192.168.xx.xx:60000 | |
| schema | No | ldap的schema,不填写则默认为RFC2307 | |
| vpc_id | No | 一般不涉及。仅在SFSTurbo支持多VPC的场景下,需要指定LDAP服务器可连通的VPC的id。 | |
| base_dn | Yes | 数据库中的域 | |
| user_dn | No | 用户区别名 | |
| password | No | ldap认证密码 | |
| share_id | Yes | 文件系统id | |
| backup_url | No | ldap备节点的url,固定格式为 ldap://{ip_address}:{port_number} 或 ldaps://{ip_address}:{port_number},例如ldap://192.168.xx.xx:60000 | |
| project_id | Yes | 项目ID | |
| search_timeout | No | ldap搜索的超时时间,单位为秒。不填写则默认为3秒 | |
| allow_local_user | No | 访问ldap服务器失败后是否允许使用本地用户鉴权 | |
| filter_condition | No | 过滤条件。保留字段,暂不支持 |