<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p><span id="result_box" class="" lang="en"><span class="">Thank you so much Jules, that's exactly what I needed !!</span></span><br>
</p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>De:</b> Jules &lt;Jules@Zend.To&gt;<br>
<b>Enviado:</b> terça-feira, 12 de setembro de 2017 08:37:36<br>
<b>Para:</b> ZendTo Users; Windows Angra<br>
<b>Assunto:</b> Re: [ZendTo] authLDAPOrganization1</font>
<div>&nbsp;</div>
</div>
<div>That would involve a tweak to /opt/zendto/lib/NSSADAuthenticator.php.<br>
<br>
However, it's a remarkably simple one. Look in that file for the string&quot;organization&quot;. There are 2 places it appears.<br>
In *both* places, if you replace that line with something like<br>
<br>
if (array_key_exists('company', $response) &amp;&amp; $response['company'] !== '') {<br>
&nbsp;&nbsp;&nbsp; $response['organization'] = $response['company'];<br>
} else {<br>
&nbsp;&nbsp;&nbsp; $response['organization'] = $this-&gt;_ldapOrg;<br>
}<br>
<br>
then it will use the &quot;company&quot; attribute if it's set for that user, and the &quot;authLDAPOrganization1&quot; value if it is not set for that user.<br>
<br>
Does that do what you want?<br>
<br>
Cheers,<br>
Jules.<br>
<br>
<br>
<div class="moz-cite-prefix">On 25/08/2017 17:27, Windows Angra wrote:<br>
</div>
<blockquote type="cite" cite="mid:RO1P15201MB1979FF444DF22D671A35F511CB9B0@RO1P15201MB1979.LAMP152.PROD.OUTLOOK.COM">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<div>Hello guys!<br>
<br>
I just downloaded and installed ZendTo 4.28 on CentOS 6.9 and set up authentication via Active Directory. The system is working properly.<br>
<br>
My question is this: I currently insert the &quot;company name&quot; into the variable &quot;authLDAPOrganization1&quot; in the preferences.php file. However, I would like ZendTo to get this value from the Active Directory &quot;company&quot; attribute, just as it gets the &quot;displayname&quot;
 and &quot;mail&quot; attributes.<br>
<br>
<br>
Any idea how to get this value?</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset> <br>
<pre wrap="">_______________________________________________
ZendTo mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ZendTo@zend.to">ZendTo@zend.to</a>
<a class="moz-txt-link-freetext" href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto">http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto</a></pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">Jules

-- 
Julian Field MEng CEng CITP MBCS MIEEE MACM

'When I read Shakespeare I am struck with wonder
 That such trivial people should muse and thunder
 In such lovely language.' - D.H. Lawrence

<a class="moz-txt-link-abbreviated" href="http://www.Zend.To">www.Zend.To</a>
Twitter: @JulesFM
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
</pre>
</div>
</body>
</html>