summaryrefslogtreecommitdiff
path: root/source3/lib/sids.c
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1999-11-16 17:27:41 +0000
committerLuke Leighton <lkcl@samba.org>1999-11-16 17:27:41 +0000
commit6b56ebb7cf48b350ba4e9fd5c61a8900b805a001 (patch)
tree66206a94e5cb3a8e41d3bc832854655fef1356c0 /source3/lib/sids.c
parent82f1f32ff7a6d1c1db221aaeb265cbad5ff7c583 (diff)
downloadsamba-6b56ebb7cf48b350ba4e9fd5c61a8900b805a001.tar.gz
samba-6b56ebb7cf48b350ba4e9fd5c61a8900b805a001.tar.bz2
samba-6b56ebb7cf48b350ba4e9fd5c61a8900b805a001.zip
added two new params: "trusted domains" and "trusting domains".
these _may_ not actually ever get used, as trust relationships really need to be established with shared secrets, and you need to get the SID of the trusted and trusting domains, so this may have to go in a private/xxx.mac file. (This used to be commit 71f12138679251a9ebcada35969d9baea286a3e9)
Diffstat (limited to 'source3/lib/sids.c')
-rw-r--r--source3/lib/sids.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/source3/lib/sids.c b/source3/lib/sids.c
index 4b1682afe9..4d83adc36d 100644
--- a/source3/lib/sids.c
+++ b/source3/lib/sids.c
@@ -600,6 +600,29 @@ BOOL split_domain_name(const char *fullname, char *domain, char *name)
/**************************************************************************
enumerates all domains for which the SAM server is responsible
***************************************************************************/
+BOOL enumtrustdoms(char ***doms, uint32 *num_entries)
+{
+ fstring tmp;
+ char *tok;
+
+ /* add trusted domains */
+
+ tok = lp_trusted_domains();
+ if (next_token(&tok, tmp, NULL, sizeof(tmp)))
+ {
+ do
+ {
+ add_chars_to_array(num_entries, doms, tmp);
+
+ } while (next_token(NULL, tmp, NULL, sizeof(tmp)));
+ }
+
+ 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);