Auth_LDAP Support thread

Post plugins and custom CSS snippets here
TSM
Bear Rating Trainee
Bear Rating Trainee
Posts: 13
Joined: 03 Nov 2015, 16:20

Re: Auth_LDAP Support thread

Postby TSM » 03 Nov 2015, 16:51

I updated this plugin to support native PHP ldap instead of the old Net_LDAP2.
Download the latest version if needed.

https://github.com/hydrian/TTRSS-Auth-LDAP

grimm
Bear Rating Trainee
Bear Rating Trainee
Posts: 2
Joined: 14 Dec 2015, 06:05

Re: Auth_LDAP Support thread

Postby grimm » 14 Dec 2015, 06:09

TSM wrote:I updated this plugin to support native PHP ldap instead of the old Net_LDAP2.
Download the latest version if needed.

https://github.com/hydrian/TTRSS-Auth-LDAP


I've installed the plugin in the link, works great as far as getting a valid login from my openldap server. but then the ttrss logs says that I failed login.

OpenLDAP:

Dec 14 03:02:16 auth01 slapd[14436]: conn=1651 fd=15 ACCEPT from IP=xxxxxxx:57990 (IP=0.0.0.0:389)
Dec 14 03:02:16 auth01 slapd[14436]: conn=1651 op=0 BIND dn="" method=128
Dec 14 03:02:16 auth01 slapd[14436]: conn=1651 op=0 RESULT tag=97 err=0 text=
Dec 14 03:02:16 auth01 slapd[14436]: conn=1651 op=1 SRCH base="dc=xxxx,dc=us" scope=2 deref=0 filter="(&(objectClass=person)(uid=xxxx))"
Dec 14 03:02:16 auth01 slapd[14436]: conn=1651 op=1 SRCH attr=displayName title sAMAccountName
Dec 14 03:02:16 auth01 slapd[14436]: conn=1651 op=1 SEARCH RESULT tag=101 err=0 nentries=1 text=
Dec 14 03:02:16 auth01 slapd[14436]: conn=1651 op=2 BIND dn="cn=xxxxxx,ou=Users,dc=xxxxxx,dc=us" method=128
Dec 14 03:02:16 auth01 slapd[14436]: conn=1651 op=2 BIND dn="cn=xxxxxx,ou=Users,dc=xxxxxx,dc=us" mech=SIMPLE ssf=0
Dec 14 03:02:16 auth01 slapd[14436]: conn=1651 op=2 RESULT tag=97 err=0 text=
Dec 14 03:02:16 auth01 slapd[14436]: conn=1651 op=3 UNBIND
Dec 14 03:02:16 auth01 slapd[14436]: conn=1651 fd=15 closed

TT-Rss

E_USER_WARNING (512) classes/handler/public.php:615 Failed login attempt for xxxxxxxx from xxxxxxxxx [Last query: SELECT salt FROM ttrss_users WHERE login = 'xxxxxx']1. classes/handler/public.php(615): user_error(Failed login attempt for mford from 10.13.37.20, 512)
2. public.php(50): login()
22:02
E_USER_WARNING (512) :0 Could not find user name attribute uid in LDAP entry 22:02
E_USER_NOTICE (1024) :0 Looking up TT-RSS username attribute in uid 22:02
E_USER_NOTICE (1024) :0 User: xxxxxx authentication successful 22:02
E_USER_NOTICE (1024) :0 Try to bind with user's DN: cn=xxxxxx,ou=xxxxxx,dc=xxxxxx,dc=us 22:02
E_USER_NOTICE (1024) :0 Connected to LDAP Server: ldaps://xxxxxx.xxxxxx.us:389/ with anonymous DN


Any thoughts on how to fix this??? Thanks!!!

Note: the X's is omitted data

User avatar
cac2s
Bear Rating Trainee
Bear Rating Trainee
Posts: 2
Joined: 15 Dec 2015, 16:59

Re: Auth_LDAP Support thread

Postby cac2s » 15 Dec 2015, 17:00


grimm
Bear Rating Trainee
Bear Rating Trainee
Posts: 2
Joined: 14 Dec 2015, 06:05

Re: Auth_LDAP Support thread

Postby grimm » 16 Dec 2015, 05:05



Thanks cac2s, that works perfectly....

Now I'm not a php developer (Linux sysadmin), please what are the differences between this and others (what makes this one work and all others i've tried not??)

Also, now that i have this working, i wish to restrict access to only my tinytinyrss group. Is this possible or am I bound to all LDAP users have access?

User avatar
cac2s
Bear Rating Trainee
Bear Rating Trainee
Posts: 2
Joined: 15 Dec 2015, 16:59

Re: Auth_LDAP Support thread

Postby cac2s » 16 Dec 2015, 13:56

grimm wrote:
cac2s wrote:Also, now that i have this working, i wish to restrict access to only my tinytinyrss group. Is this possible or am I bound to all LDAP users have access?


look at https://github.com/hydrian/TTRSS-Auth-LDAP/issues/19

hydrian
Bear Rating Trainee
Bear Rating Trainee
Posts: 12
Joined: 18 Mar 2013, 01:51

Re: Auth_LDAP Support thread

Postby hydrian » 29 Dec 2015, 19:51

Sorry for the lack up support here. Somehow I unsubscribed and wasn't getting the e-mails.

I've and contributers have been maintaining the code . We've recently updated the releases. You can now get the Net-LDAP2 free version here: https://github.com/hydrian/TTRSS-Auth-LDAP/releases/tag/2.0b1

Also, if you have issues, GitHub is probably a better place to put your issues. It's easier for me to respond there.


Return to “Themes and plugins”

Who is online

Users browsing this forum: No registered users and 1 guest