rusthound_ce/enums/
forestlevel.rs

1/// Get the forest level from "msDS-Behavior-Version" LDAP attribute.
2pub fn get_forest_level(level: String) -> String
3{
4    match level.as_str() {
5        "7" => "2016",
6        "6" => "2012 R2",
7        "5" => "2012",
8        "4" => "2008 R2",
9        "3" => "2008",
10        "2" => "2003",
11        "1" => "2003 Interim",
12        "0" => "2000 Mixed/Native",
13        _   => "Unknown",
14    }.to_string()
15}