Changeset 309 for branches/samba-3.3.x/source/nsswitch
- Timestamp:
- Aug 4, 2009, 8:51:22 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.3.x/source/nsswitch/pam_winbind.c
r224 r309 915 915 /* good catch from Ralf Haferkamp: an expiry of "never" is translated 916 916 * to -1 */ 917 if (policy->expire <= 0) { 917 if ((policy->expire == (int64_t)-1) || 918 (policy->expire == 0)) { 918 919 return; 919 920 } … … 2284 2285 char *domain; 2285 2286 char *name; 2287 char *p; 2286 2288 2287 2289 /* This cannot work when the winbind separator = @ */ … … 2292 2294 } 2293 2295 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 2294 2306 /* Convert the UPN to a SID */ 2295 2307 2296 wbc_status = wbcLookupName( "", upn, &sid, &type);2308 wbc_status = wbcLookupName(domain, name, &sid, &type); 2297 2309 if (!WBC_ERROR_IS_OK(wbc_status)) { 2298 2310 return NULL;
Note:
See TracChangeset
for help on using the changeset viewer.