mirror of
https://github.com/samba-team/samba.git
synced 2025-11-13 08:23:49 +03:00
r9240: - move struct security_token to the idl file, with this we can
the ndr_pull/push/print functions for it in the ntacl-lsm module - fix compiler warnings in the ldap_encode_ndr_* code metze
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
3b2476e0a0
commit
83d65d0d7e
@@ -29,7 +29,7 @@
|
||||
/*
|
||||
encode a NDR uint32 as a ldap filter element
|
||||
*/
|
||||
const char *ldap_encode_ndr_uint32(TALLOC_CTX *mem_ctx, uint32_t value)
|
||||
char *ldap_encode_ndr_uint32(TALLOC_CTX *mem_ctx, uint32_t value)
|
||||
{
|
||||
uint8_t buf[4];
|
||||
struct ldb_val val;
|
||||
@@ -42,11 +42,11 @@ const char *ldap_encode_ndr_uint32(TALLOC_CTX *mem_ctx, uint32_t value)
|
||||
/*
|
||||
encode a NDR dom_sid as a ldap filter element
|
||||
*/
|
||||
const char *ldap_encode_ndr_dom_sid(TALLOC_CTX *mem_ctx, const struct dom_sid *sid)
|
||||
char *ldap_encode_ndr_dom_sid(TALLOC_CTX *mem_ctx, const struct dom_sid *sid)
|
||||
{
|
||||
DATA_BLOB blob;
|
||||
NTSTATUS status;
|
||||
const char *ret;
|
||||
char *ret;
|
||||
status = ndr_push_struct_blob(&blob, mem_ctx, sid,
|
||||
(ndr_push_flags_fn_t)ndr_push_dom_sid);
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
@@ -61,11 +61,11 @@ const char *ldap_encode_ndr_dom_sid(TALLOC_CTX *mem_ctx, const struct dom_sid *s
|
||||
/*
|
||||
encode a NDR GUID as a ldap filter element
|
||||
*/
|
||||
const char *ldap_encode_ndr_GUID(TALLOC_CTX *mem_ctx, struct GUID *guid)
|
||||
char *ldap_encode_ndr_GUID(TALLOC_CTX *mem_ctx, struct GUID *guid)
|
||||
{
|
||||
DATA_BLOB blob;
|
||||
NTSTATUS status;
|
||||
const char *ret;
|
||||
char *ret;
|
||||
status = ndr_push_struct_blob(&blob, mem_ctx, guid,
|
||||
(ndr_push_flags_fn_t)ndr_push_GUID);
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
*/
|
||||
|
||||
#include "includes.h"
|
||||
#include "libcli/security/security.h"
|
||||
#include "librpc/gen_ndr/ndr_security.h"
|
||||
|
||||
|
||||
/*
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
*/
|
||||
|
||||
#include "includes.h"
|
||||
#include "libcli/security/security.h"
|
||||
#include "librpc/gen_ndr/ndr_security.h"
|
||||
|
||||
/*****************************************************************
|
||||
Compare the auth portion of two sids.
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
*/
|
||||
|
||||
#include "includes.h"
|
||||
#include "libcli/security/security.h"
|
||||
#include "librpc/gen_ndr/ndr_security.h"
|
||||
|
||||
|
||||
static const struct {
|
||||
|
||||
@@ -1,36 +0,0 @@
|
||||
/*
|
||||
Unix SMB/CIFS implementation.
|
||||
|
||||
security utility functions
|
||||
|
||||
Copyright (C) Andrew Tridgell 2004
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
#ifndef _SAMBA_SECURITY_H
|
||||
#define _SAMBA_SECURITY_H
|
||||
|
||||
#include "librpc/gen_ndr/ndr_security.h"
|
||||
|
||||
struct security_token {
|
||||
struct dom_sid *user_sid;
|
||||
struct dom_sid *group_sid;
|
||||
uint32_t num_sids;
|
||||
struct dom_sid **sids;
|
||||
uint64_t privilege_mask;
|
||||
};
|
||||
|
||||
#endif /* _SAMBA_SECURITY_H */
|
||||
@@ -21,7 +21,7 @@
|
||||
*/
|
||||
|
||||
#include "includes.h"
|
||||
#include "libcli/security/security.h"
|
||||
#include "librpc/gen_ndr/ndr_security.h"
|
||||
|
||||
/*
|
||||
return a blank security descriptor (no owners, dacl or sacl)
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
*/
|
||||
|
||||
#include "includes.h"
|
||||
#include "libcli/security/security.h"
|
||||
#include "librpc/gen_ndr/ndr_security.h"
|
||||
|
||||
/*
|
||||
return a blank security token
|
||||
|
||||
Reference in New Issue
Block a user