Displaying 8 results from an estimated 8 matches for "cryptpwd".
2016 May 03
3
Changing Password Schemes
1. Auth debug turned on, - nothing
2. cryptpwd is the name of my "password" column, have to specify that if
you want to run password_query as it relies on a field "password" to work.
3. I have access to the "clear passwords" but none of my google searches
worked for converting them to SHA512_CRYPT
On Tue, May 3, 2...
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 a...
2016 May 03
5
Changing Password Schemes
...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-CRYPT version of the clearpwd column.
> The only reason why you would bother with a perl script is to get a better quality salt from /dev/urandom
> If you don't care so much about the quality of the salt, you can just run this single query.
> Make a backup of your...
2016 May 03
2
Changing Password Schemes
...ash: SHA1
>
> On Tue, 3 May 2016, Carl Jeptha wrote:
>
>> 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 \...
2016 May 02
2
Changing Password Schemes
...poses I put the query in PHPMyAdmin and it complains this
> (notice 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...
2016 May 03
2
Changing Password Schemes
...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-CRYPT version of the clearpwd column.
>>> The only reason why you would bother with a perl script is to get a better quality salt from /dev/urandom
>>> If you don't care so much about the quality of the salt, you can just run this single query.
>>>...
2016 May 01
3
Changing Password Schemes
...main.com,xxx.xxx.xxx.xxx):
> Password query returned multiple matches]
>
> 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...
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