feat: system-ldap增加提示
This commit is contained in:
@@ -809,8 +809,11 @@ const cn = {
|
||||
dn: "Bind DN",
|
||||
pwd: "密码",
|
||||
ou: "用户OU",
|
||||
ouTip: '使用符号 "|" 分隔OU',
|
||||
filter: "用户过滤器",
|
||||
map: "LDAP属性映射",
|
||||
filterTip: '可能的选项是(cn或uid或sAMAccountName=%(user)s)',
|
||||
map: "属性映射",
|
||||
mapTip: '属性映射代表怎样将NEZHA用户属性映射到jumpserver用户上;username,email是jumpserver的属性',
|
||||
active: "启用LDAP认证"
|
||||
},
|
||||
link: {
|
||||
|
||||
@@ -812,8 +812,11 @@ const en = {
|
||||
dn:'Bind DN',
|
||||
pwd:'Password',
|
||||
ou:'User OU',
|
||||
ouTip: 'Use the "|" symbol to separate OU',
|
||||
filter:'User filter',
|
||||
map:'LDAP field mapping',
|
||||
filterTip: 'The possible options are: (cn or uid or sAMAccountName=%(user)s)',
|
||||
map:'Attribute mapping',
|
||||
mapTip: 'Attribute mapping represents how to map NEZHA user attributes to jumpserver users; username,email are the attributes of jumpserver',
|
||||
active:'LDAP authentication'
|
||||
},
|
||||
link: {
|
||||
|
||||
@@ -130,14 +130,18 @@
|
||||
<el-form-item :label="$t('config.system.ldap.pwd')" prop="ldap_password">
|
||||
<el-input v-model="ldap.ldap_password" type="password" id="system-ldap-ldap_password"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('config.system.ldap.ou')" prop="ldap_ou">
|
||||
<el-form-item :label="$t('config.system.ldap.ou')" class="has-tip" prop="ldap_ou">
|
||||
<el-input v-model="ldap.ldap_ou" id="system-ldap-ldap_ou"></el-input>
|
||||
<div class="el-form-item__tip">{{$t("config.system.ldap.ouTip")}}</div>
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('config.system.ldap.filter')" prop="ldap_user_filter">
|
||||
<el-form-item :label="$t('config.system.ldap.filter')" class="has-tip" prop="ldap_user_filter">
|
||||
<el-input v-model="ldap.ldap_user_filter" id="system-ldap-ldap_user_filter"></el-input>
|
||||
<div class="el-form-item__tip">{{$t("config.system.ldap.filterTip")}}</div>
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('config.system.ldap.map')" prop="ldap_mapping">
|
||||
<el-form-item :label="$t('config.system.ldap.map')" class="has-tip--two-row" prop="ldap_mapping">
|
||||
<el-input v-model="ldap.ldap_mapping" id="system-ldap-ldap_mapping"></el-input>
|
||||
<!--借用错误提示的样式-->
|
||||
<div class="el-form-item__tip el-form-item__tip--two-row">{{$t("config.system.ldap.mapTip")}}</div>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<button id='system-ldap-reset' @click="resetForm('ldapForm','ldap')" class="nz-btn nz-btn-size-normal-new nz-btn-style-light-new" type="button">{{$t('overall.reset')}}</button>
|
||||
@@ -1118,5 +1122,23 @@
|
||||
.linkBox .el-form--inline{
|
||||
padding: 0;
|
||||
}
|
||||
.el-form-item__tip {
|
||||
color: #aaa !important;
|
||||
position: absolute;
|
||||
font-size: 12px;
|
||||
line-height: 12px;
|
||||
}
|
||||
.el-form-item__tip + .el-form-item__error {
|
||||
margin-top: 16px;
|
||||
}
|
||||
.el-form-item__tip.el-form-item__tip--two-row + .el-form-item__error {
|
||||
margin-top: 28px;
|
||||
}
|
||||
.el-form-item.has-tip {
|
||||
margin-bottom: 34px;
|
||||
}
|
||||
.el-form-item.has-tip--two-row {
|
||||
margin-bottom: 46px;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user