<!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>
I can't help but wonder if it is something with the browser cache, as after I posted my notes from yesterday to the mailing list, I logged into the web UI and see that my keys are now there.  And yes, I did recently upgrade this server, so the cache must have
 been trying to work with old data.<br>
<br>
Thanks!<br>
<br>
-Kenny<br>
<br>
On Wed, 2013-07-17 at 15:44 +0200, Petr Vobornik wrote:
<blockquote type="CITE">
<pre>
I've tested your key on a fresh install of 
ipa-server-3.0.0-25.el6.x86_64 and it works for me. On the other hand, 
the description of the problem looks like a Web UI bug.

Is it possible, that you recently upgraded IPA server and Web browser 
still contains some old files in a cache? Please try reloading the UI 
with forced cache override, usual shortcut: Ctrl + F5 or Ctrl + Shift + R

Petr

On 07/17/2013 03:04 PM, Armstrong, Kenneth Lawrence wrote:
<font color="#737373">> Thanks Petr,</font>
<font color="#737373">></font>
<font color="#737373">> I am 100% positive that I pressed 'Set' and not 'Cancel'.</font>
<font color="#737373">></font>
<font color="#737373">> Here are the exact steps and keys I used:</font>
<font color="#737373">></font>
<font color="#737373">> Generate an ssh public key (for user):</font>
<font color="#737373">></font>
<font color="#737373">> ssh-keygen -t rsa -C <a href="mailto:karmstrong@liberty.edu">karmstrong@liberty.edu</a><<a href="mailto:karmstrong@liberty.edu">mailto:karmstrong@liberty.edu</a>></font>
<font color="#737373">></font>
<font color="#737373">> Cat out the key, paste into web interface for user:</font>
<font color="#737373">></font>
<font color="#737373">> cat .ssh/id_rsa.pub</font>
<font color="#737373">> ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA8EDvuInIneXbzg9WrkLKBkVHB0O6bAPjNMF4dTyOqdwX2HDLtLVcW4VY7/03p6xOc014z3rio4GWXa3Othkf5/hqhpQR1C4CUGgSnnUVC7gw/aI9ZpFbp9UGQdEw7E6ii1qDmoyH80wA0pSMfp/Tg19mdm/3GKNqeNCtkpEyMQXyPBeNk0Xba4RXpGio98LOyOxONrYPi4/eR15vzoinBebDN4URAuUgNUxpRrrZp4cWV6W5Bu1zhKblPcAd6jP8qDv/Uty8Jew3GSRo7uZhxzPQQrw+0wBXrUSffPDEe5FH7gPy74J/EfHGtmhbThrrJQ5tmSuqiZnvbnxc3fv6ew== <a href="mailto:karmstrong@liberty.edu">karmstrong@liberty.edu</a><<a href="mailto:karmstrong@liberty.edu">mailto:karmstrong@liberty.edu</a>></font>
<font color="#737373">></font>
<font color="#737373">></font>
<font color="#737373">> Web interface says that the key is set</font>
<font color="#737373">></font>
<font color="#737373">> Click Update on web interface, get IPA Error 4202 "no modifications to be performed"</font>
<font color="#737373">></font>
<font color="#737373">></font>
<font color="#737373">> Skip the web interface, try from command line, appears to succeed:</font>
<font color="#737373">></font>
<font color="#737373">> [karmstrong@linuxclient<<a href="mailto:karmstrong@linuxclient">mailto: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><<a href="mailto:karmstrong@liberty.edu">mailto:karmstrong@liberty.edu</a>>"</font>
<font color="#737373">> --------------------------</font>
<font color="#737373">> Modified user "karmstrong"</font>
<font color="#737373">> --------------------------</font>
<font color="#737373">>    User login: karmstrong</font>
<font color="#737373">>    First name: Kenneth</font>
<font color="#737373">>    Last name: Armstrong</font>
<font color="#737373">>    Home directory: /import/is/users/karmstrong</font>
<font color="#737373">>    Login shell: /bin/bash</font>
<font color="#737373">>    UID: 1838200001</font>
<font color="#737373">>    GID: 1838200001</font>
<font color="#737373">>    Account disabled: False</font>
<font color="#737373">>    SSH public key: ssh-rsa</font>
<font color="#737373">>                    AAAAB3NzaC1yc2EAAAABIwAAAQEA8EDvuInIneXbzg9WrkLKBkVHB0O6bAPjNMF4dTyOqdwX2HDLtLVcW4VY7/03p6xOc014z3rio4GWXa3Othkf5/hqhpQR1C4CUGgSnnUVC7gw/aI9ZpFbp9UGQdEw7E6ii1qDmoyH80wA0pSMfp/Tg19mdm/3GKNqeNCtkpEyMQXyPBeNk0Xba4RXpGio98LOyOxONrYPi4/eR15vzoinBebDN4URAuUgNUxpRrrZp4cWV6W5Bu1zhKblPcAd6jP8qDv/Uty8Jew3GSRo7uZhxzPQQrw+0wBXrUSffPDEe5FH7gPy74J/EfHGtmhbThrrJQ5tmSuqiZnvbnxc3fv6ew==</font>
<font color="#737373">>                    <a href="mailto:karmstrong@liberty.edu">karmstrong@liberty.edu</a></font>
<font color="#737373">>    Password: True</font>
<font color="#737373">>    Member of groups: ipausers, linux_admin, gensys</font>
<font color="#737373">>    Member of Sudo rule: sudo-all</font>
<font color="#737373">>    Kerberos keys available: True</font>
<font color="#737373">>    SSH public key fingerprint: 51:B0:DC:AD:B3:33:5F:DE:39:6C:6E:4F:35:E1:A4:90 <a href="mailto:karmstrong@liberty.edu">karmstrong@liberty.edu</a> (ssh-rsa)</font>
<font color="#737373">></font>
<font color="#737373">></font>
<font color="#737373">></font>
<font color="#737373">> Double check the web interface, says that No Key is Set</font>
<font color="#737373">></font>
<font color="#737373">> Followed same procedure for a host, got the same exact results.</font>
<font color="#737373">></font>
<font color="#737373">> 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.</font>
<font color="#737373">></font>
<font color="#737373">> Thanks.</font>
<font color="#737373">></font>
<font color="#737373">> -Kenny</font>
<font color="#737373">></font>
<font color="#737373">> On Wed, 2013-07-17 at 10:33 +0200, Petr Vobornik wrote:</font>
<font color="#737373">></font>
<font color="#737373">></font>
<font color="#737373">> On 07/16/2013 07:24 PM, Armstrong, Kenneth Lawrence wrote:</font>
<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>
<font color="#737373">></font>
<font color="#737373">> Hello Kenny,</font>
<font color="#737373">></font>
<font color="#737373">> When SSH Public keys field in Web UI displays: "New: key not set" it</font>
<font color="#737373">> means that the key was not set in 'Show/Set key' dialog. In other words</font>
<font color="#737373">> you did not paste anything into the textarea or you pressed 'Cancel'</font>
<font color="#737373">> button instead of 'Set' button.</font>
<font color="#737373">></font>
<font color="#737373">> If something is pasted and confirmed by 'Set' button it displays: 'New:</font>
<font color="#737373">> key set'. The last remaining step is to click on 'Update' button on the</font>
<font color="#737373">> header part of the page to confirm and perform all the changes you made</font>
<font color="#737373">> on the page.</font>
<font color="#737373">></font>
<font color="#737373">> When keys are set in LDAP you should see a line similar to following for</font>
<font color="#737373">> each key:</font>
<font color="#737373">> "13:67:6B:BF:4E:A2:05:8E:AE:25:8B:A1:31:DE:6F:1B public key test (ssh-rsa)"</font>
<font color="#737373">> Each fingerprint is followed by 'Show/Set key' and 'Delete' buttons.</font>
<font color="#737373">></font>
<font color="#737373">> I can't comment the CLI part without more information: key and exact</font>
<font color="#737373">> command you used.</font>
<font color="#737373">></font>
<font color="#737373">> HTH</font>
<font color="#737373">></font>
<font color="#737373">></font>


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