<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body text="#000000" bgcolor="#FFFFFF">
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"organization". 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) &&
$response['company'] !== '') {<br>
$response['organization'] = $response['company'];<br>
} else {<br>
$response['organization'] = $this->_ldapOrg;<br>
}<br>
<br>
then it will use the "company" attribute if it's set for that user,
and the "authLDAPOrganization1" 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">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<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 "company name"
into the variable "authLDAPOrganization1" in the
preferences.php file. However, I would like ZendTo to get this
value from the Active Directory "company" attribute, just as
it gets the "displayname" and "mail" 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>
</body>
</html>