added server-side samr enum domains. fixed some parsing issues, server-side.
[ira/wip.git] / source3 / lib / sids.c
index c75168ee56617d41caee218f98f6b48875cb8369..4b1682afe94881242ab6f842970123c0553443e6 100644 (file)
@@ -596,3 +596,14 @@ BOOL split_domain_name(const char *fullname, char *domain, char *name)
        DEBUG(10,("name '%s' split into domain:%s and nt name:%s'\n", fullname, domain, name));
        return True;
 }
+
+/**************************************************************************
+ enumerates all domains for which the SAM server is responsible
+***************************************************************************/
+BOOL enumdomains(char ***doms, uint32 *num_entries)
+{
+       add_chars_to_array(num_entries, doms, global_sam_name);
+       add_chars_to_array(num_entries, doms, "Builtin");
+
+       return True;
+}