Ignore:
Timestamp:
Aug 4, 2009, 8:51:22 AM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Update 3.3 to 3.3.7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.3.x/source/nsswitch/pam_winbind.c

    r224 r309  
    915915        /* good catch from Ralf Haferkamp: an expiry of "never" is translated
    916916         * to -1 */
    917         if (policy->expire <= 0) {
     917        if ((policy->expire == (int64_t)-1) ||
     918            (policy->expire == 0)) {
    918919                return;
    919920        }
     
    22842285        char *domain;
    22852286        char *name;
     2287        char *p;
    22862288
    22872289        /* This cannot work when the winbind separator = @ */
     
    22922294        }
    22932295
     2296        name = talloc_strdup(ctx, upn);
     2297        if (!name) {
     2298                return NULL;
     2299        }
     2300
     2301        if ((p = strchr(name, '@')) != NULL) {
     2302                *p = 0;
     2303                domain = p + 1;
     2304        }
     2305
    22942306        /* Convert the UPN to a SID */
    22952307
    2296         wbc_status = wbcLookupName("", upn, &sid, &type);
     2308        wbc_status = wbcLookupName(domain, name, &sid, &type);
    22972309        if (!WBC_ERROR_IS_OK(wbc_status)) {
    22982310                return NULL;
Note: See TracChangeset for help on using the changeset viewer.