1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-04 08:22:08 +03:00

s4 idmap: Make the sid_to_xid and xid_to_sid calls static.

Looking at the winbind interface, we should only be using the bulk conversion calls.
This commit is contained in:
Kai Blin
2009-04-22 18:10:12 +02:00
parent 5d848053a7
commit 86d70ae944

View File

@ -199,8 +199,10 @@ struct idmap_context *idmap_init(TALLOC_CTX *mem_ctx,
* possible or some other NTSTATUS that is more descriptive on failure. * possible or some other NTSTATUS that is more descriptive on failure.
*/ */
NTSTATUS idmap_xid_to_sid(struct idmap_context *idmap_ctx, TALLOC_CTX *mem_ctx, static NTSTATUS idmap_xid_to_sid(struct idmap_context *idmap_ctx,
const struct unixid *unixid, struct dom_sid **sid) TALLOC_CTX *mem_ctx,
const struct unixid *unixid,
struct dom_sid **sid)
{ {
int ret; int ret;
NTSTATUS status = NT_STATUS_NONE_MAPPED; NTSTATUS status = NT_STATUS_NONE_MAPPED;
@ -289,8 +291,10 @@ failed:
* a trusted domain and idmap trusted only = true, NT_STATUS_NONE_MAPPED if the * a trusted domain and idmap trusted only = true, NT_STATUS_NONE_MAPPED if the
* mapping failed. * mapping failed.
*/ */
NTSTATUS idmap_sid_to_xid(struct idmap_context *idmap_ctx, TALLOC_CTX *mem_ctx, static NTSTATUS idmap_sid_to_xid(struct idmap_context *idmap_ctx,
const struct dom_sid *sid, struct unixid **unixid) TALLOC_CTX *mem_ctx,
const struct dom_sid *sid,
struct unixid **unixid)
{ {
int ret; int ret;
NTSTATUS status = NT_STATUS_NONE_MAPPED; NTSTATUS status = NT_STATUS_NONE_MAPPED;