operasoftware / dns-ui

Opera's LDAP-authenticated PowerDNS user interface
Apache License 2.0
282 stars 57 forks source link

SQL or api endpoint for (clean) user deletion? #195

Closed maltris closed 5 days ago

maltris commented 1 year ago

Hello,

I'd like to cleanup the users DB of dns-ui and remove old user accounts. In the UI, I dont see any feature. I dont want to break any references in the DB. Does anyone have a SQL one-liner ready or is there some hidden feature to delete a user via the UI?

maltris commented 1 year ago

I am thinking to patch/workaround this, if deletion is not easily possible without breaking references. But would be much more happy with a clean solution to really remove the user for good.

maltris commented 5 days ago

I am closing this ticket, because I found that the script in scripts/ldap_update.php basically does exactly that while the user_access config flag can define the positive or negative lookup value.