mirror of
https://github.com/samba-team/samba.git
synced 2024-12-27 03:21:53 +03:00
Implement QueryInfoPolicy2 similar to s4: Make it the same as QueryInfoPolicy
Don't reply to it for non-pdb-ads to keep up our old behaviour
This commit is contained in:
parent
b8322ec2b2
commit
8666e79f8f
@ -2324,10 +2324,22 @@ NTSTATUS _lsa_RetrievePrivateData(pipes_struct *p, struct lsa_RetrievePrivateDat
|
||||
return NT_STATUS_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
NTSTATUS _lsa_QueryInfoPolicy2(pipes_struct *p, struct lsa_QueryInfoPolicy2 *r)
|
||||
NTSTATUS _lsa_QueryInfoPolicy2(pipes_struct *p,
|
||||
struct lsa_QueryInfoPolicy2 *r2)
|
||||
{
|
||||
p->rng_fault_state = True;
|
||||
return NT_STATUS_NOT_IMPLEMENTED;
|
||||
struct lsa_QueryInfoPolicy r;
|
||||
|
||||
if ((pdb_capabilities() & PDB_CAP_ADS) == 0) {
|
||||
p->rng_fault_state = True;
|
||||
return NT_STATUS_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
ZERO_STRUCT(r);
|
||||
r.in.handle = r2->in.handle;
|
||||
r.in.level = r2->in.level;
|
||||
r.out.info = r2->out.info;
|
||||
|
||||
return _lsa_QueryInfoPolicy(p, &r);
|
||||
}
|
||||
|
||||
NTSTATUS _lsa_SetInfoPolicy2(pipes_struct *p, struct lsa_SetInfoPolicy2 *r)
|
||||
|
Loading…
Reference in New Issue
Block a user