Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Assign user group from LDAP #29

Open
VannTen opened this issue Jun 27, 2018 · 6 comments
Open

Assign user group from LDAP #29

VannTen opened this issue Jun 27, 2018 · 6 comments
Assignees

Comments

@VannTen
Copy link

VannTen commented Jun 27, 2018

I'm setting up a ttrss instance for my company, and would like to assign user group from the LDAP plugin authentication.

Would you know if it is possible, and if not, whether it would be hard to implement it (I have not that much experience in php, but I could give it a shot) ?

I asked the same question on ttrss forums, where fox suggested me to ask it here instead.

Thank you.

@VannTen VannTen changed the title Assign user group from LDAP [question]Assign user group from LDAP Jun 27, 2018
@VannTen VannTen changed the title [question]Assign user group from LDAP Assign user group from LDAP Jun 27, 2018
@hydrian
Copy link
Owner

hydrian commented Jun 29, 2018

Are you asking if you want to limit users who can authenticate to TTRSS by group or asking if you can set different TTRSS group privileges via LDAP group?

@VannTen
Copy link
Author

VannTen commented Jun 29, 2018

The second, if I can set TTRSS group via LDAP group. (Perhaps in a more general way, if ttrss can be made to refer to LDAP for most user stuff, like e-mail address also).

@hydrian
Copy link
Owner

hydrian commented Jun 29, 2018

I'll have to see how TTRSS does user group appending for allowing LDAP groups to per authorization level.

As for making the user's name their e-mail address, that should be doable now.

(this is assuming MS AD)

  1. Set your LDAP_AUTH_LOGIN_ATTRIB to 'mail'
  2. set your LDAP_AUTH_SEARCHFILTER to something like this (&(objectClass=user)(|(sAMAccountName=???)(mail=???)))

@hydrian hydrian self-assigned this Jun 30, 2018
@VannTen
Copy link
Author

VannTen commented Jul 2, 2018

As for making the user's name their e-mail address, that should be doable now.

I was more thinking making ttrss use the mail address registered in LDAP for the digests.

@hydrian
Copy link
Owner

hydrian commented Jul 2, 2018

Got it.

@hydrian
Copy link
Owner

hydrian commented Jul 10, 2018

Looked that the current API in TTRSS, there is no way to fully manage user's just from LDAP. I'm still looking into the the auto user account setup functions if it can prefill the account's from the LDAP mail attribute on first user creation.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants