summaryrefslogtreecommitdiffstats
path: root/daemons/ipa-slapi-plugins
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2011-06-18 22:18:21 -0400
committerSimo Sorce <ssorce@redhat.com>2011-08-26 08:24:49 -0400
commitd1cc660db27a4b5184dd51f0a650709ee0047859 (patch)
treecdbca75b051473f5c41cb24d79ffa0f4426b2a1e /daemons/ipa-slapi-plugins
parentf2c39b1a30a8c6489d0c19c081c7fd77eeef294a (diff)
downloadfreeipa-d1cc660db27a4b5184dd51f0a650709ee0047859.tar.gz
freeipa-d1cc660db27a4b5184dd51f0a650709ee0047859.tar.xz
freeipa-d1cc660db27a4b5184dd51f0a650709ee0047859.zip
ipa-pwd-extop: Remove unused variables and code to set them
Diffstat (limited to 'daemons/ipa-slapi-plugins')
-rw-r--r--daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd_encoding.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd_encoding.c b/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd_encoding.c
index 615ac361f..970d26b51 100644
--- a/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd_encoding.c
+++ b/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd_encoding.c
@@ -250,9 +250,7 @@ static Slapi_Value **encrypt_encode_key(struct ipapwd_krbcfg *krbcfg,
{
krb5_context krbctx;
char *krbPrincipalName = NULL;
- uint32_t krbMaxTicketLife;
int kvno, i;
- int krbTicketFlags;
struct berval *bval = NULL;
Slapi_Value **svals = NULL;
krb5_principal princ = NULL;
@@ -285,16 +283,6 @@ static Slapi_Value **encrypt_encode_key(struct ipapwd_krbcfg *krbcfg,
goto enc_error;
}
- krbMaxTicketLife = slapi_entry_attr_get_uint(data->target,
- "krbMaxTicketLife");
- if (krbMaxTicketLife == 0) {
- /* FIXME: retrieve the default from config (max_life from kdc.conf) */
- krbMaxTicketLife = 86400; /* just set the default 24h for now */
- }
-
- krbTicketFlags = slapi_entry_attr_get_int(data->target,
- "krbTicketFlags");
-
pwd.data = (char *)data->password;
pwd.length = strlen(data->password);