#2800 closed task (fixed)

LDAP ssh pub key duplicate key

Reported by: robe Owned by: sac@…
Priority: blocker Milestone: Sysadmin Contract 2022-II
Component: SysAdmin Keywords:
Cc:

Description

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

Change History (3)

comment:1 by robe, 20 months ago

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'}

comment:2 by robe, 20 months ago

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.

comment:3 by robe, 20 months ago

Resolution: fixed
Status: newclosed

Received confirmation from the person having the issue he can now save his key.

Note: See TracTickets for help on using tickets.