-
Notifications
You must be signed in to change notification settings - Fork 298
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
LDAP configuration acts like it saves, but then reverts after refresh #3028
Comments
I checked this. If LDAP is disabled explicitly, then it is possible to identify in UI with e.g:
|
The cosmetic issue might be a component but I don't think this is just cosmetic. Once I click "Save" after entering the LDAP information, it forwards me to a page that shows LDAP is enabled and all of the settings I just entered. If I click "Refresh" it sends me back to the "Configuration" page where the "Password" field is empty and is making me fill it in. I'm unsure on where the logs would be for this to determine what errors are being thrown on my LDAP settings. I'm more concerned with why LDAP isn't functioning. It doesn't seem that the ticket you linked is related. |
@vaskokj Ok, Will review the behavior that you are describing |
@bexsoft can you point me to where the logs that would be relevant for the LDAP settings to know if something is failing? |
I tried it under the below version on a standalone machine in docker and certainly the interaction of the LDAP interface in the web GUI is different than the version included with TrueNAS, but as I mentioned the LDAP system still certainly non-functional. Either I have some small nuance wrong with my LDAP settings that I'm putting into the field(s) in Minio OR there is some bug with the way Minio LDAP is operating. The following version gives the interaction of the following: Login to webGUI with ROOTUSER --> click on Identity --> LDAP --> fill in fields, get sent to table that shows , LDAP Enabled, server Address, Lookup bind Password, etc. Click on "Entities" tab and can "search" for a user, but no user is returned. I navigate away from the screen by clicking "Buckets" click on "LDAP" under Identity and it shows "LDAP Enabled: No". Click "Enable LDAP", server reboots, and then same issue again, navigate away, navigate back to LDAP section, and then again "LDAP Enabled: No". I do not feel this is just a UI glitch either as nothing else is functioning related to LDAP either. I can't query for the users, and according to my LDAP server, it doesn't seem the Minio server is ever querying the LDAP server. Where are the logs related to this inside of Minio? Any thoughts/recommendation on how to debug this?
|
Hi @vaskokj! We were able to reproduce your issue in the UI of the latest version of MinIO, we are debugging and will send a fix for this soon. Can you please try to add this configuration using the Please remember that in case this issue is urgent, you can subscribe to Subnet so that our 24/7 support team may help you faster. |
I think I could debug this if I could find the logs but can't seem to find where Minio keeps LDAP logging.
No matter, when I configure the settings, and hit Save. the configuration saves, shows the settings, but when I click refresh it shows "LDAP Enabled No".
Click on Identity --> LDAP
I configure Minio LDAP to my LDAP server:
Server Insecure: Enabled
Server Address: freeipa.example.com:389
Lookup Bind DN: uid=miniobind,cn=users,cn=accounts,dc=example,dc=com
Lookup Bind Password:
User DN Search Base: cn=users,cn=accounts,dc=example,dc=com
User DN Search Filter: (uid=%s)
click "Save" I get forwarded to a page that shows the configuration with all the same settings, and the banner up top "The server is restarting."
"LDAP Enabled"
Yes
Server Address
freeipa.example.com:389
Lookup Bind Password:
etc...
I hit refresh button and then it shows
"LDAP Eanbled"
No
Expected Behavior
When I click Save I would expect that the settings would be saved and the LDAP authenticaiton would work but something seems to be silently erroring.
Current Behavior
Possible Solution
Steps to Reproduce (for bugs)
Enable Minio in TrueNAS
Login
Configure LDAP per instructions above.
Context
Regression
Your Environment
minio --version
):minio version RELEASE.2023-07-21T21-12-44Z (commit-id=d004c4538643eb05ea69b919557d5cf7cc332fae)
Runtime: go1.19.11 linux/amd64
License: GNU AGPLv3 https://www.gnu.org/licenses/agpl-3.0.html
Copyright: 2015-2023 MinIO, Inc.
uname -a
): Linux minio-84488457df-6x2sp 5.15.107+truenas Full restructure in accordance with minio#1 SMP Tue Jul 25 00:05:02 UTC 2023 x86_64 x86_64 x86_64 GNU/LinuxThe text was updated successfully, but these errors were encountered: