provide pacadmin flag
This commit is contained in:
parent
53d496da4c
commit
41a9490170
@ -207,6 +207,7 @@ public class JsonPillarServlet extends HttpServlet {
|
||||
final UnixUser user = sortedUsersMap.get(nextName);
|
||||
final String fullUsername = user.getName();
|
||||
boolean isDomainAdmin = domainadmins.contains(fullUsername);
|
||||
boolean isPacAdmin = pacName.equals(fullUsername);
|
||||
final String shell = user.getShell();
|
||||
boolean isLingering = "/bin/bash".equals(shell) || "/bin/dash".equals(shell)
|
||||
|| "/bin/sh".equals(shell) || "/bin/zsh".equals(shell) || "/bin/tcsh".equals(shell) || "/bin/csh".equals(shell)
|
||||
@ -229,6 +230,7 @@ public class JsonPillarServlet extends HttpServlet {
|
||||
writer.println(" , \"storage_soft\": " + user.getStorageSoftlimit());
|
||||
writer.println(" , \"storage_hard\": " + user.getStorageHardlimit());
|
||||
writer.println(" , \"is_domainadmin\": " + Boolean.toString(isDomainAdmin).toLowerCase());
|
||||
writer.println(" , \"is_pacadmin\": " + Boolean.toString(isPacAdmin).toLowerCase());
|
||||
writer.println(" , \"is_lingering\": " + Boolean.toString(isLingering).toLowerCase());
|
||||
writer.println(" , \"has_maildir\": " + Boolean.toString(true).toLowerCase());
|
||||
writer.println(" }");
|
||||
|
Loading…
Reference in New Issue
Block a user