Project

General

Profile

Actions

action #36511

closed

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

Added by flacco almost 6 years ago. Updated over 2 years 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 1 (1 open0 closed)

Related to invisAD-setup - action #98042: Release invis-Server 14.3In Progressflacco2021-09-032024-04-30

Actions
Actions #1

Updated by flacco over 3 years ago

  • Due date set to 2021-02-28

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

Actions #2

Updated by ingogoeppert over 3 years ago

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

Actions #3

Updated by flacco over 3 years 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?

Actions #4

Updated by ingogoeppert about 3 years ago

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

Updated by ingogoeppert almost 3 years ago

  • Due date deleted (2021-03-31)
Actions #6

Updated by flacco almost 3 years 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?

Actions #7

Updated by flacco over 2 years 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.

Actions #8

Updated by flacco over 2 years ago

  • Due date set to 2021-10-31
Actions #9

Updated by flacco over 2 years ago

Actions #10

Updated by flacco over 2 years ago

  • Status changed from Feedback to In Progress
Actions #11

Updated by flacco over 2 years 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.

Actions #12

Updated by flacco over 2 years 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...

Actions #13

Updated by flacco over 2 years ago

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

Sieht gut aus. Job done.

Actions

Also available in: Atom PDF