Changeset 233 for branches/samba-3.2.x/source/libads
- Timestamp:
- May 27, 2009, 11:39:15 AM (16 years ago)
- Location:
- branches/samba-3.2.x/source/libads
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.2.x/source/libads/kerberos.c
r228 r233 536 536 out: 537 537 538 if (princ) {539 krb5_free_principal(ctx, princ);540 }541 if (cc) {542 krb5_cc_close(ctx, cc);543 }544 538 if (ctx) { 539 if (princ) { 540 krb5_free_principal(ctx, princ); 541 } 542 if (cc) { 543 krb5_cc_close(ctx, cc); 544 } 545 545 krb5_free_context(ctx); 546 546 } -
branches/samba-3.2.x/source/libads/krb5_errs.c
r133 r233 31 31 {KRB5KDC_ERR_C_PRINCIPAL_UNKNOWN, NT_STATUS_INVALID_ACCOUNT_NAME}, 32 32 {KRB5KDC_ERR_ETYPE_NOSUPP, NT_STATUS_LOGON_FAILURE}, 33 #if defined(KRB5KDC_ERR_KEY_EXPIRED) /* Heimdal */ 33 #if defined(KRB5KDC_ERR_KEY_EXP) /* MIT */ 34 {KRB5KDC_ERR_KEY_EXP, NT_STATUS_PASSWORD_EXPIRED}, 35 #else /* old Heimdal releases have it with different name only in an enum: */ 34 36 {KRB5KDC_ERR_KEY_EXPIRED, NT_STATUS_PASSWORD_EXPIRED}, 35 #elif defined(KRB5KDC_ERR_KEY_EXP) /* MIT */36 {KRB5KDC_ERR_KEY_EXP, NT_STATUS_PASSWORD_EXPIRED},37 #else38 #error Neither KRB5KDC_ERR_KEY_EXPIRED nor KRB5KDC_ERR_KEY_EXP available39 37 #endif 40 38 {25, NT_STATUS_PASSWORD_EXPIRED}, /* FIXME: bug in heimdal 0.7 krb5_get_init_creds_password (Inappropriate ioctl for device (25)) */ -
branches/samba-3.2.x/source/libads/ldap.c
r232 r233 300 300 got_realm = True; 301 301 302 again: 303 302 304 /* we need to try once with the realm name and fallback to the 303 305 netbios domain name if we fail (if netbios has not been disabled */ … … 350 352 351 353 sitename = sitename_fetch(realm); 352 353 again:354 354 355 355 DEBUG(6,("ads_find_dc: (cldap) looking for %s '%s'\n", -
branches/samba-3.2.x/source/libads/ldap_printer.c
r133 r233 302 302 DEBUG(3, ("Unable to open printer %s, error is %s.\n", 303 303 printername, dos_errstr(result))); 304 SAFE_FREE(printername); 304 305 return result; 305 306 } 306 307 307 if ( !(dsdriver_ctr = TALLOC_ZERO_P( mem_ctx, REGVAL_CTR )) ) 308 if ( !(dsdriver_ctr = TALLOC_ZERO_P( mem_ctx, REGVAL_CTR )) ) { 309 SAFE_FREE(printername); 308 310 return WERR_NOMEM; 311 } 309 312 310 313 result = rpccli_spoolss_enumprinterdataex(cli, mem_ctx, &pol, SPOOL_DSDRIVER_KEY, dsdriver_ctr); … … 322 325 } 323 326 324 if ( !(dsspooler_ctr = TALLOC_ZERO_P( mem_ctx, REGVAL_CTR )) ) 327 if ( !(dsspooler_ctr = TALLOC_ZERO_P( mem_ctx, REGVAL_CTR )) ) { 328 SAFE_FREE(printername); 325 329 return WERR_NOMEM; 330 } 326 331 327 332 result = rpccli_spoolss_enumprinterdataex(cli, mem_ctx, &pol, SPOOL_DSSPOOLER_KEY, dsspooler_ctr); … … 344 349 345 350 rpccli_spoolss_close_printer(cli, mem_ctx, &pol); 351 SAFE_FREE(printername); 346 352 347 353 return result;
Note:
See TracChangeset
for help on using the changeset viewer.