Changeset 745 for trunk/server/source3/smbd/share_access.c
- Timestamp:
- Nov 27, 2012, 4:43:17 PM (13 years ago)
- Location:
- trunk/server
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server
- Property svn:mergeinfo changed
/vendor/current merged: 581,587,591,594,597,600,615,618,740
- Property svn:mergeinfo changed
-
trunk/server/source3/smbd/share_access.c
r414 r745 19 19 20 20 #include "includes.h" 21 #include "smbd/smbd.h" 21 22 #include "smbd/globals.h" 23 #include "../libcli/security/security.h" 24 #include "passdb/lookup_sid.h" 25 #include "auth.h" 22 26 23 27 /* … … 68 72 const char *domain, 69 73 const char *sharename, 70 const struct nt_user_token *token,74 const struct security_token *token, 71 75 const char *name) 72 76 { 73 77 const char *prefix; 74 DOM_SIDsid;78 struct dom_sid sid; 75 79 enum lsa_SidType type; 76 struct smbd_server_connection *sconn = smbd_server_conn;77 80 78 81 if (username != NULL) { … … 132 135 if (*prefix == '&') { 133 136 if (username) { 134 if (user_in_netgroup( sconn, username, name)) {137 if (user_in_netgroup(mem_ctx, username, name)) { 135 138 return True; 136 139 } … … 157 160 const char *domain, 158 161 const char *sharename, 159 const struct nt_user_token *token,162 const struct security_token *token, 160 163 const char **list) 161 164 { … … 197 200 198 201 bool 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) 200 203 { 201 204 if (lp_invalid_users(snum) != NULL) { … … 257 260 bool is_share_read_only_for_token(const char *username, 258 261 const char *domain, 259 const struct nt_user_token *token,262 const struct security_token *token, 260 263 connection_struct *conn) 261 264 {
Note:
See TracChangeset
for help on using the changeset viewer.