Complete this procedure to add the SSH public keys to the Red Hat® Directory Server
(RHDS) database.
To assign SSH public keys:
-
Open the Directory Server Console
-
Navigate to the specific user container under Directory tab.
Note: If users are stored in a different container, such as OU=External Partners, navigate to that
container and expand it.
-
Right click the user to modify and select Advanced Properties.
-
To add an object class to an entry, in the Directory tab of the
Directory Server Console, right-click the entry to modify, and select
Advanced from the pop-up menu.
-
Select the object class field and click Add
Value.
The Add Object Class window opens. It displays a list of object classes
that can be added to the entry
-
Select ldapPublicKey objectClass from the list as class name click
OK.
-
Before you can add an attribute sshPublicKey to an entry, the entry must
contain an object class ldapPublicKey that either requires or allows the
attribute.
-
Click Add Attribute and select sshPublicKey on
the list and click Edit.
-
Open the SSH public key file.
-
Copy the base64 key and paste it into a new text document. The base64 key is the lines between
the BEGIN SSH2 PUBLIC KEY and END SSH2 PUBLIC KEY
markers, excluding lines that start with keywords like Comment
-
Remove newlines from the text, leaving a single long line of base64 text.
-
Copy the single line of base64 text.
-
In properties editor of RDS admin console, paste the single line into the Value to
add field of attribute sshPublicKey to add field and click
OK.
-
Repeat step 8 through 12 for any other public keys. Click OK when all keys have been
added
-
Click Apply to save changes, then click OK to
close the Properties dialog.