Displaying 20 results from an estimated 276 matches for "userdb_gid".
2011 Jan 29
2
sql : uid, gid, home ignored ?
Hello,
I'm trying to setup a dovecot imap server.
version is 2.0.9
I've setup a mysql database using:
user_query = \
SELECT home, uid, gid, home as userdb_home, uid as userdb_uid, gid as userdb_gid, \
FROM user WHERE username = '%n' AND domain = '%d' AND active = 'Y'
password_query = \
SELECT username AS user, password, home as userdb_home, uid as userdb_uid, gid as userdb_gid, home, uid, gid \
FROM user WHERE username = '%n' AND domain = '%...
2018 Oct 04
2
vpopmail
...{CRYPT})
>>> Aki
>>
>>
>> Or use SQL -? then you don't have to munge any of your tools.
>>
>> password_query =
>> SELECT CONCAT(pw_name, '@', pw_domain) AS user, pw_passwd AS
>> password, pw_dir as userdb_home, 89 as userdb_uid, 89 as userdb_gid
>> FROM vpopmail WHERE pw_name = '%n' AND pw_domain = '%d' AND
>> !(pw_gid & 8) AND !(pw_gid & 2) AND ('%r'!='<webserverip>' or
>> !(pw_gid & 4))
>>
>> pw_gid refers to the the binary vpopmail flags for disable POP,...
2006 Mar 26
2
userdb prefetch not working for passdb sql
...dovecot: auth(default): passwd(testuser at mydomain.com,127.0.0.1): unknown user
Mar 26 15:16:03 imapserver dovecot: auth(default): prefetch(testuser at mydomain.com,127.0.0.1): userdb_uid not returned
Mar 26 15:16:03 imapserver dovecot: auth(default): prefetch(testuser at mydomain.com,127.0.0.1): userdb_gid not returned
Mar 26 15:16:03 imapserver dovecot: auth(default): userdb(testuser at mydomain.com,127.0.0.1): user not found from userdb
Mar 26 15:16:03 imapserver dovecot: auth(default): master out: NOTFOUND 1
Mar 26 15:16:03 imapserver dovecot: imap-login: Internal login failure: user=<testuser...
2015 Sep 11
2
Need help on checkpassword userdb/passdb
...heckpassword
}
userdb {
driver = prefetch
}
I've created a checkpassword program that does receive the correct user and
password from dovecot. And I am successfully authenticating with ntlm_auth and
exiting with status 0. My debug output:
AUTHORIZED: (null)
USER: (null)
userdb_uid: (null)
userdb_gid: (null)
arg1=/usr/local/libexec/dovecot/checkpassword-reply
CMD: /usr/bin/ntlm_auth --username="mark" --password='mypass'
ntlm_auth status: 0
Now, the wiki says 2 things that have me stumped:
1. It says that, "Dovecot calls the script with AUTHORIZED=1 environment set
when...
2016 May 03
3
Changing Password Schemes
...WHERE):
password_query = \
SELECT username AS USER, \
IF(cryptpwd IS NULL OR cryptpwd=' ', CONCAT('{PLAIN}',clearpwd),
cryptpwd) AS PASSWORD, \
'/var/vmail/%d/%n' as userdb_home, \
'maildir:/var/vmail/%d/%n' as userdb_mail, 150 as userdb_uid, 8 as
userdb_gid \
FROM mailbox \
WHERE username = '%u' AND active = '1' AND cryptpwd = password ('%w')
But still no happy dance, we now have a new error:
dovecot: imap-login: Disconnected (auth failed, 3 attempts in 15
secs): user=<user at domain.tld>, method=PLAIN, rip=...
2013 Aug 14
0
weird situation with pop3/imap proxy and postfix authentication
...(imapproxy) with two fields,
'domain' and 'host'. My password_query isa 'UNION' query, exactly like:
password_query=select endereco as user, password, '/var/spool/mail/%u'
as userdb_home, 'maildir:/var/spool/mail/%u' as userdb_mail, 8 as
userdb_uid, 12 as userdb_gid, concat('*:storage=', quota) as
userdb_quota_rule, 'Trash:storage=+100M' as userdb_quota_rule2, 'Y' as
proxy_maybe, '10.252.38.2' as host from emails where endereco = '%u' and
ativa = '1' UNION select NULL as user, '%w' as password, NULL as...
2018 Oct 04
3
vpopmail
...?
>
> Prefix your passwords in vpopmail with {SCHEME} (like,? {CRYPT})
> Aki
Or use SQL -? then you don't have to munge any of your tools.
password_query =
SELECT CONCAT(pw_name, '@', pw_domain) AS user, pw_passwd AS password,
pw_dir as userdb_home, 89 as userdb_uid, 89 as userdb_gid
FROM vpopmail WHERE pw_name = '%n' AND pw_domain = '%d' AND !(pw_gid &
8) AND !(pw_gid & 2) AND ('%r'!='<webserverip>' or !(pw_gid & 4))
pw_gid refers to the the binary vpopmail flags for disable POP, IMAP, Webmail.
Rick
When configuring vpopmai...
2007 Apr 23
2
Auth MD5 problem
...in login cram-md5 digest-md5
Mysql Tables: Passwords are stored with the help of MD5 function
dovecot-sql.conf :
============
user_query = SELECT home, uid, gid FROM users WHERE userid = '%u'
password_query = SELECT userid as user, password, home as userdb_home,
uid as userdb_uid, gid as userdb_gid FROM users WHERE userid = '%u'
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
2018 Feb 01
2
AuthDatabase CheckPassword broken?
...fdopen(DOVECOT_PW_FD, 'r') as s:
> ??? data = s.read().split("\0")
> ??? if data[0] != "testuser" or data[1] != "pass":
> ????? return False
> ??? os.environ["USER"] = data[0]
> ??? os.environ["EXTRA"] = "userdb_uid=vmail userdb_gid=vmail"
> ? return True
>
> if __name__ == "__main__":
> ? if not checkPassword():
> ??? sys.exit(1)
> ? os.execv(sys.argv[1], sys.argv[1:])
>
> And it seems to work.
>
> Aki
Thanks for the script. I'm testing this on a production system, so I'll...
2011 Feb 01
2
override not working
...ries:
password_query = SELECT username as user, password,
if('%d'='virttest2.xxx.net', 'acl imap_acl',null) as mail_plugins,
concat('/var/vmail/%d/', maildir) as userdb_home,
concat('maildir:/var/vmail/%d/', maildir) as userdb_mail, 101 as userdb_uid,
502 as userdb_gid, CONCAT('*:bytes=', CAST(quota AS CHAR)) AS quota_rule
FROM mailbox WHERE username = '%u'
user_query = SELECT maildir, if('%d'='virttest2.xxx.net', 'acl
imap_acl',null) as mail_plugins, 101 AS uid, 502 AS gid, CONCAT('*:bytes=',
CAST(quota AS...
2016 May 03
3
Changing Password Schemes
...ername AS USER, \
>> IF(cryptpwd IS NULL OR cryptpwd=' ', CONCAT('{PLAIN}',clearpwd),
>> cryptpwd) AS PASSWORD, \
>> '/var/vmail/%d/%n' as userdb_home, \
>> 'maildir:/var/vmail/%d/%n' as userdb_mail, 150 as userdb_uid, 8 as
>> userdb_gid \
>> FROM mailbox \
>> WHERE username = '%u' AND active = '1' AND cryptpwd = password ('%w')
>>
>> But still no happy dance, we now have a new error:
>>
>> dovecot: imap-login: Disconnected (auth failed, 3 attempts in 15
>>...
2009 Jan 27
3
Symlink shared mailboxes and system_user extra field
...n /courriel/boites)
I made the userdb (prefetch) return the system_user extra_field (for now, I'm
using an used LDAP attribute - I will create a new attribute in my schema
later) :
pass_attrs = uid=user,userPassword=password,homeDirectory=userdb_home,,,uidNumber=userdb_uid,gidNumber=userdb_gid,shadowMax=userdb_system_user
and it seems to be actually returned :
Jan 27 09:34:10 munster3 dovecot: auth(default): ldap(foobar,157.99.64.42): result: uid(user)=foobar uidNumber(userdb_uid)=xxx gidNumber(userdb_gid)=xxx homeDirectory(userdb_home)=/home1/xxx/foobar userPassword(password)=&l...
2008 Nov 19
2
CRAM-MD5 and proxy_maybe
...FROM accounts WHERE class='pop' AND domain='%d'
This doesn't work if proxied and CRAM-MD5 auth:
password_query = \
SELECT \
CONCAT(user,'@',domain) AS user, password, \
host, 'Y' AS proxy_maybe, \
target AS userdb_home, uid AS userdb_uid, gid AS userdb_gid \
FROM accounts
WHERE \
class='pop' AND domain='%d' AND user='%n' \
LIMIT 1
Thanks,
David
2008 Mar 08
1
(no subject)
...-------------------+--------+
| home | user |
+-----------------------------+--------+
| /var/maildir/bclark/Maildir | bclark |
+-----------------------------+--------+
dovecot-sql set up
password_query = SELECT username as user, password, home , uid as
userdb_uid, gid as userdb_gid FROM user WHERE username = '%u' and domain =
'%d'
I have removed
Mar 8 15:42:56 eccostorage dovecot: auth(default): client out: CONT^I1^I
Mar 8 15:42:56 eccostorage dovecot: auth(default): client in:
CONT^I1^IAGJjbGFyawBxYXo=
Mar 8 15:42:56 eccostorage dovecot: auth-worker(defa...
2011 Aug 31
2
Password query returned multiple matches
...p=64.88.168.84, lip=127.0.0.1, TLS
Can you tell me what it means or what I should look for?
In my dovecot-sql.conf I have this query:
password_query = SELECT EmailAdd AS user, Password AS password, concat('/var/spool/mail/virtual/',MailDirLoc) as userdb_home, 999 as userdb_uid, 115 as userdb_gid FROM MailAccounts WHERE Username='%u' AND active = '1';
Since the EmailAdd is unique I don't see how it can return multiple matches.
Thanks.
Simon
2018 Oct 04
0
vpopmail
...t;> Aki
>>>
>>> Or use SQL -? then you don't have to munge any of your tools.
>>>
>>> password_query =
>>> SELECT CONCAT(pw_name, '@', pw_domain) AS user, pw_passwd AS
>>> password, pw_dir as userdb_home, 89 as userdb_uid, 89 as userdb_gid
>>> FROM vpopmail WHERE pw_name = '%n' AND pw_domain = '%d' AND
>>> !(pw_gid & 8) AND !(pw_gid & 2) AND ('%r'!='<webserverip>' or
>>> !(pw_gid & 4))
>>>
>>> pw_gid refers to the the binary vpopmail fl...
2009 Jun 18
3
ldap , quotes, upgrade from dovecot-1.0.14 (q2.0)
...,gidNumber=gid,boxQuota=quota=dirsize:storage,status
user_attrs =
homeDirectory=home,uidNumber=uid,gidNumber=gid,boxQuota=quote_rule=maildir:storage=%$K,status
user_filter = (&(objectClass=posixAccount)(uid=%u))
pass_attrs =
uid=user,,,homeDirectory=userdb_home,uidNumber=userdb_uid,gidNumber=userdb_gid,boxQuota=userdb_quota=maildir:storage=%$K,userPassword=password,status=userdb_status
pass_filter = (&(objectClass=posixAccount)(uid=%u))
=================
plan is:
1. if there is a quota in ldap (boxQuota) - we use it
2. if not - quota_rule = maildir:storage=500000K
but in real world i have...
2015 Jun 28
0
cram-md5 cache problem
...en>
Jun 28 11:50:32 auth: Debug:
cache(test at test.example.com,127.0.0.1,<xjn534sZ9gB/AAAB>): hit:
<hidden> user=test at test.example.com
userdb_home=/share/postfix/domains/test.example.com/test/home
userdb_mail=maildir:/share/postfix/domains/test.example.com/test
userdb_uid=143 userdb_gid=143
Jun 28 11:50:32 auth: Info:
cram-md5(test at test.example.com,127.0.0.1,<xjn534sZ9gB/AAAB>): password
mismatch
Jun 28 11:50:34 auth: Debug: client passdb out: FAIL 6
user=test at test.example.com
Jun 28 11:50:34 imap-login: Debug: Ignoring unknown passdb extra field:
Jun 28 11:50:34 im...
2008 Jul 01
2
"select NULL as password..." failing after upgrade to dovecot-1.1
Hi,
I've upgraded mail server to dovecot-1.1, on solaris-10 with mysql user
database.
I used sql query
"SELECT NULL as password, login as user,
concat('/mail/var/dovecot/',login) AS userdb_home, 501 AS userdb_uid,
501 AS userdb_gid FROM users WHERE login='%n' AND
password=old_password('%w')" with dovecot-1.0.15 and it worked perfectly.
But since upgrade the server can not authenticate any users, complaining
in info_log: "Empty password returned without no_password".
How to set up such things i...
2018 Feb 01
2
AuthDatabase CheckPassword broken?
I had been using the CheckPassword authentication interface with dovecot 2.2.15,
https://wiki2.dovecot.org/AuthDatabase/CheckPassword, and it was working.
After upgrading to 2.2.33.2 CheckPassword no longer works. The referenced wiki page says,
Checkpassword Interface
Read <username> NUL <password> NUL from fd 3.
I've checked the information read from fd 3 with 2.2.33.2