Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-10-28 00:27:47

jamie
New Member
Registered: 2005-08-18
Posts: 2

LDAP user authentication

Has anyone fiddled with using LDAP for user authentication, or have any insight to any obvious complications implementing it might have? I havn’t seen it mentioned anywhere else so I will probably dive in and hack away since I need it for a new project.

Offline

#2 2005-12-21 04:46:06

simonaut
Member
Registered: 2005-06-28
Posts: 16
Website

Re: LDAP user authentication

Not sure why you would want LDAP authentication…. Do you want it for a coporation or something?
~Simon


Chat with me here!
AIM: s1monaut
http://www.simonaut.com/

Offline

#3 2005-12-24 22:46:48

simonaut
Member
Registered: 2005-06-28
Posts: 16
Website

Re: LDAP user authentication

LDAP stands for, Lightweight Directory Access Protocol…. It is an Internet protocol that email and other programs use to look up information from a server. It is used in many university’s since many different departments can use it as a central user list that everyone can authenicate against!
~Simon


Chat with me here!
AIM: s1monaut
http://www.simonaut.com/

Offline

#4 2005-12-24 23:08:32

jamiew
Archived Plugin Author
From: NYC
Registered: 2005-01-08
Posts: 74
Website

Re: LDAP user authentication

A university is exactly where I’m using it in fact.

Offline

#5 2006-02-27 22:10:18

tmacwrig
Archived Plugin Author
Registered: 2004-03-06
Posts: 204
Website

Re: LDAP user authentication

I haven’t seen any success w/LDAP and TXP. A somewhat little-known, but still good solution for universities, etc is WordPress Multiuser (I don’t especially like WordPress as a general solution, but it does the trick in this case.)

Offline

#6 2006-03-30 22:18:38

morgant
Plugin Author
From: Vermont, United States
Registered: 2004-06-22
Posts: 63
Website

Re: LDAP user authentication

I’d be highly interested in LDAP support for Textpattern as well. The company I work for is relatively small, but LDAP is extremely useful for keeping login credentials managed and I’d love to extend it to the company blog.

Now, I’m not looking for each user to have their own blog or section or anything like that, just to use LDAP for the authentication and permissions.

Is this a possibility? Could one write a plug-in to provide this functionality?

Offline

#7 2006-03-30 22:59:30

KurtRaschke
Plugin Author
Registered: 2004-05-16
Posts: 275

Re: LDAP user authentication

I don’t think it could be done with a plugin; the necessary hooks just aren’t there. You could certainly hack txp_validate() in txp_auth.php to use the PHP LDAP functions to take the provided username and password and query an LDAP server with those values, then return true or false based on the result from ldap_count_entries().

You’d also need a little glue code to replace existing SQL queries to the txp_users table (to look up things like the author name, email address, or permissions) with the appropriate LDAP queries. Again, I don’t think the necessary hooks exist for a plugin to take over those functions, so it’d have to go in the code itself.

-Kurt


kurt@kurtraschke.com

Offline

#8 2006-03-31 22:39:18

morgant
Plugin Author
From: Vermont, United States
Registered: 2004-06-22
Posts: 63
Website

Re: LDAP user authentication

Hmm, something I may play with eventually.

Offline

Board footer

Powered by FluxBB