<div dir="ltr">Hello,<br><div>Thanks for the answer Jules, I changed auth to AD and now is better, things are working as expected.</div><div>I would not like to let people change this attribute in the UI, setting the html attribute "disabled" to this field would work?</div><div>Regards,</div><div>Bogdan</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">În vin., 21 feb. 2020 la 11:27, Jules <<a href="mailto:Jules@zend.to">Jules@zend.to</a>> a scris:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
Ionescu,<br>
<br>
If you are using AD, you should be using the AD authenticator and
not the LDAP authenticator. They are not quite the same thing.<br>
<br>
As for the "organization" versus "company" attributes, if the
organization attribute is empty, the company attribute is copied
into it. That means the rest of ZendTo can continue to call it
'organization' without worrying about Microsoft's naming
conventions.<br>
<br>
If the LDAP attributes for a user include the "company" attribute,
that will be used as the "organization" in ZendTo. If there is no
"company" attribute, then the preferences.php setting
"authLDAPOrganization1" (for the first forest searched) is used
instead.<br>
<br>
Hopefully that explains things a bit better.<br>
<br>
Cheers,<br>
Jules.<br>
<br>
<br>
<div>On 11/02/2020 3:41 pm, Ionescu Gigel
via ZendTo wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Hello,
<div>I want to fill in the organization field automatically from
AD.<br>
<div>I would like to know how the authLDAPOrganization option
really works and if my understanding is right.</div>
<div>I read some old posts from the time this option was
introduced, but I still don't get it. As far as I see what I
put in that option that will be the default text for
internal authenticated users.</div>
</div>
<div><br>
</div>
<div>From the lib/NSSLDAPAuthenticator.php code in
$attributeNames array I see you are trying to get some
"organization" attribute. Actually, this will be always empty
as AD stores the name of the company in "company" attribute,
so few lines down if (!@$response['organization']) does not
make any sense.</div>
<div><br>
</div>
<div>Can someone enlight me, please?</div>
<div>As I said, my goal would be to have the organization from
AD if
authLDAPOrganization is empty or if I set the AD attribute
where I store the name of the organization.</div>
<div><br>
</div>
<div>Regards,</div>
<div><br>
</div>
</div>
<br>
<fieldset></fieldset>
<pre>_______________________________________________
ZendTo mailing list
<a href="mailto:ZendTo@zend.to" target="_blank">ZendTo@zend.to</a>
<a href="http://jul.es/mailman/listinfo/zendto" target="_blank">http://jul.es/mailman/listinfo/zendto</a>
</pre>
</blockquote>
<br>
<pre cols="72">Jules
--
Julian Field MEng CEng CITP MBCS MIEEE MACM
<a href="http://www.Zend.To" target="_blank">www.Zend.To</a>
Twitter: @JulesFM
</pre>
</div>
</blockquote></div>