<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									LDAP Custom Returned Fields - Install &amp; Setup				            </title>
            <link>https://community.zextras.com/forum/carbonio-setup/ldap-custom-returned-fields/</link>
            <description>Zextras Community Discussion Board</description>
            <language>en-US</language>
            <lastBuildDate>Fri, 06 Mar 2026 18:10:42 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>LDAP Custom Returned Fields</title>
                        <link>https://community.zextras.com/forum/carbonio-setup/ldap-custom-returned-fields/#post-7895</link>
                        <pubDate>Thu, 25 Apr 2024 19:40:54 +0000</pubDate>
                        <description><![CDATA[Hi there,
If we&#039;re using External Active Directory LDAP authentication for a certain domain, is there a way to have a different username format and email address format? For instance, our u...]]></description>
                        <content:encoded><![CDATA[<p>Hi there,</p>
<p>If we're using External Active Directory LDAP authentication for a certain domain, is there a way to have a different username format and email address format? For instance, our usernames are first_initial+lastname@domain.local, but our email addresses are firstname.lastname@domain.com. Like so:</p>
<ul>
<li>User = jappleseed@domain.local</li>
<li>Email = johnny.appleseed@domain.com<br /><br /></li>
</ul>
<p>When I'm trying to establish LDAP authentication in the external LDAP (Active Directory) screen, If specify my BindDN like this:</p>
<ul>
<li>OU=Mobile,OU=Users,DC=domain,DC=local<br /><br /></li>
</ul>
<p>... then the user logs in with their email address, and it doesn't match their username, so it fails authentication:</p>
<ul>
<li>login: johnny.appleseed@domain.com != jappleseed@domain.local</li>
</ul>
... so no authentication occurs.<br />
<p><br />If I follow what some of the other forum posts suggest and I change the DN to %u@domain.local, ie:<br /><br /></p>
<pre contenteditable="false">zextras@mail:~$carbonio prov modifyDomain domain.com zimbraAuthLdapBindDn %u@domain.local</pre>
<p> </p>
<p>Then have the user try to log in as "jappleseed", this happens:</p>
<ul>
<li>jappleseed@domain.local != johnny.appleseed@domain.com</li>
</ul>
<p> </p>
<p>I even tried getting a little fancier, and tried this as a BindDN:</p>
<ul>
<li>BindDN: OU=Mobile,OU=Users,DC=domain,DC=local</li>
<li>Filter: (mail=%n)</li>
</ul>
... but that didn't work either.<br />
<p> </p>
<p>I'm sure there's some way to make this work. Anyone able to help?</p>
<p> </p>
<p>Thanks!</p>
<p> </p>]]></content:encoded>
						                            <category domain="https://community.zextras.com/forum/carbonio-setup/">Install &amp; Setup</category>                        <dc:creator>anomaly0617</dc:creator>
                        <guid isPermaLink="true">https://community.zextras.com/forum/carbonio-setup/ldap-custom-returned-fields/#post-7895</guid>
                    </item>
							        </channel>
        </rss>
		