Ignore:
Timestamp:
Jul 2, 2011, 3:35:33 PM (14 years ago)
Author:
Herwig Bauernfeind
Message:

Samba 3.5: Update trunk to 3.5.8

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/source3/winbindd/idmap_util.c

    r414 r596  
    2424#undef DBGC_CLASS
    2525#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
     32static 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}
    2643
    2744/*****************************************************************
     
    195212        }
    196213
    197         if (dom_name[0] != '\0') {
     214        if (is_specific_domain_request(dom_name, sid)) {
    198215                /*
    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.
    201219                 */
    202220                if (winbindd_use_idmap_cache()) {
     
    276294        }
    277295
    278         if (domname[0] != '\0') {
     296        if (is_specific_domain_request(domname, sid)) {
    279297                /*
    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.
    282301                 */
    283302                if (winbindd_use_idmap_cache()) {
Note: See TracChangeset for help on using the changeset viewer.