[SAC] [OSGeo] #2800: LDAP ssh pub key duplicate key

#2800: LDAP ssh pub key duplicate key
---------------------------+---------------------------------------
Reporter: robe | Owner: sac@…
     Type: task | Status: new
Priority: blocker | Milestone: Sysadmin Contract 2022-II
Component: Systems Admin | Keywords:
---------------------------+---------------------------------------
It is not possible to add an SSH public key on id.osgeo.org/ldap/edit if
you are in the shell group and don't already have a public key registered.

Discovered this when trying to give a user rights to upload to
upload.osgeo.org
--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/2800&gt;
OSGeo <https://osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.

#2800: LDAP ssh pub key duplicate key
---------------------------+----------------------------------------
Reporter: robe | Owner: sac@…
     Type: task | Status: new
Priority: blocker | Milestone: Sysadmin Contract 2022-II
Component: Systems Admin | Resolution:
Keywords: |
---------------------------+----------------------------------------
Comment (by robe):

The error that is generated is:

{{{
File "/usr/lib/python3/dist-packages/ldap/compat.py", line 44, in reraise
     raise exc_value
   File "/usr/lib/python3/dist-packages/ldap/ldapobject.py", line 315, in
_ldap_call
     result = func(*args,**kwargs)
ldap.TYPE_OR_VALUE_EXISTS: {'desc': 'Type or value exists', 'info':
'modify/add: objectClass: value #0 already exists'}

}}}
--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/2800#comment:1&gt;
OSGeo <https://osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.

#2800: LDAP ssh pub key duplicate key
---------------------------+----------------------------------------
Reporter: robe | Owner: sac@…
     Type: task | Status: new
Priority: blocker | Milestone: Sysadmin Contract 2022-II
Component: Systems Admin | Resolution:
Keywords: |
---------------------------+----------------------------------------
Comment (by robe):

I think I have this fixed now so it works. But looks like it's not
deleting the ldapPublicKey objectclass like it used to when the
sshPublicKey is removed. I'm feeling that isn't too important. But I'll
keep this open until I have confirmation the main issue is fixed.
--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/2800#comment:2&gt;
OSGeo <https://osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.

#2800: LDAP ssh pub key duplicate key
---------------------------+----------------------------------------
Reporter: robe | Owner: sac@…
     Type: task | Status: closed
Priority: blocker | Milestone: Sysadmin Contract 2022-II
Component: Systems Admin | Resolution: fixed
Keywords: |
---------------------------+----------------------------------------
Changes (by robe):

* status: new => closed
* resolution: => fixed

Comment:

Received confirmation from the person having the issue he can now save his
key.
--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/2800#comment:3&gt;
OSGeo <https://osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.