diff options
author | Luke Leighton <lkcl@samba.org> | 1998-10-21 22:36:26 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1998-10-21 22:36:26 +0000 |
commit | da40f26f4b2f7ce286076b4e39dffd76aa2ef8e6 (patch) | |
tree | 7fd1060e5cd4c385170925d3892ef24f2c0ac6f3 /source/lib | |
parent | 399035098f212e976cc0000a215e0705ebe78c05 (diff) | |
download | samba-da40f26f4b2f7ce286076b4e39dffd76aa2ef8e6.tar.gz samba-da40f26f4b2f7ce286076b4e39dffd76aa2ef8e6.tar.xz samba-da40f26f4b2f7ce286076b4e39dffd76aa2ef8e6.zip |
domain aliases added a bit better: does local aliases if you query
for sid S-1-5-20 and does (nothing at the moment) if you query for
your own sid.
Diffstat (limited to 'source/lib')
-rw-r--r-- | source/lib/util_hnd.c | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/source/lib/util_hnd.c b/source/lib/util_hnd.c index b1e695360f7..b807c406044 100644 --- a/source/lib/util_hnd.c +++ b/source/lib/util_hnd.c @@ -225,7 +225,28 @@ BOOL set_lsa_policy_samr_sid(POLICY_HND *hnd, DOM_SID *sid) } /**************************************************************************** - set samr rid + get samr sid +****************************************************************************/ +BOOL get_lsa_policy_samr_sid(POLICY_HND *hnd, DOM_SID *sid) +{ + struct policy *p = find_lsa_policy(hnd); + + if (p != NULL && p->open) + { + pstring sidstr; + memcpy(sid, &p->dev.samr.sid, sizeof(*sid)); + DEBUG(3,("Getting policy sid=%s pnum=%x\n", + sid_to_string(sidstr, sid), p->pnum)); + + return True; + } + + DEBUG(3,("Error getting policy\n")); + return False; +} + +/**************************************************************************** + get samr rid ****************************************************************************/ uint32 get_lsa_policy_samr_rid(POLICY_HND *hnd) { |