tectiv3 / standardfile

Standard File Server, Go Implementation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LDAP authentication

cyberb opened this issue · comments

I would like to this implementation of standard files to https://github.com/syncloud/platform as part of Standard Notes app.

Many apps already use LDAP as an authentication source.

Do you have plans to add some LDAP authentication logic?

This is just an implementation of https://standardfile.org/ protocol, if LDAP will be added to the specification - then yeah, I will implement it.

Looks like there are two rest endpoints:

POST auth
POST auth/sign_in

Is it open for anyone to register?

Also it does not really say how implementor should store credentials.

Yes, but also GET auth/params which will be called first.

Yeah, if registration is not disabled via flag - anyone can register.

So in theory it is posible to disable registration and use ldap for sign_in?
I guess it is up to implementor to decide what credential store to use.

If you are open for PRs I can look at it as I did similar thing for Syncthing recently: syncthing/syncthing#5169

yeah, sure!

Do you have any config file?

nope, but as number of options grow might as well add one.

After checking how protocol works it appears that you are right. Spec says only part of the passowrd should be sent to the server. I guess they wanted users to be completely independent from the server.

So probably LDAP does not make sense at the moment.