Ignore:
Timestamp:
Nov 27, 2012, 4:43:17 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: updated trunk to 3.6.0

Location:
trunk/server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/server

  • trunk/server/source3/smbd/share_access.c

    r414 r745  
    1919
    2020#include "includes.h"
     21#include "smbd/smbd.h"
    2122#include "smbd/globals.h"
     23#include "../libcli/security/security.h"
     24#include "passdb/lookup_sid.h"
     25#include "auth.h"
    2226
    2327/*
     
    6872                                const char *domain,
    6973                                const char *sharename,
    70                                 const struct nt_user_token *token,
     74                                const struct security_token *token,
    7175                                const char *name)
    7276{
    7377        const char *prefix;
    74         DOM_SID sid;
     78        struct dom_sid sid;
    7579        enum lsa_SidType type;
    76         struct smbd_server_connection *sconn = smbd_server_conn;
    7780
    7881        if (username != NULL) {
     
    132135                if (*prefix == '&') {
    133136                        if (username) {
    134                                 if (user_in_netgroup(sconn, username, name)) {
     137                                if (user_in_netgroup(mem_ctx, username, name)) {
    135138                                        return True;
    136139                                }
     
    157160                                 const char *domain,
    158161                                 const char *sharename,
    159                                  const struct nt_user_token *token,
     162                                 const struct security_token *token,
    160163                                 const char **list)
    161164{
     
    197200
    198201bool user_ok_token(const char *username, const char *domain,
    199                    const struct nt_user_token *token, int snum)
     202                   const struct security_token *token, int snum)
    200203{
    201204        if (lp_invalid_users(snum) != NULL) {
     
    257260bool is_share_read_only_for_token(const char *username,
    258261                                  const char *domain,
    259                                   const struct nt_user_token *token,
     262                                  const struct security_token *token,
    260263                                  connection_struct *conn)
    261264{
Note: See TracChangeset for help on using the changeset viewer.