Dovecot X.509 authentication problems (cn mapping)

This is a discussion on Dovecot X.509 authentication problems (cn mapping) within the IMAP forums in Other Technologies category; Hi all, I'm trying to set up Dovecot to allow authentication with only X.509 certificates and hit a snag. The CN is set to the user's full name, f.e. "John Doe", instead of the username on the system "jdoe". I looked at the userdb/passwd configurations and didn't find a method to perform a rewrite or a user mapping that would allow me to override it short of using an SQL userdb and overriding the user field. Is there a way I can "map" the usernames to system names? e.g. given: c=US,st=California,o=Yoyodyne,cn=John Doe I want a mapping such as: /etc/dovecot/cn-mapping.txt: jdoe: ...

Go Back   Application Development Forum > Other Technologies > IMAP

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 03-15-2008, 11:49 PM
carbonated beverage
Guest
 
Default Dovecot X.509 authentication problems (cn mapping)

Hi all,

I'm trying to set up Dovecot to allow authentication with only X.509
certificates and hit a snag. The CN is set to the user's full name,
f.e. "John Doe", instead of the username on the system "jdoe".

I looked at the userdb/passwd configurations and didn't find a method to
perform a rewrite or a user mapping that would allow me to override it
short of using an SQL userdb and overriding the user field.

Is there a way I can "map" the usernames to system names? e.g. given:
c=US,st=California,o=Yoyodyne,cn=John Doe
I want a mapping such as:
/etc/dovecot/cn-mapping.txt:
jdoe: John Doe
jsmith: Jane Smith

etc.

Re-issuing certificates will be a problem (think SSO: single-sign-on), so
I'd rather tweak Dovecot. If there's no way to "map" usernames aside using
an SQL database, I'll set up an SQLite instance for it.

Thanks.

P.S. email address rot13'd
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 03:29 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.