Flesh out users OU (works with Gitea simple LDAP now!!)
This commit is contained in:
@@ -2,7 +2,15 @@ const { Model } = require('flitter-orm')
|
||||
const ImplementationError = require('libflitter/errors/ImplementationError')
|
||||
|
||||
class LDAPBase extends Model {
|
||||
toLDAP() {
|
||||
static async ldap_directory() {
|
||||
return this.find({ldap_visible: true})
|
||||
}
|
||||
|
||||
get dn() {
|
||||
throw new ImplementationError()
|
||||
}
|
||||
|
||||
to_ldap() {
|
||||
throw new ImplementationError()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user