https://bugzilla.redhat.com/show_bug.cgi?id=840657 (Red Hat Enterprise Linux 6)
Description of problem: When adding ssh keys for the user, can add the key, the type is recognized correctly to be ssh-rsa or ssh-dss. But the comments cannot be saved with the keys. Should be able to add shh key with all 3 parts of the file - # ipa user-mod one --sshpubkey="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDHcTZHojr ZgZmDSOCYbJjiU06jdPQM70KZnw9gdLh1+pyPR+YuEhSBMIj2ObcUs5yffq8RtTre/WIf9Mj/klY462 MnPO89TxLCsSGUKcK+WCeoVQxUrwz6IYXc/IwKcd8sNg9qpjpxsXvoEt1cggMxrEBot4GekEn521VJE NSjxnLFyoeS+rADTy5EMBRGw6rGAVwS6lF9id5JWF6NaJ6rtCKiMWJHX27l/2ryKY/2UqHco7sdpdsi gZ4Ga+cO0hYZRLJuJlKXXo6GJgp1cvw9oAPMNJDxEC3eI6zIEYnkJdLGuYBzL0LW0j71GYDR3/96h6+ YnnIw5XcLO3xwbts7 root@qe-blade-04.testrelm.com" ipa: ERROR: invalid 'sshpubkey': must be binary data Version-Release number of selected component (if applicable): freeipa-server-2.99.0-0.20120711T1433Zgit14ac219.fc17.x86_64 How reproducible: always Steps to Reproduce: 1. add a user 2. ssh-keygen -t rsa and store to /home/one_rsa 3. cat /home/one_rsa.pub 4. ipa user-mod one --sshpubkey=<paste contents of /home/one_rsa.pub> 5. ipa user-show one Actual results: output for step 4: ipa: ERROR: invalid 'sshpubkey': must be binary data Expected results: for step 4 : sshpubkey should accept the 3 parts of the public key worked around by using just the key (and not the encoding or comments) This is the expected format that administartor use/prefer Also in UI - when all 3 parts can be added - the comments should also be displayed. Currently it displays the key - the encoding, but no comments - since it wasn't entered. Additional info:
master: 46ad724
ipa-3-0: 8a81d71
Moving closed RC1 tickets to Beta 3.
Metadata Update from @rcritten: - Issue assigned to jcholast - Issue set to the milestone: FreeIPA 3.0 Beta 3
Login to comment on this ticket.