[ZendTo] upgrade script and LDAP authentication values

Jules Jules at Zend.To
Thu Jul 23 12:51:18 BST 2020


John,

Please don't comment out settings you don't want to specify (such as the 
service account credentials, etc). Just leave them set to an empty 
string. Then 'upgrade' will be happy.

Cheers,
Jules.

On 22/07/2020 19:01, John Thurston via ZendTo wrote:
>
> On 7/22/2020 9:08 AM, Jules wrote:
>> But if you are using the LDAP authenticator, surely you have to 
>> define those values for the authenticator to work at all.
>> I don't quite see how you are using the LDAP authenticator 
>> successfully with no settings for it whatsoever.
>
> Because our internal directory has all of our users in one OU (which 
> is defined as the BaseDN, so no directory searching is required). No 
> search, hence no authenticated service account, hence those values are 
> commented out.
>
>
> The relevant output (slightly sanitized) of uncommented lines from 
> preferences.cfg
>
>>   'authenticator'         => 'LDAP',
>>
>>   'authIMAPServer' => 'mail.soton.ac.uk',
>>   'authIMAPDomain' => 'soton.ac.uk',
>>   'authIMAPOrganization' => 'University of Southampton',
>>   'authIMAPAdmins' => array(),
>>
>>   'authLDAPBaseDN'        => 'OU=ourusers,o=state.ak.us',
>>   'authLDAPServers'       => 
>> array('ldap1.state.ak.us','ldap2.state.ak.us'),
>>   'authLDAPAccountSuffix' => '@alaska.gov',
>>   'authLDAPUseSSL'        => true,
>>   'authLDAPFullName'      => 'givenName sn',
>>
>>   'authLDAPServers1'          => 
>> array('ad1.ecs.soton.ac.uk','ad2.ecs.soton.ac.uk'),
>>   'authLDAPBaseDN1'           => 'OU=users,DC=ecs,DC=soton,DC=ac,DC=uk',
>>   'authLDAPAccountSuffix1'    => '@ecs.soton.ac.uk',
>>   'authLDAPUseSSL1'           => false,
>>   'authLDAPUseTLS1'           => false,
>>   'authLDAPBindUser1'         => 'SecretUsername1',
>>   'authLDAPBindPass1'         => 'SecretPassword1',
>>   'authLDAPOrganization1'     => 'ECS, University of Southampton',
>>   'authLDAPUsernameAttribute1' => 'sAMAccountName',
>>   'authLDAPServers2'          => 
>> array('ad1.soton.ac.uk','ad2.soton.ac.uk'),
>>   'authLDAPBaseDN2'           => 'DC=soton,DC=ac,DC=uk',
>>   'authLDAPAccountSuffix2'    => '@soton.ac.uk',
>>   'authLDAPUseSSL2'           => false,
>>   'authLDAPUseTLS2'           => false,
>>   'authLDAPBindUser2'         => 'SecretUsername2',
>>   'authLDAPBindPass2'         => 'SecretPassword2',
>>   'authLDAPOrganization2'     => 'University of Southampton',
>>   'authLDAPUsernameAttribute2' => '',
>>   'authLDAPServers3'          => 
>> array('ad1.example.com','ad2.example.com'),
>>   'authLDAPBaseDN3'           => 'DC=example,DC=com',
>>   'authLDAPAccountSuffix3'    => '@example.com',
>>   'authLDAPUseSSL3'           => false,
>>   'authLDAPUseTLS3'           => false,
>>   'authLDAPBindUser3'         => 'SecretUsername3',
>>   'authLDAPBindPass3'         => 'SecretPassword3',
>>   'authLDAPOrganization3'     => 'Example Inc.',
>>   'authLDAPUsernameAttribute3' => '',
>>
>>   'authMultiAuthenticators' => array('AD', 'Local'),
>
>
>
> -- 
> Do things because you should, not just because you can.
>
> John Thurston    907-465-8591
> John.Thurston at alaska.gov
> Department of Administration
> State of Alaska
>
> _______________________________________________
> ZendTo mailing list
> ZendTo at zend.to
> http://jul.es/mailman/listinfo/zendto

Jules

-- 
Julian Field MEng CEng CITP MBCS MIEEE MACM

'When a man points a finger at someone else, he should remember
  that four of his fingers are pointing at himself.' - Louis Nizer

www.Zend.To
Twitter: @JulesFM

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jul.es/pipermail/zendto/attachments/20200723/233306d8/attachment.html>


More information about the ZendTo mailing list