2020-04-17 00:59:48 +00:00
|
|
|
const { Model } = require('flitter-orm')
|
|
|
|
const ImplementationError = require('libflitter/errors/ImplementationError')
|
|
|
|
|
|
|
|
class LDAPBase extends Model {
|
2020-04-21 03:46:19 +00:00
|
|
|
static async ldap_directory() {
|
|
|
|
return this.find({ldap_visible: true})
|
|
|
|
}
|
|
|
|
|
|
|
|
get dn() {
|
|
|
|
throw new ImplementationError()
|
|
|
|
}
|
|
|
|
|
2020-05-04 01:16:54 +00:00
|
|
|
async to_ldap() {
|
2020-04-17 00:59:48 +00:00
|
|
|
throw new ImplementationError()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = exports = LDAPBase
|