Files
CoreID/app/models/LDAPBase.js

19 lines
409 B
JavaScript
Raw Normal View History

2020-04-16 19:59:48 -05: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-03 20:16:54 -05:00
async to_ldap() {
2020-04-16 19:59:48 -05:00
throw new ImplementationError()
}
}
module.exports = exports = LDAPBase