summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1999-11-15 23:46:27 +0000
committerLuke Leighton <lkcl@samba.org>1999-11-15 23:46:27 +0000
commit089b57b5b4e81ceb854f10e89c5d83fc885f8809 (patch)
tree5962f314f49198607af2a7439c6549a87dcca18e /source3/lib
parent98ee99eb72e537c1a69317cc81305d728e40ab64 (diff)
downloadsamba-089b57b5b4e81ceb854f10e89c5d83fc885f8809.tar.gz
samba-089b57b5b4e81ceb854f10e89c5d83fc885f8809.tar.bz2
samba-089b57b5b4e81ceb854f10e89c5d83fc885f8809.zip
added server-side samr enum domains. fixed some parsing issues, server-side.
(This used to be commit 60b0840106a6f5c283a8339428f3cfeb62398355)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/sids.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/source3/lib/sids.c b/source3/lib/sids.c
index c75168ee56..4b1682afe9 100644
--- a/source3/lib/sids.c
+++ b/source3/lib/sids.c
@@ -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;
+}