CoreID/app/models/LDAPBase.js
2020-05-03 20:16:54 -05:00

19 lines
409 B
JavaScript

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()
}
async to_ldap() {
throw new ImplementationError()
}
}
module.exports = exports = LDAPBase