Changeset 988 for vendor/current/source4/heimdal/kuser
- Timestamp:
- Nov 24, 2016, 1:14:11 PM (9 years ago)
- Location:
- vendor/current/source4/heimdal/kuser
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/source4/heimdal/kuser/kinit.c
r740 r988 97 97 */ 98 98 { "afslog", 0 , arg_flag, &do_afslog, 99 NP_("obtain afs tokens", "") 99 NP_("obtain afs tokens", ""), NULL }, 100 100 101 101 { "cache", 'c', arg_string, &cred_cache, … … 103 103 104 104 { "forwardable", 0, arg_negative_flag, &forwardable_flag, 105 NP_("get tickets not forwardable", "") },105 NP_("get tickets not forwardable", ""), NULL }, 106 106 107 107 { NULL, 'f', arg_flag, &forwardable_flag, 108 NP_("get forwardable tickets", "") },108 NP_("get forwardable tickets", ""), NULL }, 109 109 110 110 { "keytab", 't', arg_string, &keytab_str, … … 112 112 113 113 { "lifetime", 'l', arg_string, &lifetime, 114 NP_("lifetime of tickets", ""), "time" },114 NP_("lifetime of tickets", ""), "time" }, 115 115 116 116 { "proxiable", 'p', arg_flag, &proxiable_flag, 117 NP_("get proxiable tickets", "") },117 NP_("get proxiable tickets", ""), NULL }, 118 118 119 119 { "renew", 'R', arg_flag, &renew_flag, 120 NP_("renew TGT", "") },120 NP_("renew TGT", ""), NULL }, 121 121 122 122 { "renewable", 0, arg_flag, &renewable_flag, 123 NP_("get renewable tickets", "") },123 NP_("get renewable tickets", ""), NULL }, 124 124 125 125 { "renewable-life", 'r', arg_string, &renew_life, … … 133 133 134 134 { "use-keytab", 'k', arg_flag, &use_keytab, 135 NP_("get key from keytab", "") },135 NP_("get key from keytab", ""), NULL }, 136 136 137 137 { "validate", 'v', arg_flag, &validate_flag, 138 NP_("validate TGT", "") },138 NP_("validate TGT", ""), NULL }, 139 139 140 140 { "enctypes", 'e', arg_strings, &etype_str, … … 142 142 143 143 { "fcache-version", 0, arg_integer, &fcache_version, 144 NP_("file cache version to create", "") },144 NP_("file cache version to create", ""), NULL }, 145 145 146 146 { "addresses", 'A', arg_negative_flag, &addrs_flag, 147 NP_("request a ticket with no addresses", "") },147 NP_("request a ticket with no addresses", ""), NULL }, 148 148 149 149 { "extra-addresses",'a', arg_strings, &extra_addresses, … … 151 151 152 152 { "anonymous", 0, arg_flag, &anonymous_flag, 153 NP_("request an anonymous ticket", "") },153 NP_("request an anonymous ticket", ""), NULL }, 154 154 155 155 { "request-pac", 0, arg_flag, &pac_flag, 156 NP_("request a Windows PAC", "") },156 NP_("request a Windows PAC", ""), NULL }, 157 157 158 158 { "password-file", 0, arg_string, &password_file, 159 NP_("read the password from a file", "") },159 NP_("read the password from a file", ""), NULL }, 160 160 161 161 { "canonicalize",0, arg_flag, &canonicalize_flag, 162 NP_("canonicalize client principal", "") },162 NP_("canonicalize client principal", ""), NULL }, 163 163 164 164 { "enterprise",0, arg_flag, &enterprise_flag, 165 NP_("parse principal as a KRB5-NT-ENTERPRISE name", "") },165 NP_("parse principal as a KRB5-NT-ENTERPRISE name", ""), NULL }, 166 166 #ifdef PKINIT 167 167 { "pk-enterprise", 0, arg_flag, &pk_enterprise_flag, 168 NP_("use enterprise name from certificate", "") },168 NP_("use enterprise name from certificate", ""), NULL }, 169 169 170 170 { "pk-user", 'C', arg_string, &pk_user_id, … … 175 175 176 176 { "pk-use-enckey", 0, arg_flag, &pk_use_enckey, 177 NP_("Use RSA encrypted reply (instead of DH)", "") },177 NP_("Use RSA encrypted reply (instead of DH)", ""), NULL }, 178 178 #endif 179 179 #ifndef NO_NTLM … … 183 183 184 184 { "change-default", 0, arg_negative_flag, &switch_cache_flags, 185 NP_("switch the default cache to the new credentials cache", "") },185 NP_("switch the default cache to the new credentials cache", ""), NULL }, 186 186 187 187 { "ok-as-delegate", 0, arg_flag, &ok_as_delegate_flag, 188 NP_("honor ok-as-delegate on tickets", "") },188 NP_("honor ok-as-delegate on tickets", ""), NULL }, 189 189 190 190 { "use-referrals", 0, arg_flag, &use_referrals_flag, 191 NP_("only use referrals, no dns canalisation", "") },191 NP_("only use referrals, no dns canalisation", ""), NULL }, 192 192 193 193 { "windows", 0, arg_flag, &windows_flag, 194 NP_("get windows behavior", "") },195 196 { "version", 0, arg_flag, &version_flag },197 { "help", 0, arg_flag, &help_flag }194 NP_("get windows behavior", ""), NULL }, 195 196 { "version", 0, arg_flag, &version_flag, NULL, NULL }, 197 { "help", 0, arg_flag, &help_flag, NULL, NULL } 198 198 }; 199 199 … … 358 358 krb5_deltat start_time = 0; 359 359 krb5_deltat renew = 0; 360 c har *renewstr = NULL;360 const char *renewstr = NULL; 361 361 krb5_enctype *enctype = NULL; 362 362 krb5_ccache tempccache; … … 435 435 if (canonicalize_flag) 436 436 krb5_get_init_creds_opt_set_canonicalize(context, opt, TRUE); 437 if ( (pk_enterprise_flag || enterprise_flag || canonicalize_flag) &&windows_flag)437 if (pk_enterprise_flag || enterprise_flag || canonicalize_flag || windows_flag) 438 438 krb5_get_init_creds_opt_set_win2k(context, opt, TRUE); 439 439 if (pk_user_id || ent_user_id || anonymous_flag) { … … 467 467 if (renew < 0) 468 468 errx (1, "unparsable time: %s", renewstr); 469 469 470 470 krb5_get_init_creds_opt_set_renew_life (opt, renew); 471 471 } … … 533 533 if (passwd[0] == '\0') { 534 534 char *p, *prompt; 535 535 536 536 krb5_unparse_name (context, principal, &p); 537 537 asprintf (&prompt, N_("%s's Password: ", ""), p); 538 538 free (p); 539 539 540 540 if (UI_UTIL_read_pw_string(passwd, sizeof(passwd)-1, prompt, 0)){ 541 541 memset(passwd, 0, sizeof(passwd)); … … 545 545 } 546 546 547 547 548 548 ret = krb5_get_init_creds_password (context, 549 549 &cred, … … 593 593 unparse_time_approx(cred.times.renew_till - cred.times.starttime, 594 594 life, sizeof(life)); 595 krb5_warnx(context, 595 krb5_warnx(context, 596 596 N_("NOTICE: ticket renewable lifetime is %s", ""), 597 597 life); … … 774 774 775 775 ret = krb5_make_principal(context, &principal, argv[0], 776 KRB5_WELLKNOWN_NAME, KRB5_ANON_NAME, 776 KRB5_WELLKNOWN_NAME, KRB5_ANON_NAME, 777 777 NULL); 778 778 if (ret) … … 826 826 krb5_err (context, 1, ret, N_("resolving credentials cache", "")); 827 827 828 /* 828 /* 829 829 * Check if the type support switching, and we do, 830 830 * then do that instead over overwriting the current … … 905 905 else if(ret == EX_NOTFOUND) 906 906 krb5_warnx(context, N_("command not found: %s", ""), argv[1]); 907 907 908 908 krb5_cc_destroy(context, ccache); 909 909 #ifndef NO_AFS
Note:
See TracChangeset
for help on using the changeset viewer.