简体   繁体   中英

Enable LDAP on AWS Elastic Beanstalk

So I'm trying to use LDAP authentication to connect to our institution from an AWS Elastic Beanstalk environment running PHP 7.1.

I haven't been able to find much about this topic on the internet, other than one post on their forum that had no answers. However, from looking around, it seems like the best course of action would be to use a .ebextensions/.config file to enable the PHP LDAP extension in my environment.

Here is my current file configuration:

/.ebextensions/phpini.config

files:
  "/etc/php.d/project.ini" :
    mode: "000644"
    owner: root
    group: root
    content: |
      extension = php_ldap.dll

Unfortunately, this doesn't seem to be affecting anything. So is enabling LDAP on an AWS EB environment even an option here? If so, what would I have to modify in order to enable this?

Thanks in advance for any help and feel free to let me know if you need any other information!

I ended up taking Aaron W. 's idea to install the extension as well as enabling it in the .config file and it ended up resolving my issue.

Here is the final script that I used in my Elastic Beanstalk environment to enable PHP LDAP.

commands:
  install_phpldap:
    command:
      sudo yum -y install php71-ldap

files:
  "/etc/php.d/project.ini" :
    mode: "000755"
    owner: root
    group: root
    content: |
      extension=php_ldap.dll

If anyone has any suggestions to improve upon this script, feel free to comment or provide a different answer and I will modify this answer (or change the accepted answer if it fits).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM