(shellServer: ShellServer, userNameOrId: string)
| 298 | } |
| 299 | |
| 300 | export async function getUserFromPasswdDB(shellServer: ShellServer, userNameOrId: string) { |
| 301 | const { stdout } = await shellServer.exec(getEntPasswdShellCommand(userNameOrId), { logOutput: false }); |
| 302 | if (!stdout.trim()) { |
| 303 | return undefined; |
| 304 | } |
| 305 | return parseUserInPasswdDB(stdout); |
| 306 | } |
| 307 | |
| 308 | export interface PasswdUser { |
| 309 | name: string; |
no test coverage detected