[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[EP-tech] Re: With LDAP user_login.pl script local users can’t login



Our logic flow for LDAP and local logins is as follows and we had to pretty much write (re-write) our eprints_login.pl from scratch, but we had to do that for other reasons here as well due to the LDAP connection we needed to use to our central authentication system.  Our flow assumes that everyone logging in has a LDAP account first then tries the local DB if LDAP logon fails.
[cid:image001.png at 01D12DB8.B2C173F0]

Hope this helps.
-Brian.


From: eprints-tech-bounces at ecs.soton.ac.uk [mailto:eprints-tech-bounces at ecs.soton.ac.uk] On Behalf Of Enio Carboni
Sent: Thursday, December 03, 2015 5:23 AM
To: eprints-tech at ecs.soton.ac.uk
Subject: [EP-tech] Re: With LDAP user_login.pl script local users can?t login

If you do not have the proxy account "someProxyAccount" (in the script see  my $dn  = "cn=someProxyAccount,ou=accounts,$base") it fail and "return 0" when try to bind on ldaps.

Did you put the password for the proxy account at cfg/ldap.passwd?

  Enio
Il 03/12/2015 10:42, pgasinos pgs ha scritto:
No, I don?t have an account for the LDAP server (I am on the process of asking for one), but I thought local admins don't have problem to authenticate. The script I am using is from wiki:
http://wiki.eprints.org/w/LDAP and it is the "LDAP Authentication with On-Demand Creation of Users".

2015-12-03 11:32 GMT+02:00 Field A.N. <af05v at ecs.soton.ac.uk<mailto:af05v at ecs.soton.ac.uk>>:
Can LDAP authenticated accounts log in?  Can you paste the code in your user_login.pl<http://user_login.pl> file here?



--
Adam Field
Business Relationship Manager and Community Lead
EPrints Services
+44 (0)23 8059 8814<tel:%2B44%20%280%2923%208059%208814>





On 3 Dec 2015, at 09:28, pgasinos pgs wrote:

> I have tried to use the wiki's tutorial about LDAP. I have changed  user_roles according to the instructions. The script I have used is "LDAP Authentication with On-Demand Creation of Users" but I couldn't login as administrator. Eprints failed to authenticate with my local admin account.
> *** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
> *** Archive: http://www.eprints.org/tech.php/
> *** EPrints community wiki: http://wiki.eprints.org/
> *** EPrints developers Forum: http://forum.eprints.org/


*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/
*** EPrints developers Forum: http://forum.eprints.org/





*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech

*** Archive: http://www.eprints.org/tech.php/

*** EPrints community wiki: http://wiki.eprints.org/

*** EPrints developers Forum: http://forum.eprints.org/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20151203/9940d04c/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 25180 bytes
Desc: image001.png
Url : http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20151203/9940d04c/attachment-0001.png