Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manage two or more Ldap Servers with one osixia/phpldapadmin #36

Closed
marlinhares opened this issue Oct 5, 2017 · 4 comments
Closed

Manage two or more Ldap Servers with one osixia/phpldapadmin #36

marlinhares opened this issue Oct 5, 2017 · 4 comments

Comments

@marlinhares
Copy link

Hi,

First, thanks for your ldap containers! We are using them in production with success since 03/2016 first in kubernetes and now in Rancher/Cattle.

We have a question, sorry if it is newbie.
In phpldapadmin when we set PHPLDAPADMIN_LDAP_HOSTS=ldap-master, we manage our master.
Are there any way I pass another ldap server, so we can manage two or more servers with the same phpldap admin?
Something like: PHPLDAPADMIN_LDAP_HOSTS=ldap-master/ldap-slave...

@d4lk0s
Copy link

d4lk0s commented Oct 6, 2017

Hi Marlin. You will need to define the PHPLDAPADMIN_LDAP_HOSTS like this in your RC/Deployment/etc:

        - name: PHPLDAPADMIN_LDAP_HOSTS
          value: "#PYTHON2BASH:[{'ldap1.example.com': [{'server': [{'tls': True}]},{'login': [{'bind_id': 'cn=admin,dc=example,dc=com'}]}]}, {'ldap2.example.com': [{'server': [{'tls': True}]},{'login': [{'bind_id': 'cn=admin,dc=example,dc=com'}]}]}, {'ldap3.example.com': [{'server': [{'tls': True}]},{'login': [{'bind_id': 'cn=admin,dc=example,dc=com'}]}]}]"

@marlinhares
Copy link
Author

Thank you @d4lk0s

@pcampbell-avodaq
Copy link

Hi @BertrandGouny, is this still the only acceptable approach, or would it be possible to define multiple servers in a config.php which then gets mounted as described here? Many thanks in advance.

@pcampbell-avodaq
Copy link

Hi @BertrandGouny, is this still the only acceptable approach, or would it be possible to define multiple servers in a config.php which then gets mounted as described here? Many thanks in advance.

Using the path given here solved my problem (in that the config.php got loaded, yay).

Looks like the readme needs to be updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants