-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDGc4IoOt35uxX66xzqfRy2jpYSurUjki0RYjZwI0vb2hBO2tm3enbnyz2LXLc2xm+PcSOx3RwigwWcxKhnl9P4l8PhbIBCyk3itckosxedEIQfsdZC/8dgo0kkHFSxg+PRKDDJHkiQH+e+t5xi3/iERwvwk5CVFcacS2Xo/VipYppXxcaMA8dGiuaXl5ezCB/v58Dn4VvzTDCxULAxw2Q4l9SqjzVy60dRd3bP8PBf1hD8Ggx5JIPGdlb0r6d6LCwZXyUdoaDXXOk8bTGYsV25d/lLddTF73ZqSItPdDEVHEd7yJzLNI2uwwFblog1/0bpCdhcWkPNwQJs6o8Ltl9f sping@sevendust+gentoo -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) iEYEARECAAYFAkzoWvwACgkQsAvGakAaFgC35QCdF8UeM6IYsTqDxWHIN9U974P4 4ooAoNFv4iiwydEVRQLZMFJt/qwcPlju =jZmm -----END PGP SIGNATURE-----
To what? LDAP? You can add it yourself.
(In reply to comment #1) > To what? LDAP? You can add it yourself. LDAP, yes. I would, but perl_ldap says that option "-M" is for "single-valued attributes only" (which sounds like not suited for my case), plus I'm afraid to lock myself out, plus I have a very hard time using perl_ldap in general. Could you help me out, at least with the command to run?
(In reply to comment #2) > (In reply to comment #1) > > To what? LDAP? You can add it yourself. > > LDAP, yes. I would, but perl_ldap says that option "-M" is for "single-valued > attributes only" (which sounds like not suited for my case), plus I'm afraid to > lock myself out, plus I have a very hard time using perl_ldap in general. > > Could you help me out, at least with the command to run? > Sure :) You must create a new attribute. Overwriting (-M) is not possible. http://www.gentoo.org/proj/en/infrastructure/ldap.xml (substitute 'pubkey' with the path to your public SSH key. ex: "~/.ssh/id_dsa.pub". You should have one sshPublicKey attribute per key! No newlines! Only replace <username>, not "user") # perl_ldap -b user -C sshPublicKey "$(cat pubkey)" <username>
Worked, thank you! Closing.