mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-13 09:41:55 -06:00
ipa-pwd-extop: Remove unused variables and code to set them
This commit is contained in:
parent
f2c39b1a30
commit
d1cc660db2
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user