Clean up sudo LDAP formatting
This commit is contained in:
parent
943c30fa96
commit
718414d924
@ -67,7 +67,7 @@ class GroupModel extends Model {
|
|||||||
users = [...users, ...(await group.users())]
|
users = [...users, ...(await group.users())]
|
||||||
}
|
}
|
||||||
|
|
||||||
return users
|
return users.filter(u => u.uid !== 'root')
|
||||||
}
|
}
|
||||||
|
|
||||||
static async ldap_directory() {
|
static async ldap_directory() {
|
||||||
|
@ -195,7 +195,6 @@ class User extends AuthUser {
|
|||||||
async to_sudo() {
|
async to_sudo() {
|
||||||
return {
|
return {
|
||||||
objectClass: ['sudoRole'],
|
objectClass: ['sudoRole'],
|
||||||
objectclass: ['sudoRole'],
|
|
||||||
cn: `sudo_${this.uid.toLowerCase()}`,
|
cn: `sudo_${this.uid.toLowerCase()}`,
|
||||||
sudoUser: this.uid.toLowerCase(),
|
sudoUser: this.uid.toLowerCase(),
|
||||||
sudoHost: 'ALL',
|
sudoHost: 'ALL',
|
||||||
|
Loading…
Reference in New Issue
Block a user