Displaying 10 results from an estimated 10 matches for "clearpwd".
2016 May 03
5
Changing Password Schemes
Thank you,
Due to changes I had to make to let password_query work, I think your
"quick" version should be like this my setup:
UPDATE mailbox set password = ENCRYPT(clearpwd, CONCAT('$6$',sha(RAND()))) WHERE password IS NULL OR password=' ';
------------
You have a good day now, en mag jou m?re ook so wees,
Carl A Jeptha
On 2016-05-03 18:10, Gedalya wrote:
> The script I sent you should do the job of populating your cryptpwd column with a SHA512-C...
2016 May 03
3
Changing Password Schemes
...> OK QUERY is WORKING ("password_query" relies on having a field/column
>> "password', hence the addition under 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...
2016 May 03
2
Changing Password Schemes
...way it matches an empty string
>
>
> On 05/03/2016 12:29 PM, Carl Jeptha wrote:
>> Thank you,
>> Due to changes I had to make to let password_query work, I think your "quick" version should be like this my setup:
>>
>> UPDATE mailbox set password = ENCRYPT(clearpwd, CONCAT('$6$',sha(RAND()))) WHERE password IS NULL OR password=' ';
>>
>> ------------
>> You have a good day now, en mag jou m?re ook so wees,
>>
>> Carl A Jeptha
>>
>> On 2016-05-03 18:10, Gedalya wrote:
>>> The script I sent you...
2016 May 03
2
Changing Password Schemes
...;> OK QUERY is WORKING ("password_query" relies on having a field/column
>> "password', hence the addition under 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...
2016 May 03
3
Changing Password Schemes
OK QUERY is WORKING ("password_query" relies on having a field/column
"password', hence the addition under 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 sti...
2016 May 02
2
Changing Password Schemes
...tice it drops "PASSWORD", but shows it in the query:
> #1064 - You have an error in your SQL syntax; check the manual that
> corresponds to your MySQL server version for the right syntax to use near '\
> IF(cryptpwd IS NULL OR cryptpwd='', CONCAT('{PLAIN}',clearpwd),
> cryptpwd) as ' at line 1
>
>
It also sarts with a \ ... did you leave that in? That is specific to the dovecot config file. In PHPMyAdmin you should remove the line-continuation backslashes.
Actually if you use the mysql command-line client, you would be able to paste that in with...
2016 May 01
3
Changing Password Schemes
...es]
>
> Here is my dovecot-sql.conf.ext file:
>
> driver = mysql
> connect = host=127.0.0.1 dbname=vmail user=********* password=*************
> default_pass_scheme = SHA512-CRYPT
> password_query = SELECT IF(cryptpwd IS NULL OR
> cryptpwd='',CONCAT('{PLAIN}',clearpwd),cryptpwd)as password FROM mailbox
> user_query = SELECT '/var/vmail/%d/%n' as home, 'maildir:/var/vmail/%d/%n'
> as mail, 150 AS uid, 8 AS gid, concat('dirsize:storage=', quota) AS quota
> FROM mailbox WHERE username = '%u' AND active = '1'
>
&g...
2016 Apr 29
4
Changing Password Schemes
converting the passwords in the database from clear/plain text to
SHA512-CRYPT
------------
You have a good day now, en mag jou m?re ook so wees,
Carl A Jeptha
On 2016-04-29 15:02, Steffen Kaiser wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Fri, 29 Apr 2016, Carl A Jeptha wrote:
>
>> Good Day,
>> I have been following this tutorial without much
2016 May 01
2
Changing Password Schemes
First of all, you can probably go online before you convert all passwords. You can modify your query in dovecot-sql.conf.ext to something like the following:
SELECT IF(crypt_pass IS NULL OR crypt_pass='', CONCAT('{PLAIN}',plain_pass), crypt_pass) as password FROM mailuser ..
This is assuming that:
* for incoming users, you have a plain_pass column containing just the plaintext
2012 Jul 25
0
help about quota config
hi all :
mysql mailbox below :
CREATE TABLE `mailbox` (
`username` varchar(255) NOT NULL DEFAULT '',
`uid` varchar(255) NOT NULL DEFAULT '',
`password` varchar(255) NOT NULL DEFAULT '',
`clearpwd` varchar(128) NOT NULL DEFAULT '',
`name` varchar(255) NOT NULL DEFAULT '',
`mailhost` varchar(255) NOT NULL DEFAULT '',
`maildir` varchar(255) NOT NULL DEFAULT '',
`homedir` varchar(255) NOT NULL DEFAULT '',
`quota` varchar(16) NOT NULL DEFAULT ...