[Dovecot] get username of logged in user
Hello,
can I anywhere get the name of the currently logged in user?
I'm still implementing a custom ACL plugin (IMAP commands MYRIGHTS, GETACL, SETACL, DELETEACL), and for some functions (for example storing the current folder's ACL in combination with this username) I need to obtain the currently logged in IMAP user.
Is this possible? If yes - how?
Thanks in advance.
Best regards Stefan
--
SIEGNETZ.IT GmbH { w3o-services } Schneppenkauten 1a D-57076 Siegen
Tel.: 0271 68193-0 Fax: 0271 68193-29
Geschäftsführer: Oliver Seitz
Handelsregister-Nummer: HRB4838 Registergericht: Amtsgericht Siegen
Das Wort “WINDOWS” stammt aus einem alten Sioux-Dialekt und bedeutet: “Weißer Mann starrt durch Glasscheibe auf Sanduhr.”
-- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
Stefan Jurisch wrote:
Hello,
can I anywhere get the name of the currently logged in user?
I'm still implementing a custom ACL plugin (IMAP commands MYRIGHTS, GETACL, SETACL, DELETEACL), and for some functions (for example storing the current folder's ACL in combination with this username) I need to obtain the currently logged in IMAP user.
Is this possible? If yes - how?
All of Dovecot's settings are passed via environment variables from master process to mail processes. This incudes userdb information: user, UID, GID etc.
Thanks in advance.
Best regards Stefan
Uldis
Thanks. :-)
On Thu, Jan 15, 2009 at 12:34:14PM +0200, Uldis Pakuls wrote:
Stefan Jurisch wrote:
Hello,
can I anywhere get the name of the currently logged in user?
I'm still implementing a custom ACL plugin (IMAP commands MYRIGHTS, GETACL, SETACL, DELETEACL), and for some functions (for example storing the current folder's ACL in combination with this username) I need to obtain the currently logged in IMAP user.
Is this possible? If yes - how?
All of Dovecot's settings are passed via environment variables from master process to mail processes. This incudes userdb information: user, UID, GID etc.
Thanks in advance.
Best regards Stefan
Uldis
--
SIEGNETZ.IT GmbH { w3o-services } Schneppenkauten 1a D-57076 Siegen
Tel.: 0271 68193-0 Fax: 0271 68193-29
Geschäftsführer: Oliver Seitz
Handelsregister-Nummer: HRB4838 Registergericht: Amtsgericht Siegen
Das Wort “WINDOWS” stammt aus einem alten Sioux-Dialekt und bedeutet: “Weißer Mann starrt durch Glasscheibe auf Sanduhr.”
-- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
On Thu, 2009-01-15 at 10:34 +0100, Stefan Jurisch wrote:
Hello,
can I anywhere get the name of the currently logged in user?
I'm still implementing a custom ACL plugin (IMAP commands MYRIGHTS, GETACL, SETACL, DELETEACL), and for some functions (for example storing the current folder's ACL in combination with this username) I need to obtain the currently logged in IMAP user.
Why a custom one? Do you mean all IMAP commands from scratch? Why not use the existing acl and imap_acl plugins and only implement a new ACL backend instead of the default vfile one?
participants (3)
-
Stefan Jurisch
-
Timo Sirainen
-
Uldis Pakuls