commit bc20e1df72811bf431e2779791893005c58dc02b Author: Gabriel Carneiro Date: Thu Feb 27 10:31:46 2025 -0300 initial commit diff --git a/config.php b/config.php new file mode 100644 index 0000000..6b39481 --- /dev/null +++ b/config.php @@ -0,0 +1,31 @@ +custom->appearance['friendly_attrs'] = array( + 'facsimileTelephoneNumber' => 'Fax', + 'gid' => 'Group', + 'mail' => 'Email', + 'telephoneNumber' => 'Telephone', + 'uid' => 'User Name', + 'userPassword' => 'Password' +); + +// $config->custom->appearance['password_hash'] = 'ssha'; + +$servers = new Datastore(); +$servers->newServer('ldap_pla'); + +$servers->setValue('server','name','Alice'); +$servers->setValue('server','host','ldap://openldap'); +$servers->setValue('appearance','pla_password_hash','ssha'); +// $servers->setValue('server','port',389); + +$servers->setValue('server','base',array('dc=alice,dc=ufsj')); +$servers->setValue('login','bind_id','cn=admin,dc=alice,dc=ufsj'); + +$servers->setValue('login','auth_type','session'); + +$servers->setValue('auto_number','min',array('uidNumber'=>10000,'gidNumber'=>10000)); +// $config->custom->session['reCAPTCHA-enable'] = false; +// $config->custom->session['reCAPTCHA-key-site'] = ''; +// $config->custom->session['reCAPTCHA-key-server'] = ''; + +?> diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..1bcc6a9 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,28 @@ +services: + phpldapadmin: + image: osixia/phpldapadmin:latest + restart: 'unless-stopped' + container_name: phpldapadmin + command: --copy-service + environment: + PHPLDAPADMIN_LDAP_HOSTS: "openldap" + PHPLDAPADMIN_HTTPS: false + PHPLDAPADMIN_TRUST_PROXY_SSL: true + volumes: + - data:/var/www/phpldapadmin + - ./templates:/var/www/phpldapadmin/templates + - ./config.php:/container/service/phpldapadmin/assets/config/config.php:ro + networks: + - traefik-public + labels: + traefik.enable: true + traefik.http.routers.phpldapadmin.rule: Host(`ldap.alice.ufsj.edu.br`) + traefik.http.routers.phpldapadmin.entrypoints: websecure + traefik.http.services.phpldapadmin.loadBalancer.server.port: 80 + +volumes: + data: + +networks: + traefik-public: + external: true diff --git a/templates/creation/groupOfEntries.xml b/templates/creation/groupOfEntries.xml new file mode 100644 index 0000000..e6c609d --- /dev/null +++ b/templates/creation/groupOfEntries.xml @@ -0,0 +1,44 @@ + + + + diff --git a/templates/creation/ipHost.xml b/templates/creation/ipHost.xml new file mode 100644 index 0000000..f47779d --- /dev/null +++ b/templates/creation/ipHost.xml @@ -0,0 +1,36 @@ + + + + diff --git a/templates/creation/ou.xml b/templates/creation/ou.xml new file mode 100644 index 0000000..586a3bf --- /dev/null +++ b/templates/creation/ou.xml @@ -0,0 +1,27 @@ + + + + diff --git a/templates/creation/posixAccount.xml b/templates/creation/posixAccount.xml new file mode 100644 index 0000000..e2bfa06 --- /dev/null +++ b/templates/creation/posixAccount.xml @@ -0,0 +1,116 @@ + + + + diff --git a/templates/creation/simpleSecurityObject.xml b/templates/creation/simpleSecurityObject.xml new file mode 100644 index 0000000..9a337c0 --- /dev/null +++ b/templates/creation/simpleSecurityObject.xml @@ -0,0 +1,37 @@ + + + + diff --git a/templates/modification/groupOfEntries.xml b/templates/modification/groupOfEntries.xml new file mode 100644 index 0000000..f761c3a --- /dev/null +++ b/templates/modification/groupOfEntries.xml @@ -0,0 +1,43 @@ + + + + diff --git a/templates/modification/inetOrgPerson.xml b/templates/modification/inetOrgPerson.xml new file mode 100644 index 0000000..b7f17e9 --- /dev/null +++ b/templates/modification/inetOrgPerson.xml @@ -0,0 +1,85 @@ + + + + diff --git a/templates/template.dtd b/templates/template.dtd new file mode 100644 index 0000000..64ed786 --- /dev/null +++ b/templates/template.dtd @@ -0,0 +1,71 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +