sshambar / ExternalAuth

Piwigo plugin that supports login via webserver provided identity
https://piwigo.org/ext/extension_view.php?eid=894
GNU General Public License v2.0
5 stars 2 forks source link

Howto use ExternalAuth in combination with Plugin Ldap_Login #2

Open Schroeffu opened 4 years ago

Schroeffu commented 4 years ago

Hi there!

Before using ExternalAuth which gets User by Apache2 > Kerberos > REMOTE_USER to Piwigo, i have had running the Plugin Ldap_Login. The Plugin Ldap_Login creates the user with a correct E-Mail address, but with only ExternalAuth no E-Mail is given for new users.

So can I run ExternalAuth in any way with Ldap_Login? ExternalAuth is passing username to Ldap_Login and Ldap_Login is creating the user as before?

Thanks for any help :) Nice plugin by the way!

sshambar commented 4 years ago

If all your users use the same email domain, you can have the plugin create the email from the username with the "Email Domain" option on the New Users tab... There's also an option to send new users to the Profile page after creation, where they can set their own email address. I didn't create an option to enforce the "new users must supply an email" option, but I guess I could an one to force users to the Profile page until they fill in their email...useful?

External authentication doesn't have access to any source for user's email address supplied by another source... (there's no standard environment variable for it). If your setup can supply the email as a web server variable, I could add an option to pull the value from such a variable.

Let me know if either of those options would be useful.