Enhancement #2087
Allow dot in user and group names
Status: | CLOSED | Start date: | 11/14/2013 | |
---|---|---|---|---|
Priority: | Normal | Due date: | 11/14/2013 | |
Assignee: | - | % Done: | 100% | |
Category: | nethserver-mail-server | |||
Target version: | v6.5-beta3 | |||
Resolution: | NEEDINFO: | No |
Description
The current username validator is quite conservative. Our pam ldap backend allows dots in usernames so we can safely admit a dot into a username string.
Related issues
Associated revisions
username validator: allow "." in user names. Refs #2087
createUserDefaultPseudonyms(): use username. Refs #2087
The default user pseudonym is now the username itself. First and Last
names are now ignored.
ValidatorTest: Fixed username validator test. Refs #2087
History
#1 Updated by Davide Principi about 8 years ago
Maybe we should review the rules that build the default email address. What to do when the username contains a dot? Do we still want to use the name.surname
mail alias or the username-with-dot?
Current rule
Username: jsmith First name: John Last name: Smith ----------------- Default mail alias (name+surname): john.smith@...
Expected result after the enhancement
Username: john.smith First name: Johannes Last name: Smith ------------------ Default mail alias (username contains dot, so use it) john.smith@...
#2 Updated by Davide Principi almost 8 years ago
The most predictable behaviour is allow dots in username and use it as-is, for the local mail address part.
First name and Last name fields can be initialized from the username, only if it contains a dot:
Username: john.smith --------------------- First name: John Last name: Smith Default mail alias: john.smith@... Username: jsmith --------------------- First name: Last name: Default mail alias: jsmith@...
#3 Updated by Filippo Carletti almost 8 years ago
- Target version changed from ~FUTURE to v6.5-beta3
#5 Updated by Davide Principi over 7 years ago
- Due date set to 11/14/2013
- Status changed from NEW to TRIAGED
- Start date set to 11/14/2013
- % Done changed from 0 to 20
- Estimated time set to 4.00
#6 Updated by Davide Principi over 7 years ago
- Status changed from TRIAGED to ON_DEV
- Assignee set to Davide Principi
- % Done changed from 20 to 30
#8 Updated by Davide Principi over 7 years ago
- Status changed from ON_DEV to MODIFIED
- Assignee deleted (
Davide Principi) - % Done changed from 30 to 60
Changes
- The default user pseudonym prefix is now the
username
. - When creating a new user, in
User > Services > Mailbox
there must be displayed the currentusername
field value username
can now contain the dot ".
" character.
Test case
- Create/modify/delete a user, taking advantage of the allow-dot feature
#9 Updated by Davide Principi over 7 years ago
- Status changed from MODIFIED to ON_QA
- % Done changed from 60 to 70
In nethserver-testing:
nethserver-nethgui-1.2.4-11.0git024c3c0c.ns6.noarch.rpm
nethserver-mail-server-1.4.6-6.0git40058484.ns6.noarch.rpm
#10 Updated by Giacomo Sanchietti over 7 years ago
- Assignee set to Giacomo Sanchietti
#11 Updated by Giacomo Sanchietti over 7 years ago
- Status changed from ON_QA to VERIFIED
- Assignee deleted (
Giacomo Sanchietti) - % Done changed from 70 to 90
Created a user username.surname
with mail service enabled, a mail from root has been successfully delivered to pseudonym name.surname
Extract from accounts db:
[root@test db]# db accounts show name.surname name.surname=user City= Company= Department= FirstName=name LastName=surname MailForwardStatus=disabled MailSpamRetentionStatus=disabled MailStatus=enabled PhoneNumber= Samba=enabled Street= Uid=5002 __state=new [root@test db]# db accounts show name.surname@ name.surname@=pseudonym Access=public Account=name.surname ControlledBy=system _prevAccount=name.surname
Extract from maillog:
Dec 10 09:51:44 test postfix/pickup[3958]: 5D4AB3EBE: uid=0 from=<root> Dec 10 09:51:44 test postfix/cleanup[4091]: 5D4AB3EBE: message-id=<20131210095144.5D4AB3EBE@test.test.loc> Dec 10 09:51:44 test postfix/qmgr[3959]: 5D4AB3EBE: from=<root@test.test.loc>, size=435, nrcpt=1 (queue active) Dec 10 09:51:44 test dovecot: lmtp(4095): Connect from local Dec 10 09:51:44 test dovecot: lmtp(4095, name.surname): 8+yfKDDkplL/DwAA6nEqjg: sieve: msgid=<20131210095144.5D4AB3EBE@test.test.loc>: stored mail into mailbox 'INBOX' Dec 10 09:51:44 test postfix/lmtp[4094]: 5D4AB3EBE: to=<name.surname@test.test.loc>, orig_to=<name.surname>, relay=test.test.loc[/var/run/dovecot/lmtp], delay=0.63, delays=0.1/0.03/0.23/0.27, dsn=2.0.0, status=sent (250 2.0.0 <name.surname@test.test.loc> 8+yfKDDkplL/DwAA6nEqjg Saved) Dec 10 09:51:44 test dovecot: lmtp(4095): Disconnect from local: Client quit (in reset) Dec 10 09:51:44 test postfix/qmgr[3959]: 5D4AB3EBE: removed
Marking a VERIFIED.
#12 Updated by Davide Principi over 7 years ago
- Status changed from VERIFIED to CLOSED
- % Done changed from 90 to 100
In nethserver-updates:
nethserver-samba-1.4.0-1.ns6.noarch.rpm
nethserver-directory-1.3.0-1.ns6.noarch.rpm
nethserver-dnsmasq-1.1.0-1.ns6.noarch.rpm
nethserver-shorewall-1.0.3-1.ns6.noarch.rpm
nethserver-mail-server-1.5.0-1.ns6.noarch.rpm
nethserver-mail-filter-1.1.4-1.ns6.noarch.rpm
nethserver-nethgui-1.3.0-1.ns6.noarch.rpm
nethserver-base-1.5.0-1.ns6.noarch.rpm
nethserver-lib-1.4.0-1.ns6.noarch.rpm
nethserver-httpd-admin-1.1.0-1.ns6.noarch.rpm
nethserver-yum-1.2.0-1.ns6.noarch.rpm
nethserver-ntopng-1.1.0-1.ns6.noarch.rpm