LINCnil / pia-back

Programme développé avec le framework RubyOnRails mettant à disposition une API RESTful à destination des outils PIA et PIA-APP. | Program developped with RubyOnRails providing a RESTful API for the PIA and PIA-APP applications.
GNU General Public License v3.0
156 stars 65 forks source link

LDAP configuration #234

Closed SarahSorU closed 7 months ago

SarahSorU commented 9 months ago

Hi, I'm trying to configure the LDAP authentification, but I can't use it. I apply your instructions in the LDAP part. After that I would like to know how we use this LDAP authentification option.

As we don't have any explanation about the way we use it I tried this :

  1. Trying to use my LDAP account directly in the authenfication form like this : image But I have an error message : authentication.errors.sign_in.400

  2. At this moment, I have used my local account to access at the application. I have searched for a LDAP option in the parameters menu. But you don't put any type of option like LDAP option, in the users parameters too.

Here my LDAP configuration : image

image

I would like to know how we can add all the LDAP users in the application?

Kind Regards, Sarah.

SarahSorU commented 9 months ago

Hi,

I finally solved my issues, I can use the LDAP authentification but when we are logged all the information isn't filled in the form as the name and surname, how can I take these data in the LDAP? Is this features in developement?

Kind Regards, Sarah.

kevin-atnos commented 9 months ago

Hello Sarah,

What was the issue with your LDAP configuration?

What do you mean by "the information isn't filled"? Were you previously using the PIA tool in local / front mode, without a backend? If so, indeed now that you are in LDAP mode (with a backend), your PIAs should be stored in a database instead of the local browser (indexedDB).

PIA created in local/front mode aren't available in PIA with a backend/server (+ eventually LDAP), as they are stored in two different manners (indexedDB or real database).

On the homepage, you can export your PIAs and then import them in your new setup with LDAP so that they are re-stored but now in your database.

If you need any more help, please contact us at contact@atnos.com so that we can have a meeting and discuss this more easily.

Thank you very much, have a good day!

Regards,