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

Error: Without memberof Overlay #148

Open
yolopunk opened this issue Feb 21, 2024 · 3 comments
Open

Error: Without memberof Overlay #148

yolopunk opened this issue Feb 21, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@yolopunk
Copy link

What steps will reproduce the problem?

I'm using the default configuration,as follows

  • docker-compose.yml
version: '3.9'
services:
  openldap:
    image: bitnami/openldap:latest
    container_name: openldap
    ports:
      - '1389:1389'
      - '1636:1636'
    environment:
      - BITNAMI_DEBUG=true
      - LDAP_CONFIG_ADMIN_ENABLED=yes
      - LDAP_ADMIN_USERNAME=admin
      - LDAP_ADMIN_PASSWORD=secret
      - LDAP_EXTRA_SCHEMAS=cosine,inetorgperson,nis,bitnami-openldap-memberof
    volumes:
      - 'openldap_data:/bitnami/openldap'
      - './ldap-example-data.ldif:/ldifs/example.ldif'
      - './ldap-memberof.ldif:/opt/bitnami/openldap/etc/schema/bitnami-openldap-memberof.ldif'
  ldap-commander:
    image: balemy/ldap-commander:latest
    container_name: ldap-commander
    ports:
      - "8080:8080"
    depends_on:
      - openldap
    volumes:
      - './config.php:/app/config/ldap.php'
volumes:
  openldap_data:
    driver: local
  • config.php
<?php

return [
    'app' => [
        'loginMessage' => '<b>Demo</b> - Leave username empty, password is "secret".  Demo will be reset every hour.<br>'
    ],
    'ldap-sessions' => [
        [
            'LDAP' => [
                'dsn' => 'ldap://openldap:1389',
                'baseDn' => 'dc=example,dc=org',
                'adminDn' => 'cn=admin,dc=example,dc=org',
![Screen Shot 2024-02-21 at 20 10 47](https://github.com/balemy/ldap-commander/assets/7477825/7d9749c5-eab4-49e6-a400-ff0dfb870fa9)

                'adminPassword' => 'secret',
                'configDn' => 'cn=admin,cn=config',
                'configPassword' => 'configpassword'
            ],
            'UserManager' => [
                'enabled' => true,
            ],
        ],
    ]
];

Return error message after login Could not resolve if of name: olcmemberofgroupoc

Screen Shot 2024-02-21 at 20 10 47

Additional info

Q A
PHP version 8.2.14
LDAP Commander 0.9.3
Docker 25.0.3
@luke-
Copy link
Contributor

luke- commented Feb 22, 2024

Make sure you downloaded the memberof overlay:

wget -O ldap-memberof.ldif https://raw.githubusercontent.com/balemy/ldap-commander/main/resources/ldap/bitnami-openldap-memberof.ldif

docker compose down -v

docker compose up

@luke- luke- changed the title The docker deployment encountered an error Error: Without memberof Overlay Feb 22, 2024
@luke- luke- added the bug Something isn't working label Feb 22, 2024
@yolopunk
Copy link
Author

Yup! It's working. Thanks

@luke- luke- reopened this Feb 23, 2024
@luke-
Copy link
Contributor

luke- commented Feb 23, 2024

I'll keep this open, to support LDAP installations without the Overlay

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants