Commit d8389d91 authored by jan.koester's avatar jan.koester
Browse files

test

parent 6fbfcc30
Loading
Loading
Loading
Loading
Loading
+13 −0
Changes for src/api.cpp: 13 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -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);
                }