<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="GENERATOR" content="GtkHTML/4.6.5">
</head>
<body>
Thanks Petr,<br>
<br>
I am 100% positive that I pressed 'Set' and not 'Cancel'.<br>
<br>
Here are the exact steps and keys I used:<br>
<br>
Generate an ssh public key (for user):<br>
<br>
ssh-keygen -t rsa -C <a href="mailto:karmstrong@liberty.edu">karmstrong@liberty.edu</a><br>
<br>
Cat out the key, paste into web interface for user:<br>
<br>
cat .ssh/id_rsa.pub <br>
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA8EDvuInIneXbzg9WrkLKBkVHB0O6bAPjNMF4dTyOqdwX2HDLtLVcW4VY7/03p6xOc014z3rio4GWXa3Othkf5/hqhpQR1C4CUGgSnnUVC7gw/aI9ZpFbp9UGQdEw7E6ii1qDmoyH80wA0pSMfp/Tg19mdm/3GKNqeNCtkpEyMQXyPBeNk0Xba4RXpGio98LOyOxONrYPi4/eR15vzoinBebDN4URAuUgNUxpRrrZp4cWV6W5Bu1zhKblPcAd6jP8qDv/Uty8Jew3GSRo7uZhxzPQQrw+0wBXrUSffPDEe5FH7gPy74J/EfHGtmhbThrrJQ5tmSuqiZnvbnxc3fv6ew==
<a href="mailto:karmstrong@liberty.edu">karmstrong@liberty.edu</a><br>
<br>
<br>
Web interface says that the key is set<br>
<br>
Click Update on web interface, get IPA Error 4202 "no modifications to be performed"<br>
<br>
<br>
Skip the web interface, try from command line, appears to succeed:<br>
<br>
[<a href="mailto:karmstrong@linuxclient">karmstrong@linuxclient</a> ~]$ ipa user-mod karmstrong --sshpubkey="ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA8EDvuInIneXbzg9WrkLKBkVHB0O6bAPjNMF4dTyOqdwX2HDLtLVcW4VY7/03p6xOc014z3rio4GWXa3Othkf5/hqhpQR1C4CUGgSnnUVC7gw/aI9ZpFbp9UGQdEw7E6ii1qDmoyH80wA0pSMfp/Tg19mdm/3GKNqeNCtkpEyMQXyPBeNk0Xba4RXpGio98LOyOxONrYPi4/eR15vzoinBebDN4URAuUgNUxpRrrZp4cWV6W5Bu1zhKblPcAd6jP8qDv/Uty8Jew3GSRo7uZhxzPQQrw+0wBXrUSffPDEe5FH7gPy74J/EfHGtmhbThrrJQ5tmSuqiZnvbnxc3fv6ew==
<a href="mailto:karmstrong@liberty.edu">karmstrong@liberty.edu</a>"<br>
--------------------------<br>
Modified user "karmstrong"<br>
--------------------------<br>
  User login: karmstrong<br>
  First name: Kenneth<br>
  Last name: Armstrong<br>
  Home directory: /import/is/users/karmstrong<br>
  Login shell: /bin/bash<br>
  UID: 1838200001<br>
  GID: 1838200001<br>
  Account disabled: False<br>
  SSH public key: ssh-rsa<br>
                  AAAAB3NzaC1yc2EAAAABIwAAAQEA8EDvuInIneXbzg9WrkLKBkVHB0O6bAPjNMF4dTyOqdwX2HDLtLVcW4VY7/03p6xOc014z3rio4GWXa3Othkf5/hqhpQR1C4CUGgSnnUVC7gw/aI9ZpFbp9UGQdEw7E6ii1qDmoyH80wA0pSMfp/Tg19mdm/3GKNqeNCtkpEyMQXyPBeNk0Xba4RXpGio98LOyOxONrYPi4/eR15vzoinBebDN4URAuUgNUxpRrrZp4cWV6W5Bu1zhKblPcAd6jP8qDv/Uty8Jew3GSRo7uZhxzPQQrw+0wBXrUSffPDEe5FH7gPy74J/EfHGtmhbThrrJQ5tmSuqiZnvbnxc3fv6ew==<br>
                  karmstrong@liberty.edu<br>
  Password: True<br>
  Member of groups: ipausers, linux_admin, gensys<br>
  Member of Sudo rule: sudo-all<br>
  Kerberos keys available: True<br>
  SSH public key fingerprint: 51:B0:DC:AD:B3:33:5F:DE:39:6C:6E:4F:35:E1:A4:90 karmstrong@liberty.edu (ssh-rsa)<br>
<br>
<br>
<br>
Double check the web interface, says that No Key is Set<br>
<br>
Followed same procedure for a host, got the same exact results.<br>
<br>
Tried to ssh as the user to the host that has keys set via command line, get the message that the keys could not be validated.<br>
<br>
Thanks.<br>
<br>
-Kenny<br>
<br>
On Wed, 2013-07-17 at 10:33 +0200, Petr Vobornik wrote:
<blockquote type="CITE">
<pre>
On 07/16/2013 07:24 PM, Armstrong, Kenneth Lawrence wrote:
<font color="#737373">> Hello all,</font>
<font color="#737373">></font>
<font color="#737373">> i have a new problem with the SSH Key bit in the web interface.  I created a new ssh key for a user, and pasted it into the web interface for the user.  Afterward, it said that the key was not set.  So I attempted again from the commandline, and it looks like it took it.  However, when I go back to the web interface, it doesn't show one set for the user.</font>
<font color="#737373">></font>
<font color="#737373">> I logged out of the interface and back in, but same story.</font>
<font color="#737373">></font>
<font color="#737373">> Running IPA server 3.0 on RHEL 6.4.</font>
<font color="#737373">></font>
<font color="#737373">> Any thoughts?</font>
<font color="#737373">></font>
<font color="#737373">> -Kenny</font>
<font color="#737373">></font>

Hello Kenny,

When SSH Public keys field in Web UI displays: "New: key not set" it 
means that the key was not set in 'Show/Set key' dialog. In other words 
you did not paste anything into the textarea or you pressed 'Cancel' 
button instead of 'Set' button.

If something is pasted and confirmed by 'Set' button it displays: 'New: 
key set'. The last remaining step is to click on 'Update' button on the 
header part of the page to confirm and perform all the changes you made 
on the page.

When keys are set in LDAP you should see a line similar to following for 
each key:
"13:67:6B:BF:4E:A2:05:8E:AE:25:8B:A1:31:DE:6F:1B public key test (ssh-rsa)"
Each fingerprint is followed by 'Show/Set key' and 'Delete' buttons.

I can't comment the CLI part without more information: key and exact 
command you used.

HTH
</pre>
</blockquote>
<br>
</body>
</html>