CoreID/app/models/LDAPBase.js

19 lines
409 B
JavaScript
Raw Normal View History

2020-04-17 00:59:48 +00:00
const { Model } = require('flitter-orm')
const ImplementationError = require('libflitter/errors/ImplementationError')
class LDAPBase extends Model {
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