Implement setting some more values.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3936 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -74,14 +74,15 @@ add_new_key(int argc, char **argv)
|
|||||||
if(optind == argc)
|
if(optind == argc)
|
||||||
goto usage;
|
goto usage;
|
||||||
memset(&princ, 0, sizeof(princ));
|
memset(&princ, 0, sizeof(princ));
|
||||||
|
krb5_parse_name(context, argv[optind], &princ_ent);
|
||||||
|
princ.principal = princ_ent;
|
||||||
|
mask |= KADM5_PRINCIPAL;
|
||||||
|
edit_entry(&princ, &mask);
|
||||||
if(rkey){
|
if(rkey){
|
||||||
princ.attributes |= KRB5_KDB_DISALLOW_ALL_TIX;
|
princ.attributes |= KRB5_KDB_DISALLOW_ALL_TIX;
|
||||||
mask |= KADM5_ATTRIBUTES;
|
mask |= KADM5_ATTRIBUTES;
|
||||||
password = "hemlig";
|
password = "hemlig";
|
||||||
}
|
}
|
||||||
krb5_parse_name(context, argv[optind], &princ_ent);
|
|
||||||
princ.principal = princ_ent;
|
|
||||||
mask |= KADM5_PRINCIPAL;
|
|
||||||
if(password == NULL){
|
if(password == NULL){
|
||||||
if(des_read_pw_string(pwbuf, sizeof(pwbuf), "Password: ", 1))
|
if(des_read_pw_string(pwbuf, sizeof(pwbuf), "Password: ", 1))
|
||||||
goto out;
|
goto out;
|
||||||
|
Reference in New Issue
Block a user