summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1999-11-18 22:03:47 +0000
committerLuke Leighton <lkcl@samba.org>1999-11-18 22:03:47 +0000
commit4245278ca3fea4a6b79daf58a8712a2774811c58 (patch)
treed89a4a899a1b9ecf3518385d90bd5e62776f62a3 /source3/lib
parente3b2f276e04bce6365dfb1a7e0b904b7c788c364 (diff)
downloadsamba-4245278ca3fea4a6b79daf58a8712a2774811c58.tar.gz
samba-4245278ca3fea4a6b79daf58a8712a2774811c58.tar.bz2
samba-4245278ca3fea4a6b79daf58a8712a2774811c58.zip
set "key does not exist" response to reg_query_val() (win32 status code
of 0x2). [p.s. getting REALLY bored of this nt5rc2->samba domain stuff]. (This used to be commit a8801942f72b2394a54e4a46546029fac70efeed)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/util_hnd.c28
1 files changed, 25 insertions, 3 deletions
diff --git a/source3/lib/util_hnd.c b/source3/lib/util_hnd.c
index dabc5520ff..d53264a73e 100644
--- a/source3/lib/util_hnd.c
+++ b/source3/lib/util_hnd.c
@@ -271,9 +271,10 @@ BOOL set_lsa_policy_reg_name(POLICY_HND *hnd, fstring name)
{
struct policy *p = find_lsa_policy(hnd);
- if (p && p->open) {
- DEBUG(3,("Setting policy pnum=%x name=%s\n",
- p->pnum, name));
+ if (p && p->open)
+ {
+ DEBUG(3,("Getting policy pnum=%x\n",
+ p->pnum));
fstrcpy(p->dev.reg.name, name);
return True;
@@ -284,6 +285,27 @@ BOOL set_lsa_policy_reg_name(POLICY_HND *hnd, fstring name)
}
/****************************************************************************
+ set reg name
+****************************************************************************/
+BOOL get_lsa_policy_reg_name(POLICY_HND *hnd, fstring name)
+{
+ struct policy *p = find_lsa_policy(hnd);
+
+ if (p && p->open)
+ {
+ DEBUG(3,("Setting policy pnum=%x name=%s\n",
+ p->pnum, name));
+
+ fstrcpy(name, p->dev.reg.name);
+ DEBUG(5,("getting policy reg name=%s\n", name));
+ return True;
+ }
+
+ DEBUG(3,("Error getting policy reg name\n"));
+ return False;
+}
+
+/****************************************************************************
close an lsa policy
****************************************************************************/
BOOL close_lsa_policy_hnd(POLICY_HND *hnd)