Good morning Mike,
See if this helps, it's taken from one of our setups(we're running trac via WSGI though):
<Location "/">
38 AuthLDAPBindDN "CN=CommonName,OU=ServiceAccounts,OU=Unit,DC=Base,DC=Place"
39 AuthLDAPBindPassword "whatever"
40 # search user
41 AuthLDAPURL "ldap://ip.ip.ip.ip/OU=ServiceAccounts,DC=Base,DC=Place?sAMAccountName?sub?(objectClass=*)"
42 AuthLDAPBindAuthoritative on
43 AuthType Basic
44 AuthBasicProvider file ldap
45 AuthName "Enter TRAC password"
46 AuthUserFile /opt/trac/htpasswd
47 Require valid-user
48 WSGIApplicationGroup %{GLOBAL}
49 </Location>
HTH
/tony
--
Tony Albers - SCSA, SCNA, EMCIE, EMCBA, RHCSA
Transition Manager - FIT/TMS Delivery Team - Signalling Integrations
Banedanmark, Signalling Systems
Carsten Niebuhrs Gade 43, 1577 Copenhagen V
________________________________________
From:
trac-...@googlegroups.com <
trac-...@googlegroups.com> on behalf of Michael LiVolsi <
mikel...@gmail.com>
Sent: 07 March 2023 23:02
To: Trac Users
Subject: [Trac] Trac 1.4.3 with Apache2.4 on Ubuntu 22.04 - Problems
CAUTION: This email originated from outside the organization.
Glad I found this group.
Gist of the Problem:
I can authenticate against LDAP and .htpasswd, but the user is still being set to "anonymous".
Does authentication Work ?
Yes. I know .htpasswd and ldap are working is that when I enter an invalid password, I get re-prompted.
Site Location
My location for everything is "/var/trac/sites/traffic"
How it's all configured:
* Apache as the web server with tracd running.
* LDAP and .htpasswd as the authentication vehicles.
* Postgresql as the database back-end
--
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
trac-users+...@googlegroups.com<mailto:
trac-users+...@googlegroups.com>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/trac-users/80ac720d-e5ea-4630-b8b0-d83a8a26505cn%40googlegroups.com<
https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Ftrac-users%2F80ac720d-e5ea-4630-b8b0-d83a8a26505cn%2540googlegroups.com%3Futm_medium%3Demail%26utm_source%3Dfooter&data=05%7C01%7Cxtoal%40bane.dk%7C57eda163003d47b474cb08db1f5b0cce%7C2e91ef123cbc456a8637b8d139d5d3a7%7C0%7C0%7C638138248144299912%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=pqd2MVNuzubd6XUOh8t%2Fd4wNidl%2BKIlCwF%2BrJ1mdP5I%3D&reserved=0>.