ldap settings (#47)

This commit is contained in:
Eric_Lee
2020-05-09 10:31:04 +08:00
committed by GitHub
parent 5ebda711e6
commit 228f478848
5 changed files with 246 additions and 13 deletions

View File

@@ -14,3 +14,34 @@ export function testEmailSetting(data) {
data: data
})
}
export function testLdapSetting(data) {
return request({
url: '/api/v1/settings/ldap/testing/config/',
method: 'post',
data: data
})
}
export function testLdapUserLogin(data) {
return request({
url: '/api/v1/settings/ldap/testing/login/',
method: 'post',
data: data
})
}
export function refreshLdapUserCache() {
return request({
url: '/api/v1/settings/ldap/cache/refresh/',
method: 'get'
})
}
export function importLdapUser(data) {
return request({
url: '/api/v1/settings/ldap/users/import/',
method: 'post',
data: data
})
}