Re: [Dovecot] Username from rfc822Name subject alternative name

2012-04-10 Thread Timo Sirainen
On 9.4.2012, at 16.51, Бранко Мајић wrote: I'm looking into adding support for extracting the username from client certificate's rfc822Name (from the subjectAltName extension). The question I have is what would be the best approach to do this? Current implementation has a kind of clean

Re: [Dovecot] Username from rfc822Name subject alternative name

2012-04-10 Thread Бранко Мајић
Another solution could be having another property that specifies whether the information should be pulled in from subject or subjectAltName. But I think what you've proposed would be ok as well, and it'd allow for future expansion too (if anyone decides to use some other SAN). I can get working

Re: [Dovecot] Username from rfc822Name subject alternative name

2012-04-10 Thread Timo Sirainen
I can add the patch to v2.1, but probably not to earlier versions. On 11.4.2012, at 0.07, Бранко Мајић wrote: Another solution could be having another property that specifies whether the information should be pulled in from subject or subjectAltName. But I think what you've proposed would

[Dovecot] Username from rfc822Name subject alternative name

2012-04-09 Thread Бранко Мајић
Hello, I'm looking into adding support for extracting the username from client certificate's rfc822Name (from the subjectAltName extension). The question I have is what would be the best approach to do this? Current implementation has a kind of clean code since it just goes through the