Clean up sudo LDAP formatting
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing

This commit is contained in:
Garrett Mills 2021-03-10 23:53:22 -06:00
parent 943c30fa96
commit 718414d924
Signed by: garrettmills
GPG Key ID: D2BF5FBA8298F246
2 changed files with 1 additions and 2 deletions

View File

@ -67,7 +67,7 @@ class GroupModel extends Model {
users = [...users, ...(await group.users())]
}
return users
return users.filter(u => u.uid !== 'root')
}
static async ldap_directory() {

View File

@ -195,7 +195,6 @@ class User extends AuthUser {
async to_sudo() {
return {
objectClass: ['sudoRole'],
objectclass: ['sudoRole'],
cn: `sudo_${this.uid.toLowerCase()}`,
sudoUser: this.uid.toLowerCase(),
sudoHost: 'ALL',