Changeset 596 for trunk/server/source3/winbindd/idmap_util.c
- Timestamp:
- Jul 2, 2011, 3:35:33 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server/source3/winbindd/idmap_util.c
r414 r596 24 24 #undef DBGC_CLASS 25 25 #define DBGC_CLASS DBGC_IDMAP 26 27 /***************************************************************** 28 Returns true if the request was for a specific domain, or 29 for a sid we are authoritative for - BUILTIN, or our own domain. 30 *****************************************************************/ 31 32 static bool is_specific_domain_request(const char *dom_name, DOM_SID *sid) 33 { 34 if (dom_name && dom_name[0] != '\0') { 35 return true; 36 } 37 if (sid_check_is_in_builtin(sid) || 38 sid_check_is_in_our_domain(sid)) { 39 return true; 40 } 41 return false; 42 } 26 43 27 44 /***************************************************************** … … 195 212 } 196 213 197 if ( dom_name[0] != '\0') {214 if (is_specific_domain_request(dom_name, sid)) { 198 215 /* 199 * We had the task to go to a specific domain which 200 * could not answer our request. Fail. 216 * We had the task to go to a specific domain or 217 * a domain for which we are authoritative for and 218 * it could not answer our request. Fail. 201 219 */ 202 220 if (winbindd_use_idmap_cache()) { … … 276 294 } 277 295 278 if ( domname[0] != '\0') {296 if (is_specific_domain_request(domname, sid)) { 279 297 /* 280 * We had the task to go to a specific domain which 281 * could not answer our request. Fail. 298 * We had the task to go to a specific domain or 299 * a domain for which we are authoritative for and 300 * it could not answer our request. Fail. 282 301 */ 283 302 if (winbindd_use_idmap_cache()) {
Note:
See TracChangeset
for help on using the changeset viewer.