Leonardo Rodrigues | 1 Aug 2010 01:06
Picon
Favicon

Re: salted passwords

Em 31/07/2010 18:51, Patrick Westenberg escreveu:
> Leonardo Rodrigues schrieb:
>>
>>     that's all because i already have a account manager system, 
>> written on PHP, which i had to kept. So i was trying to understand 
>> how that's work to make it work on my system i couldnt stop using.
>>
>>     but after some tryings i got everything running. All my passwords 
>> were already migrated from plaintext to Salted-SHA2-256.
>
> Hi Leonardo,
>
> can you tell me how you solved your problem with creating salted 
> passwords via PHP?
>

     Hi .... yes i've acchieved some PHP routines for creating the 
salted SHA256 password with random salt and also comparing a stored 
hashed password with a plaintext supplied one.

encoded passwords will be exited as:

{SSHA256.HEX}acf5ce0f51cca2077e27884a7cec385c430bb402c2f961b02bfa779c18aaf9a373772d99

encoded password strings is 85-char length with the SSHA.256 prefix and 
72 without it

     as i'm storing passwords with the SSHA256.HEX prefix, my dovecot 
conf has:

(Continue reading)

John O'Brien | 1 Aug 2010 08:37

error 89 when loading plugin

Hi,

I'm very confused - that's not too difficult for me.

I have written a small plugin change_passwd_plugin.c
I would like this custom IMAP command to be available to all users.

The code contains the following.

void change_passwd_plugin_init(void)
    {
	command_register("XCHANGEPASSWORD", cmd_xchangepasswd, 0);
	str_append(capability_string, " XCHANGEPASSWORD");
    }

void change_passwd_plugin_deinit(void)
    {
	command_unregister("XCHANGEPASSWORD");
    }

% nm
0000000000000920 T change_passwd_plugin_deinit
00000000000008ec T change_passwd_plugin_init
0000000000201248 D change_passwd_plugin_version

dovecot.conf
mail_plugins = change_passwd_plugin
mail_plugin_dir = /usr/lib/dovecot/imap
imap_capability = XCHANGEPASSWORD

(Continue reading)

Pascal Volk | 1 Aug 2010 18:22
Favicon

Re: error 89 when loading plugin

On 08/01/2010 08:37 AM John O'Brien wrote:
> Hi,
> 
> I'm very confused - that's not too difficult for me.
> 
> I have written a small plugin change_passwd_plugin.c
> I would like this custom IMAP command to be available to all users.
> 
> The code contains the following.
> 
> void change_passwd_plugin_init(void)
>     {
> 	command_register("XCHANGEPASSWORD", cmd_xchangepasswd, 0);
> 	str_append(capability_string, " XCHANGEPASSWORD");
>     }
> 
> void change_passwd_plugin_deinit(void)
>     {
> 	command_unregister("XCHANGEPASSWORD");
>     }
> 
> % nm
> 0000000000000920 T change_passwd_plugin_deinit
> 00000000000008ec T change_passwd_plugin_init
> 0000000000201248 D change_passwd_plugin_version
> 
> dovecot.conf
> mail_plugins = change_passwd_plugin
> mail_plugin_dir = /usr/lib/dovecot/imap
> imap_capability = XCHANGEPASSWORD
(Continue reading)

Mark Sapiro | 1 Aug 2010 18:25
Favicon

Re: error 89 when loading plugin

On 11:59 AM, John O'Brien wrote:
> 
> dovecot.conf
> mail_plugins = change_passwd_plugin
> mail_plugin_dir = /usr/lib/dovecot/imap
> imap_capability = XCHANGEPASSWORD
> 
> %ls -la /usr/lib/dovecot/imap
> ls -la /usr/lib/dovecot/imap
> total 28
> drwxr-xr-x 2 root root  4096 Aug  1 16:03 .
> drwxr-xr-x 3 root root  4096 Aug  1 10:51 ..
> -rwxr-xr-x 1 root root 16969 Aug  1 16:03 change_passwd_plugin.so

Try changing

mail_plugins = change_passwd_plugin

in dovecot.conf to

mail_plugins = change_passwd

--

-- 
Mark Sapiro <mark <at> msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

Martin Ott | 2 Aug 2010 09:30
Picon
Favicon

quota not updated

Hi,

we're using quota with the maildir backend. When new mail arrives, the quota
gets updated. But when mail is expunged, quota stays the same (see imap dialog
below). We're using the latest version from hg ( 1.2.13 ). Any ideas?

###quota part from dovecot -n

plugin:
  quota: maildir:User quota
  quota_rule: *:storage=2000M
  quota_warning: storage=95%% /usr/local/bin/quota-warning.sh 95
  quota_warning2: storage=80%% /usr/local/bin/quota-warning.sh 80
  quota2: maildir:Shared quota:ns=shared/
  quota2_rule: *:storage=10000M

###imap dialog:

* PREAUTH [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE
SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT IDLE
CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH
ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS ACL RIGHTS=texk QUOTA]
Logged in as user
a01 select INBOX
* FLAGS (\Answered \Flagged \Deleted \Seen \Draft NonJunk $MDNSent $Forwarded)
* OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft NonJunk
$MDNSent $Forwarded \*)] Flags permitted.
* 15 EXISTS
* 0 RECENT
* OK [UIDVALIDITY 1264203739] UIDs valid
(Continue reading)

