zimbraAutoProvAccountNameMap: mail instead samaccountname

Ask questions about your setup or get help installing ZCS server (ZD section below).
Post Reply
zimbrauser
Posts: 11
Joined: Thu Mar 19, 2020 5:31 am

zimbraAutoProvAccountNameMap: mail instead samaccountname

Post by zimbrauser »

Hello.
Set Zimbra 8.8.15. I need to take an email from the "mail" field in AD.
Tried the following options:

Code: Select all

zimbraAutoProvAccountNameMap "mail"
or
zimbraAutoProvAccountNameMap "mail=%u"
or
zimbraAutoProvAccountNameMap "mail=%n" 
Total: autoprov - 0 external LDAP entries returned as search result

Added option:

Code: Select all

+zimbraAutoProvAttrMap mail=mail
Total: autoprov - 0 external LDAP entries returned as search result

In zimbraAutoProvLdapSearchFilter add (mail=%u) instead (mail=*) (link)
Total: com.zimbra.common.service.ServiceException: invalid request: must be valid email address: user@domain.com@domain.com
Is this still not working? (bug report)
admintmt
Posts: 4
Joined: Tue Feb 25, 2020 2:17 am

Re: zimbraAutoProvAccountNameMap: mail instead samaccountname

Post by admintmt »

Let me guess, in the mail field you have full email address including domain suffix?

Unfortunately, i couldn't find any way to do what you try to do. I just used another field (in MSAD) and populate it with only local part of email address, w/o domain part.
So corresponding zimbra parameter would be like

Code: Select all

zimbraAutoProvAccountNameMap physicalDeliveryOfficeName
or any other free field you want it
zimbrauser
Posts: 11
Joined: Thu Mar 19, 2020 5:31 am

Re: zimbraAutoProvAccountNameMap: mail instead samaccountname

Post by zimbrauser »

admintmt wrote:Let me guess, in the mail field you have full email address including domain suffix?

Unfortunately, i couldn't find any way to do what you try to do. I just used another field (in MSAD) and populate it with only local part of email address, w/o domain part.
So corresponding zimbra parameter would be like
Yes, I realized that this can be done, but this is also not entirely correct.
yrigol
Posts: 1
Joined: Sat Jul 11, 2020 8:17 pm

Re: zimbraAutoProvAccountNameMap: mail instead samaccountname

Post by yrigol »

In this way

md domain.com zimbraAutoProvAccountNameMap mail

invalid request: must be valid email address: user@domain.com@domain.com

but in this other worked for me

md domain.com zimbraAutoProvAccountNameMap name
Post Reply