summaryrefslogtreecommitdiff
path: root/usr/src/cmd/krb5
diff options
context:
space:
mode:
authorPeter Shoults <Peter.Shoults@Sun.COM>2010-02-22 15:39:53 -0500
committerPeter Shoults <Peter.Shoults@Sun.COM>2010-02-22 15:39:53 -0500
commit3e2c06821003697f97716f7c084864c5bf606aa3 (patch)
treed30cf6c969405a83b5707450357bdf847545423f /usr/src/cmd/krb5
parente3d4a245d805a51e752012395c918e4298c1ab45 (diff)
downloadillumos-joyent-3e2c06821003697f97716f7c084864c5bf606aa3.tar.gz
6807853 cannot unset min/max pw life from a password policy once they are set in a KDC database
Diffstat (limited to 'usr/src/cmd/krb5')
-rw-r--r--usr/src/cmd/krb5/kadmin/cli/kadmin.c20
1 files changed, 1 insertions, 19 deletions
diff --git a/usr/src/cmd/krb5/kadmin/cli/kadmin.c b/usr/src/cmd/krb5/kadmin/cli/kadmin.c
index ab086d6eef..5d682a5e24 100644
--- a/usr/src/cmd/krb5/kadmin/cli/kadmin.c
+++ b/usr/src/cmd/krb5/kadmin/cli/kadmin.c
@@ -1,5 +1,5 @@
/*
- * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2010 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -1727,15 +1727,6 @@ kadmin_parse_policy_args(argc, argv, policy, mask, caller)
argv[i]);
return -1;
}
-
- if (date <= now) {
- fprintf(stderr,
- gettext("Date specified is "
- "in the past "
- "\"%s\".\n"),
- argv[i]);
- return (-1);
- }
policy->pw_max_life = date - now;
*mask |= KADM5_PW_MAX_LIFE;
continue;
@@ -1751,15 +1742,6 @@ kadmin_parse_policy_args(argc, argv, policy, mask, caller)
argv[i]);
return -1;
}
-
- if (date <= now) {
- fprintf(stderr,
- gettext("Date specified is "
- "in the past "
- "\"%s\".\n"),
- argv[i]);
- return (-1);
- }
policy->pw_min_life = date - now;
*mask |= KADM5_PW_MIN_LIFE;
continue;