azukaar / Cosmos-Server

☁️ The Most Secure and Easy Selfhosted Home Server. Take control of your data and privacy without sacrificing security and stability (Authentication, anti-DDOS, anti-bot)
https://cosmos-cloud.io
Other
2.96k stars 105 forks source link

[FEAT]: LDAP server #249

Open traverseda opened 2 months ago

traverseda commented 2 months ago

Feature Description

There are some services that only support LDAP. This will probably always be true. One that really affects end users is jellyfin. For more corporate users all the git servers, gitea, bitbucket, etc, all work much better when using LDAP directly.

https://github.com/glauth/glauth is a nice go library for implementing LDAP servers.

zidesm commented 1 month ago

Please add LDAP support for the users.

Maybe in the future roles could be assigned to specify which users or group can access certain applications.

lyrameg commented 2 weeks ago

Jellyfin has a plugin which can be installed. (https://github.com/9p4/jellyfin-plugin-sso/tree/main) create an entry in cosmos openID and paste that into "OpenID Client ID" and "OID Secret" in the SSO config then you have to fill out "OID Endpoint" with https://YOUR_DOMAIN/.well-known/openid-configuration finally check the box "Enabled", enable the folders you want them to access(or check the box to enable all) and click Save.

Though it would be nice to have support for LDAP for other apps, but you can use Jellyfin with openID