Denny Schierz | 2 Aug 2010 10:08

Re: LDAP + mail_location: Get "%d" from customfield

hi,

Am Freitag, den 30.07.2010, 15:24 +0100 schrieb Timo Sirainen:

> pass_attrs = .., postAddress=domain
> 
> Assuming v1.1+. This changes the username to user <at> domain everywhere.

thanks for helping :-) But, it doesn't work:

ldap.conf:

user_attrs = postalAddress=domain,homeDirectory=/imap/spool/%d/%1n/%n
user_filter = (&(objectClass=posixAccount)(uid=%n))
pass_attrs = postalAddress=domain, uid=user, userPassword=password
pass_filter = (&(objectClass=posixAccount)(uid=%n))

After login, DoveCot creates the directory /imap/spool/f/foo, instead
of /imap/spool/subdomain.domain.bla/f/foo

Log (anonymized) :

http://pastebin.com/RZfpZkyc

so I assume, that %d isn't filled ...

any suggestions?
Denny Schierz | 2 Aug 2010 11:37

Re: LDAP + mail_location: Get "%d" from customfield

hi,

Am Montag, den 02.08.2010, 10:08 +0200 schrieb Denny Schierz:

> http://pastebin.com/RZfpZkyc
> 
> so I assume, that %d isn't filled ...
> 
> any suggestions?

I've forgotten to say: our version from Dovecot is 1.2.11

cu denny
Denny Schierz | 2 Aug 2010 11:53

Re: Cant compile managesieve 0.11.11 on Solaris10

Am Donnerstag, den 29.07.2010, 23:53 +0900 schrieb Kenji Iuchi:

> Please show me configure and Comple Options.
> $ ./configure OPTIONS

./configure --prefix=/usr/local/dovecot/managesieve-0.11
--with-dovecot=/usr/local/dovecot/src/dovecot-1.2.11
--with-dovecot-sieve=/usr/local/dovecot/src/dovecot-1.2-sieve-0.1.16

> and let me resulu of command:
> $ echo $PATH

$PATH:/usr/pkg/bin:/usr/pkg/sbin:/usr/bin:/usr/sbin:/usr/ccs/bin:/usr/sfw/bin:/usr/local/bin:/usr/local/sbin:/bin:/sbin:/opt/csw/sbin:/opt/csw/bin:/usr/sfw/bin:/usr/sfw/sbin:/root/bin:/usr/public/bin:/usr/ccs/bin

> $ crle

Configuration file [version 4]: /var/ld/ld.config  
  Default Library Path
(ELF):   /lib:/usr/lib:/usr/local/lib:/opt/csw/lib:/opt/csw/lib/amd64:/opt/csw/lib/i386:/opt/csw/postgresql/lib
  Trusted Directories (ELF):    /lib/secure:/usr/lib/secure  (system
default)

Command line:
  crle -c /var/ld/ld.config
-l /lib:/usr/lib:/usr/local/lib:/opt/csw/lib:/opt/csw/lib/amd64:/opt/csw/lib/i386:/opt/csw/postgresql/lib

> > ld: fatal: Symbol referencing errors. No output written to
> So, I think OS cannot find OpenSolaris-OpenSSL Library and Header.
> Where OpenSolaris-OpenSSL was installed in ? /usr/sfw ?

(Continue reading)

John O'Brien | 2 Aug 2010 12:42

Re: error 89 when loading plugin

Pascal,

On 02/08/2010, at 2:22 AM, Pascal Volk wrote:

> On 08/01/2010 08:37 AM John O'Brien wrote:
>> Hi,
>> 
>> I'm very confused - that's not too difficult for me.
>> 
>> I have written a small plugin change_passwd_plugin.c
>> I would like this custom IMAP command to be available to all users.
>> 
>> The code contains the following.
>> 
>> void change_passwd_plugin_init(void)
>>    {
>> 	command_register("XCHANGEPASSWORD", cmd_xchangepasswd, 0);
>> 	str_append(capability_string, " XCHANGEPASSWORD");
>>    }
>> 
>> void change_passwd_plugin_deinit(void)
>>    {
>> 	command_unregister("XCHANGEPASSWORD");
>>    }
>> 
>> % nm
>> 0000000000000920 T change_passwd_plugin_deinit
>> 00000000000008ec T change_passwd_plugin_init
>> 0000000000201248 D change_passwd_plugin_version
>> 
(Continue reading)

Timo Sirainen | 2 Aug 2010 14:10
Picon
Picon
Favicon

Re: LDAP + mail_location: Get "%d" from customfield

On Mon, 2010-08-02 at 10:08 +0200, Denny Schierz wrote:
> > pass_attrs = .., postAddress=domain
> > 
> > Assuming v1.1+. This changes the username to user <at> domain everywhere.
> 
> thanks for helping :-) But, it doesn't work:
> 
> ldap.conf:
> 
> user_attrs = postalAddress=domain,homeDirectory=/imap/spool/%d/%1n/%n
> user_filter = (&(objectClass=posixAccount)(uid=%n))

OK, there is a bug/missing feature that this doesn't work with
user_attrs.

> pass_attrs = postalAddress=domain, uid=user, userPassword=password
> pass_filter = (&(objectClass=posixAccount)(uid=%n))

This would work, except I guess you're using auth binds and have also
set auth_bind_userdn? Since according to your logs, it doesn't even
attempt to do this passdb lookup from ldap.


Gmane