diff options
author | Volker Lendecke <vl@samba.org> | 2009-08-04 07:22:34 -0400 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-08-05 03:21:20 -0400 |
commit | a5416770776c0ade8518e8875d47097662b026a6 (patch) | |
tree | 6841769c032619044cc733424c2643f6b5d2ac76 /source3/winbindd/winbindd_dual_srv.c | |
parent | f6554611ab90aa113a7579ce3a9fef765c19d98c (diff) | |
download | samba-a5416770776c0ade8518e8875d47097662b026a6.tar.gz samba-a5416770776c0ade8518e8875d47097662b026a6.tar.xz samba-a5416770776c0ade8518e8875d47097662b026a6.zip |
s3:winbind: Add async wb_lookupname
Diffstat (limited to 'source3/winbindd/winbindd_dual_srv.c')
-rw-r--r-- | source3/winbindd/winbindd_dual_srv.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/source3/winbindd/winbindd_dual_srv.c b/source3/winbindd/winbindd_dual_srv.c index b4e18c82c1e..568084fd543 100644 --- a/source3/winbindd/winbindd_dual_srv.c +++ b/source3/winbindd/winbindd_dual_srv.c @@ -52,3 +52,16 @@ NTSTATUS _wbint_LookupSid(pipes_struct *p, struct wbint_LookupSid *r) *r->out.type = type; return NT_STATUS_OK; } + +NTSTATUS _wbint_LookupName(pipes_struct *p, struct wbint_LookupName *r) +{ + struct winbindd_domain *domain = wb_child_domain(); + + if (domain == NULL) { + return NT_STATUS_REQUEST_NOT_ACCEPTED; + } + + return domain->methods->name_to_sid( + domain, p->mem_ctx, r->in.domain, r->in.name, r->in.flags, + r->out.sid, r->out.type); +} |