Topic: ldap fields syntax
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.8
- Linux/BSD distribution name and version: Centos 7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx):Nginx
- Manage mail accounts with iRedAdmin-Pro? yes
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
I am in the process of importing users from my old mail server using a modified create_mail_user_OpenLDAP.py and I'd like to bring in notes and other info.
I tried using the telephoneNumber field, as the way you have it set up works perfectly in that I can add as many entries as I want, and I see the resulting entries in the user config of the admin panel. The problem is that it uses the Telephone Number syntax, which means I can't use any special characters.
here is an example of my resulting ldif file:
dn: mail=abeuser@domain.net,ou=Users,domainName=domain.net,o=domains,dc=domain,d c=lan
changetype: add
objectClass: inetOrgPerson
objectClass: mailUser
objectClass: shadowAccount
objectClass: amavisAccount
mail: abercrombie@cyg.net
userPassword: redacted
mailQuota: 0
cn: Scott Abercrombie
sn: abercrombie
uid: abercrombie
storageBaseDirectory: /var/vmail
mailMessageStore: vmail1/domain.net/a/b/e/abeuser/
homeDirectory: /var/vmail/vmail1/cyg.net/a/b/e/abeuser/
accountStatus: active
enabledService: internal
enabledService: doveadm
enabledService: lib-storage
enabledService: indexer-worker
enabledService: dsync
enabledService: mail
enabledService: smtp
enabledService: smtpsecured
enabledService: pop3
enabledService: pop3secured
enabledService: pop3tls
enabledService: imap
enabledService: imapsecured
enabledService: imaptls
enabledService: deliver
enabledService: lda
enabledService: forward
enabledService: senderbcc
enabledService: recipientbcc
enabledService: managesieve
enabledService: managesievesecured
enabledService: sieve
enabledService: sievesecured
enabledService: lmtp
enabledService: sogo
enabledService: shadowaddress
shadowLastChange: 17745
amavisLocal: TRUE
title: Title Text
telephoneNumber: 519-555-5555
telephoneNumber: RR #7
telephoneNumber: Some City ON
telephoneNumber: N4N 4N4
employeeNumber: 10422023
I used the telephoneNumber field because you show as many entries in the user profile interface as there are entries. As you can see, some of the notes have special characters such as "#".
The "title" field will work with special characters because the type is "Directory String" rather than "Telephone Number", but only the first entry shows in the user profile.
Is there any way I can alter the system to show the title field the same way as the telephoneNumber field with multiple entries, or even better, have a new field for "Notes" that works the same way as the telephone field?
I don't want to alter the default schema to change the syntax requirements to allow special characters in the telephone field, as that would likley break upgrades.
Thanks.
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.