There might be some minor details that I am not aware of, but if you
setup correct settings, other things should work okay. You *may* have to
create your own Sign-In pages though. I am assuming you won't have a
sign-up page.

We will be using the same Sign-In page and we will also be having Sign-Up
pages.
The Sign-Up page is required to make an entry of the registered user in the
mailman DB.

We are already having an ldap database of the users we want to use the same
ldap for our mailman authentication also.

We don't want to make a new ldap server setup for this.

Our way of Approach is

1. User will sign up in the mailman and his username will be noted in the
database.
2. When ever  user tries to login he should get the authenticated by ldap
which is already running for other services.
3. We need only moderators and list owners to login in to the mailman but
out ldap will be having even the members entries also which makes the login
of members also possible.
4. To restrict the login of members into mailman we thought of
authenticating to the members who are registered in mailman database.
5. So first when user tries to login his username has to be checked in
mailman database if the particular entry is present then he should be
authenticated by ldap.

Please help me in any deviation in the above approach. As the client
requirement is as above I thought of achieving this way.

Your inputs are most welcome.

Regards
Sandeep



On Tue, Jul 16, 2019 at 9:37 PM Abhilash Raj <maxk...@asynchronous.in>
wrote:

> On Tue, Jul 16, 2019, at 4:12 AM, sandeep kumar wrote:
> > Hi Team
> >
> > We want to integrate LDAP authentication for a user to login into
> > postorious.
> >
> > When a user tries to login, he should be authenticated by an LDAP instead
> > of getting authenticated using the credentials saved in the mailman
> > database.
> >
> > What file should be edited and any small clue would be welcome.
>
> First see Django's Docs on authentication backends[1]. This[2] seems to
> come up as the most popular library for LDAP authentication in Django.
>
>
> [1]:
> https://docs.djangoproject.com/en/2.2/topics/auth/customizing/#specifying-authentication-backends
> [2]: https://django-auth-ldap.readthedocs.io/en/latest/
>
>
> You won't have to change anything in the source, only use the appropriate
> settings defined in the docs of Django-auth-ldap to integrate with LDAP.
>
> There might be some minor details that I am not aware of, but if you
> setup correct settings, other things should work okay. You *may* have to
> create your own Sign-In pages though. I am assuming you won't have a
> sign-up page.
>
> You'll end up making changes in `urls.py` in the mailman-suite project
> too, just to configure the right URLs to redirect to for authentication.
>
> Sorry for sparse information, but I hope this will be a good starting point
> for you. It would be awesome if you could also document this process
> if you succeed since there have been some requests in past about
> integrating with LDAP. It could help others in future :)
>
> > --
> > Regards
> > Sandeep Kumar
> > +91-9642669192
> > _______________________________________________
> > Mailman-Developers mailing list -- mailman-developers@python.org
> > To unsubscribe send an email to mailman-developers-le...@python.org
> > https://mail.python.org/mailman3/lists/mailman-developers.python.org/
> > Mailman FAQ: https://wiki.list.org/x/AgA3
> >
> > Security Policy: https://wiki.list.org/x/QIA9
> >
>
> --
>   thanks,
>   Abhilash Raj (maxking)
> _______________________________________________
> Mailman-Developers mailing list -- mailman-developers@python.org
> To unsubscribe send an email to mailman-developers-le...@python.org
> https://mail.python.org/mailman3/lists/mailman-developers.python.org/
> Mailman FAQ: https://wiki.list.org/x/AgA3
>
> Security Policy: https://wiki.list.org/x/QIA9
>


-- 
Regards
Sandeep Kumar
+91-9642669192
_______________________________________________
Mailman-Developers mailing list -- mailman-developers@python.org
To unsubscribe send an email to mailman-developers-le...@python.org
https://mail.python.org/mailman3/lists/mailman-developers.python.org/
Mailman FAQ: https://wiki.list.org/x/AgA3

Security Policy: https://wiki.list.org/x/QIA9

Reply via email to