GithubHelp home page GithubHelp logo

balemy / ldap-commander Goto Github PK

View Code? Open in Web Editor NEW
12.0 2.0 0.0 1.85 MB

LDAP Admin User Group Managment GUI

License: GNU Affero General Public License v3.0

PHP 97.57% CSS 0.03% JavaScript 1.65% Dockerfile 0.44% Batchfile 0.04% Shell 0.27%
admin admin-panel ldap managment user user-management users grouping

ldap-commander's Introduction

build static analysis Powered by Yii 3 Framework

LDAP Commander

Username: <leave empty> · Password: secret

About

LDAP Commander is a web interface for managing LDAP servers. Currently only OpenLDAP is supported.

Features

  • Browse LDAP Structure
  • Create, Edit and Delete LDAP Entities
  • Automatic Schema Detection
  • Schema Viewer
  • Server Info
  • Entity Editor
    • Multi Value Support
    • Binary Attributes
    • SHA Password Hashing

Quickstart with Docker

Without LDAP Server:

wget -O config.php https://raw.githubusercontent.com/balemy/ldap-commander/main/config/ldap.example.php
docker run -it --net='host' -p 8080:8080 -v ./config.php:/app/config/ldap.php balemy/ldap-commander

Docker Compose (with bundled LDAP Server and Example data):

mkdir /opt/ldap-commander
cd /opt/ldap-commander

wget -O config.php https://raw.githubusercontent.com/balemy/ldap-commander/main/docker/config.php
wget -O docker-compose.yml https://raw.githubusercontent.com/balemy/ldap-commander/main/docker/docker-compose.yml
wget -O ldap-memberof.ldif https://raw.githubusercontent.com/balemy/ldap-commander/main/resources/ldap/bitnami-openldap-memberof.ldif
wget -O ldap-example-data.ldif https://raw.githubusercontent.com/balemy/ldap-commander/main/resources/ldap/example.ldif

mkdir openldap_data
chmod 777 openldap_data

docker-compose up

Then open the following URL in your browser: http://localhost:8080

Quickstart with PHP & Composer

Requirements

  • PHP 8.1 with LDAP extension
  • Composer

Installation

git clone https://github.com/balemy/ldap-commander.git /opt/ldap-commander
cd /opt/ldap-commander
composer install
vi .env

Startup

composer serve

Then open the following URL in your browser: http://localhost:8080

License

Please see LICENSE for more information.

ldap-commander's People

Contributors

dependabot[bot] avatar luke- avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ldap-commander's Issues

How to disable the Yii debugger?

I am unable to disable it

even with

YII_DEBUG=false

in my .env

Since the debugger is on even while not logged it, it is a pretty security issue for us

Error: Without memberof Overlay

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

sort users by name

Hi, balemy
thank you so much for your Ldap commander: it is exactly what we were searching for.

thanks!

we'll try to help with some feedback

a small one: can you sort users by name and not by ID? thanks

Installation to subdirectory

What steps will reproduce the problem?

I' trying to run this in a subdirectory /ldap-commander/ on an Apache2 webserver. I assumed there is a setting baseUrl and found it in config/params.php, but this apparently is mainly for loading assets. Not being an expert in Yii - especially not Yii3 - I found some older posts about setting this in config/main.php but as I see it the whole configuration ecosystem changed dramatically since then.
I tried to fix this via enabled rewrite module, .htaccess and RewriteBase /ldap-commander, but with no luck.

What is the expected result?

The login form for the app :)

What do you get instead?

I get a correctly styled 404 page with loaded assets saying "The page /ldap-commander/ not found." and navigation still pointing to /users, /groups and so on.

Additional info

Q A
Version 0.5.0
PHP version 8.1
Operating system Ubuntu 22.04

Should I stop looking for a baseurl setting and instead try to fix it via server config? Any hint would be highly appreciated. Thanks!

Composer installation fails

What steps will reproduce the problem?

A simple composer install after a fresh git clone. No Docker installation.

What is the expected result?

The composer installation goes through smoothly.

What do you get instead?

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - yiisoft/yii-widgets 1.0.0 requires yiisoft/cache ^2.0 -> found yiisoft/cache[2.0.0] but it conflicts with your root composer.json require (^1.0).
    - yiisoft/yii-dataview 3.0.x-dev is an alias of yiisoft/yii-dataview dev-master and thus requires it to be installed too.
    - yiisoft/yii-dataview dev-master requires yiisoft/yii-widgets ^1.0 -> satisfiable by yiisoft/yii-widgets[1.0.0].
    - Root composer.json requires yiisoft/yii-dataview ^3.0@dev -> satisfiable by yiisoft/yii-dataview[3.0.x-dev (alias of dev-master)].

Additional info

Q A
Version 0.5.0
PHP version 8.1
Operating system Ubuntu Linux 22.04

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.