ShaneIsrael / fireshare

Self host your media and share with unique links
GNU General Public License v3.0
642 stars 39 forks source link

Question about LDAP and Fireshare #223

Closed DamienDrsss closed 8 months ago

DamienDrsss commented 8 months ago

Hi,

I want to be able to connect to Fireshare with a domain user but i'm stuck. My docker compose looks like that: image

It doesn't work, can you help me pls ?

Regards,

ShaneIsrael commented 8 months ago

So I have close to 0 experience with LDAP and was not the person who implemented it within Fireshare so I apologize in advance that I'm probably not going to be much help.

However, looking at your docker compose file I'm wondering if maybe you messed up the "LDAP_USER_FILTER" section. You seem to have left {input} in place for uid and mail. I'm pretty sure you need to replace those with a uid or mail that you want to filter by, which you are not doing and is probably why the LDAP isn't working.

image

So you need to change {input} on both the uid and mail section to be the username that you use to login to the fireshare web ui according to the docs.

So in your login username was "DamienDrsss" it should probably look like this (&(|(uid=DamienDrsss)(mail=DamienDrsss))(objectClass=person))

DamienDrsss commented 8 months ago

Hi,

Thanks for your answer. But I see my container dosn't work as soon as put the "LDAP_ENABLE" variable:

image

Do you have an idea pls ?

ShaneIsrael commented 8 months ago

@DamienDrsss Did you completely ignore my suggestion that you have an invalid value for one of the other LDAP environment variables. If that value is invalid, the container could be error'ing and failing to start. Do you have container logs?

DamienDrsss commented 8 months ago

Hi @ShaneIsrael ,

No, I used your advice but same problem... The log when I launch the container:

image

Thanks for the help

Regards

BulletMemes commented 7 months ago

@DamienDrsss Just based off your first screenshot, you're forgetting to set your LDAP URL, could you confirm you actually have that set?