Compare commits

...

2 Commits

Author SHA1 Message Date
00a8350f1d Fix rendering of error message, minor changes to login as a result of ba9124c. Record in README we can now do deletes
All checks were successful
Create Docker Image / Test Application (x86_64) (push) Successful in 27s
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 1m30s
Create Docker Image / Build Docker Image (arm64) (push) Successful in 4m32s
Create Docker Image / Final Docker Image Manifest (push) Successful in 10s
2025-03-07 09:10:35 +11:00
732f777c75 Rename our configuration keys to ldap/ldaps/startls, they are not openldap specific 2025-03-07 08:33:08 +11:00
5 changed files with 16 additions and 11 deletions

View File

@ -32,7 +32,7 @@ Take a look at the [Docker Container](https://github.com/leenooks/phpLDAPadmin/w
The update to v2 is progressing well - here is a list of work to do and done: The update to v2 is progressing well - here is a list of work to do and done:
- [X] Creating new LDAP entries - [X] Creating new LDAP entries
- [ ] Delete existing LDAP entries - [X] Delete existing LDAP entries
- [X] Updating existing LDAP Entries - [X] Updating existing LDAP Entries
- [X] Password attributes - [X] Password attributes
- [X] Support different password hash options - [X] Support different password hash options

View File

@ -25,6 +25,9 @@ class SwapinAuthUser
{ {
$key = config('ldap.default'); $key = config('ldap.default');
if (! array_key_exists($key,config('ldap.connections')))
abort(599,sprintf('LDAP default server [%s] configuration doesnt exist?',$key));
/* /*
// Rebuild our connection with the authenticated user. // Rebuild our connection with the authenticated user.
if (Session::has('username_encrypt') && Session::has('password_encrypt')) { if (Session::has('username_encrypt') && Session::has('password_encrypt')) {

View File

@ -15,7 +15,7 @@ return [
| |
*/ */
'default' => env('LDAP_CONNECTION', 'openldap'), 'default' => env('LDAP_CONNECTION', 'ldap'),
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
@ -30,7 +30,7 @@ return [
'connections' => [ 'connections' => [
'openldap' => [ 'ldap' => [
'hosts' => [env('LDAP_HOST', '127.0.0.1')], 'hosts' => [env('LDAP_HOST', '127.0.0.1')],
'username' => env('LDAP_USERNAME', 'cn=user,dc=local,dc=com'), 'username' => env('LDAP_USERNAME', 'cn=user,dc=local,dc=com'),
'password' => env('LDAP_PASSWORD', 'secret'), 'password' => env('LDAP_PASSWORD', 'secret'),
@ -42,7 +42,7 @@ return [
'name' => env('LDAP_NAME','LDAP Server'), 'name' => env('LDAP_NAME','LDAP Server'),
], ],
'openldaps' => [ 'ldaps' => [
'hosts' => [env('LDAP_HOST', '127.0.0.1')], 'hosts' => [env('LDAP_HOST', '127.0.0.1')],
'username' => env('LDAP_USERNAME', 'cn=user,dc=local,dc=com'), 'username' => env('LDAP_USERNAME', 'cn=user,dc=local,dc=com'),
'password' => env('LDAP_PASSWORD', 'secret'), 'password' => env('LDAP_PASSWORD', 'secret'),
@ -54,7 +54,7 @@ return [
'name' => env('LDAP_NAME','LDAPS Server'), 'name' => env('LDAP_NAME','LDAPS Server'),
], ],
'openldaptls' => [ 'starttls' => [
'hosts' => [env('LDAP_HOST', '127.0.0.1')], 'hosts' => [env('LDAP_HOST', '127.0.0.1')],
'username' => env('LDAP_USERNAME', 'cn=user,dc=local,dc=com'), 'username' => env('LDAP_USERNAME', 'cn=user,dc=local,dc=com'),
'password' => env('LDAP_PASSWORD', 'secret'), 'password' => env('LDAP_PASSWORD', 'secret'),
@ -66,6 +66,7 @@ return [
'name' => env('LDAP_NAME','LDAP-TLS Server'), 'name' => env('LDAP_NAME','LDAP-TLS Server'),
], ],
/*
'opendj' => [ 'opendj' => [
'hosts' => ['opendj'], 'hosts' => ['opendj'],
'username' => 'cn=Directory Manager', 'username' => 'cn=Directory Manager',
@ -77,6 +78,7 @@ return [
'use_tls' => env('LDAP_TLS', false), 'use_tls' => env('LDAP_TLS', false),
'name' => 'OpenDJ Server', 'name' => 'OpenDJ Server',
], ],
*/
], ],

View File

@ -10,7 +10,7 @@
<div class="app-container"> <div class="app-container">
<div class="h-100 bg-animation"> <div class="h-100 bg-animation">
<div class="d-flex h-100 justify-content-center align-items-center"> <div class="d-flex h-100 justify-content-center align-items-center">
<div class="mx-auto app-login-box col-md-8"> <div class="mx-auto col-12 col-sm-8">
<x-file-note file="login-note.html"/> <x-file-note file="login-note.html"/>
<div class="modal-dialog modal-lg"> <div class="modal-dialog modal-lg">

View File

@ -11,16 +11,16 @@
<div class="app-container"> <div class="app-container">
<div class="h-100 bg-animation"> <div class="h-100 bg-animation">
<div class="d-flex h-100 justify-content-center align-items-center"> <div class="d-flex h-100 justify-content-center align-items-center">
<div class="mx-auto app-login-box col-md-8"> <div class="mx-auto col-12 col-sm-8">
<div class="modal-dialog w-100 mx-auto"> <div class="modal-dialog modal-lg">
<div class="modal-content"> <div class="modal-content">
<div class="modal-header"> <div class="modal-header p-3">
<img class="w-25" src="{{ url('images/logo-h-lg.png') }}"> <img class="w-25" src="{{ url('images/logo-h-lg.png') }}">
<span class="card-header-title text-danger ms-auto fs-4">@yield('title')</span> <span class="card-header-title text-danger ms-auto fs-4">@yield('title')</span>
</div> </div>
<div class="modal-body"> <div class="modal-body p-3">
<div class="text-center"> <div class="text-center">
<span class="badge text-danger fsize-2 mb-3">@yield('error')</span> <span class="badge text-danger fsize-2 mb-3">@yield('error')</span>
</div> </div>