1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165
|
.\" Copyright (c) 2010-2018 Dovecot authors, see the included COPYING file
.TH DOVEADM\-USER 1 "2013-11-23" "Dovecot v2.3" "Dovecot"
.SH NAME
doveadm\-user \- Perform a user lookup in Dovecot\(aqs userdbs
.\"------------------------------------------------------------------------
.SH SYNOPSIS
.BR doveadm " [" \-Dv "] " user
[\fB\-a\fP \fIuserdb_socket_path\fP]
[\fB\-f\fP \fIfield\fP]
.RB [ \-u ]
[\fB\-x\fP \fIauth_info\fP]
.IR user\ ...
.\"------------------------------------------------------------------------
.SH DESCRIPTION
The
.B user
command is used to perform a user lookup \- to show what information
Dovecot sees about the
.IR user (s),
or if it exists at all in the configured
.IR userdb (s).
.PP
The
.I auth_info
may be useful when the userdb is for example a SQL database and you are
using %variables, like
.B %s
or
.BR %l ,
in the
.I user_query
setting.
Or when you have configured the userdb in a way like this:
.sp
.nf
userdb {
driver = passwd\-file
args = /etc/%s.passwd
}
.fi
.\"------------------------------------------------------------------------
@INCLUDE:global-options@
.\" --- command specific options --- "/.
.PP
Command specific
.IR options :
.\"-------------------------------------
.TP
.BI \-a\ userdb_socket_path
This option is used to specify an absolute path to an alternative UNIX
domain socket.
.sp
By default
.BR doveadm (1)
will use the socket
.IR @rundir@/auth\-userdb .
The socket may be located in another directory, when the default
.I base_dir
setting was overridden in
.IR @pkgsysconfdir@/dovecot.conf .
.\"-------------------------------------
.TP
.BI \-f\ field
When this option and the name of a userdb field is given,
.BR doveadm (1)
will show only the value of the specified field.
.\"-------------------------------------
.TP
.B \-u
When this option is given,
.BR doveadm (1)
will only show values from the
.IR userdb .
Without \-u parameter if any of the
.IR uid ", " gid ", " home " or " mail
fields are missing, their defaults are taken from configuration file.
.\"-------------------------------------
.TP
.BI \-x\ auth_info
.I auth_info
specifies additional conditions for the
.B user
command.
The
.I auth_info
option string has to be given as
.IB name = value
pair.
For multiple conditions the
.B \-x
option could be supplied multiple times.
.br
Possible names for the
.I auth_info
are:
.RS
.TP
.B service
The service for which the userdb lookup should be tested.
The value may be the name of a service, commonly used with Dovecot.
For example:
.BR imap ,
.BR pop3\ or
.BR smtp .
.TP
.B lip
The local IP address (server) for the test.
.TP
.B rip
The remote IP address (client) for the test.
.TP
.B lport
The local port, e.g. 143
.TP
.B rport
The remote port, e.g. 24567
.RE
.\"------------------------------------------------------------------------
.SH ARGUMENTS
.TP
.I user
Is a
.IR user \(aqs
login name.
Depending on the configuration, a login name may be for example
.BR jane " or " john@example.com .
It\(aqs also possible to use
.RB \(aq * \(aq
and
.RB \(aq ? \(aq
wildcards (e.g. \-u *@example.org).
.\"------------------------------------------------------------------------
.SH EXAMPLE
Perform a user lookup for the users jane and john@example.com.
.sp
.nf
.B doveadm user jane john@example.com
userdb: jane
uid : 8001
gid : 8001
home : /home/jane
mail : sdbox:~/sdbox
plugins : sieve
quota_rule: *:storage=150M
userdb: john@example.com
home : /srv/mail/8/70312/79832
uid : 79832
gid : 70312
mail : mdbox:~/mdbox
.fi
.PP
The next example shows a user lookup, using wildcards.
.sp
.nf
.B doveadm user *.?oe@example.net
jane.doe@example.net
judy.roe@example.net
john.doe@example.net
.fi
.\"------------------------------------------------------------------------
@INCLUDE:reporting-bugs@
.\"------------------------------------------------------------------------
.SH SEE ALSO
.BR doveadm (1)
|