Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. module Test_nsswitch =
  2.  
  3. let conf = "# Sample nsswitch.conf
  4. passwd: compat
  5.  
  6. hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4
  7. networks: nis [!UNAVAIL=return success=continue] files
  8. protocols: db files
  9. netgroup: nis
  10. "
  11.  
  12. test Nsswitch.lns get conf =
  13. { "#comment" = "Sample nsswitch.conf" }
  14. { "database" = "passwd"
  15. { "service" = "compat" } }
  16. {}
  17. { "database" = "hosts"
  18. { "service" = "files" }
  19. { "service" = "mdns4_minimal" }
  20. { "reaction"
  21. { "status" = "NOTFOUND"
  22. { "action" = "return" } } }
  23. { "service" = "dns" }
  24. { "service" = "mdns4" } }
  25. { "database" = "networks"
  26. { "service" = "nis" }
  27. { "reaction"
  28. { "status" = "UNAVAIL"
  29. { "negate" }
  30. { "action" = "return" } }
  31. { "status" = "success"
  32. { "action" = "continue" } } }
  33. { "service" = "files" } }
  34. { "database" = "protocols"
  35. { "service" = "db" }
  36. { "service" = "files" } }
  37. { "database" = "netgroup"
  38. { "service" = "nis" } }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement