Project

General

Profile

action #36511

It should be possible for admins to manage mailaccounts for other users

Added by flacco over 3 years ago. Updated 3 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Feature
Target version:
Start date:
2018-05-24
Due date:
2021-10-31
% Done:

100%

Estimated time:

Description

For now users can only manage their own mailaccounts with cornaz (cornaz is now part of the invis-portal #29909). If the admin has to do this he needs the users password. ...not the best solution. We should make the mailaccount management possible for admins (global management) and users (just own accounts).


Related issues

Related to invisAD-setup - action #98042: Release invis-Server 14.3In Progress2021-09-032021-11-30

History

#1 Updated by flacco about 1 year ago

  • Due date set to 2021-02-28

Wäre schön, wenn wir hier mal anfangen würden.

#2 Updated by ingogoeppert about 1 year ago

Yes, indeed. But you know yourself that tickets sometimes take a very long time until they get done ;-)

#3 Updated by flacco about 1 year ago

The invis portal checks if an authenticated user is member of the group domain users or not. This should be the base for the new function. Or should we restrict this function on the administrator account?

#4 Updated by ingogoeppert 9 months ago

  • Due date changed from 2021-02-28 to 2021-03-31

#5 Updated by ingogoeppert 7 months ago

  • Due date deleted (2021-03-31)

#6 Updated by flacco 7 months ago

  • Category set to Feature
  • Status changed from New to Feedback
  • Assignee changed from ingogoeppert to flacco
  • Target version changed from Future to 14.3
  • % Done changed from 0 to 60

Workarounds added:

  1. New Toolbox-Script "refreshfrc" tor rewrite .fetchmailrc added. It's possible to use this script via invis-portal or commandline.
  2. New Toolbox-Script "addmailaccount" to add external mailaccounts for a user via commandline.

This was much easier than adding this functionality to invis-Portal.

The question: Should we add an administration mode to manage mailaccounts via invis-Portal or fits these workarounds our needs?

#7 Updated by flacco 3 months ago

  • Subject changed from It should be possible for admins to manage mailaccounts for other users with cornaz to It should be possible for admins to manage mailaccounts for other users
  • % Done changed from 60 to 70

Mit dem neuen Toolbox-Script "changemacstate" ist es jetzt auf der Kommandozeile möglich den Mailabruf für definierte Benutzer zu aktivieren, oder deaktivieren.

Damit sind im Grunde alle Werkzeuge zur administrativen Verwaltung externer Mailkonten beisamen. Sie funktionieren derzeit allerdings nicht, wenn einem lokalen Benutzer mehr als ein externes Mailkonto zugewiesen ist.

Der Umgang mit mehreren Mailkonten muss noch getestet werden und macht ganz sicher noch ein paar Anpassungen an den Scripts erforderlich.

#8 Updated by flacco 3 months ago

  • Due date set to 2021-10-31

#9 Updated by flacco 3 months ago

#10 Updated by flacco 3 months ago

  • Status changed from Feedback to In Progress

#11 Updated by flacco 3 months ago

  • % Done changed from 70 to 80

Das Script "refreshfrc" kann jetzt auch damit umgehen, wenn ein Benutzer mehr als ein externes Email-Postfach besitzt.

Dabei bin ich auf zwei sehr schöne Moves in Sachen Shellscripting gestossen:

Mit csplit Dateien anhand von Mustern in mehrere Dateien zerlegen:

csplit -f $workdir/splitfile_ -z /$tmpfile /^dn:/ '{*}'

"csplit -f Muster-Zieldateien -z Quelldatei Trennmuster 'für jedes vorkommen wiederholen'"

Duplikate aus bash Arrays entfernen:

sauberesarray=($(echo "${unsauberesarray[@]}" | tr ' ' '\n' | sort -u | tr '\n' ' '))

Warum hab ich da nich früher mal genauer recherchiert, hätte mir viel Arbeit erspart.

#12 Updated by flacco 3 months ago

  • % Done changed from 80 to 90

Das Script changemacstate kann jetzt auch damit umgehen, wenn ein User mehrere externe Postfächer besitzt.

Fehlen allenfalls noch ein paar Tests...

#13 Updated by flacco 3 months ago

  • Status changed from In Progress to Closed
  • % Done changed from 90 to 100

Sieht gut aus. Job done.

Also available in: Atom PDF