Hi, I would like to know if it is possible to strip the '@domain.tld' part from a certain group of users? What I would like to achieve is that one group of users can login with just username (with the aid of username_domain) AND that another group (the system users) must use the local domain but that has to be stripped otherwise pam auth will fail! When I force the 'priviledged users to use their domain all is nice and dandy ofcause. Then systemusers just give their username.
Any smart ideas? TIA Egbert Jan _______________________________________________ List info: http://lists.roundcube.net/users/ BT/9b404e9e
Op 30-8-2010 20:21, Egbert Jan van den Bussche schreef:
Hi, I would like to know if it is possible to strip the '@domain.tld' part from a certain group of users? What I would like to achieve is that one group of users can login with just username (with the aid of username_domain) AND that another group (the system users) must use the local domain but that has to be stripped otherwise pam auth will fail! When I force the 'priviledged users to use their domain all is nice and dandy ofcause. Then systemusers just give their username.
Any smart ideas? TIA Egbert Jan
Well, using the virtual usertable brought the solution. I let RC first add the default domain (most users are in def.dom.), then I use the virtusertable to remove it again for selected users not belonging in that domain. This works only for users that are NOT in the default domain! User 'testuser' is a system user. It gets the default domain added: testuser@default.dom. In the default.dom is NO user called testuser. Then the line 'testuser@default.dom testuser' in the virtual table, trims it back to 'testuser' and dovecot (pam lookup) is happy. Look in rcmail.php to see hou things work. Hurray for Open Source!
Also the 900 users in the default domain are happy; the can just use their userid (7 digit number, no clash with system users).
Egbert Jan _______________________________________________ List info: http://lists.roundcube.net/users/ BT/9b404e9e