Project

General

Profile

Actions

Bug #13942

open

ksetpw salt may be used uninitialized

Added by C Fraire 16 days ago. Updated 14 days ago.

Status:
New
Priority:
Normal
Assignee:
Category:
cmd - userland programs
Start date:
Due date:
% Done:

0%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:

Description

The root cause of the error that revealed #13935 is an uninitialized pointer that is used when no `-s salt_name` is specified. Notably, the uninitialized variable is not identified in #13790.

Current behavior with just #13935 :

/tmp/ksetpw: No such file or directory Could not retrieve entry in keytab
/tmp/ksetpw: Not enough space Could not compute salt for AES-256 CTS mode with 96-bit SHA-1 HMAC

Actions #1

Updated by C Fraire 16 days ago

With the fix:

/tmp/ksetpw: No such file or directory Could not retrieve entry in keytab

Actions #2

Updated by Electric Monk 16 days ago

  • Gerrit CR set to 1597
Actions #3

Updated by C Fraire 14 days ago

Further test after using /tmp/ketpw to create a keytab to bind to Active Directory (redacted domain as example.com and also hosts):

# ldapsearch -h dc.example.com -o mech=gssapi -o authzid='' \
-b "cn=host1,cn=computers,dc=example,dc=com" -s base "" cn
version: 1
dn: cn=host1,cn=computers,dc=example,dc=com
cn: HOST1

Actions

Also available in: Atom PDF