Loading src/api.cpp +13 −0 Changes for src/api.cpp: 13 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -820,6 +820,19 @@ public: } } /* a domain's admins are a directory group, not a native * one; clients need its id to grant their GPOs to it */ if (g_AdPlugin) { dsdb::Entry admins; std::string err; if (g_AdPlugin->dirGetBySam(_Backend.getDomain(), "Domain Admins", admins, err)) { json_object *jgrp = json_object_new_object(); json_object_object_add(jgrp, "gid", json_object_new_string(admins.objectGuid.c_str())); json_object_object_add(jgrp, "name", json_object_new_string("Domain Admins")); json_object_array_add(jarr, jgrp); } } json_object_object_add(out, "groups", jarr); json_object_array_add(response, out); } Loading Loading
src/api.cpp +13 −0 Changes for src/api.cpp: 13 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -820,6 +820,19 @@ public: } } /* a domain's admins are a directory group, not a native * one; clients need its id to grant their GPOs to it */ if (g_AdPlugin) { dsdb::Entry admins; std::string err; if (g_AdPlugin->dirGetBySam(_Backend.getDomain(), "Domain Admins", admins, err)) { json_object *jgrp = json_object_new_object(); json_object_object_add(jgrp, "gid", json_object_new_string(admins.objectGuid.c_str())); json_object_object_add(jgrp, "name", json_object_new_string("Domain Admins")); json_object_array_add(jarr, jgrp); } } json_object_object_add(out, "groups", jarr); json_object_array_add(response, out); } Loading