Thread: MySQL Vs. LDAP
View Single Post
  #2 (permalink)  
Old 10-09-2007, 05:10 AM
Lew Pitcher
Newsgroup Contributor
 
Posts: n/a
Re: MySQL Vs. LDAP

On Oct 9, 1:37 am, "Michael Everson" <s...@qeidrafting.com> wrote:
> Hi Guys, I am just wanting to centralise all my users across a couple of
> systems to the 1 database replicated across all the machines. I know
> traditionally LDAP has been the thing to use for this but no matter how hard
> I try I can't get my head around exactly how LDAP stores information. I have
> got it working and I've been using it for a while now but I find it not so
> easy to administer.
>
> If I were to use MySQL it would be as simple as using phpmyadmin plus custom
> PHP scripts I could write to do certain things for me. I have seen pam-mysql
> & libnss-mysql packages, will this do everything LDAP can do and is it as
> secure and reliable or is it more of an afterthought/hack-around?


Yes, it will do everything that LDAP can do. Everything but offer the
functionality of LDAP, that is.

LDAP isn't a database, it is a communications protocol. It is a way
for a client application to ask for and receive "telephone book"
information about people or departments. It involves a specific
structure in it's request and in the reply. /That/ is LDAP
("Lightweight Directory Access Protocol").

You can build an alternative to LDAP out of MYSQL and PHP, but it
won't substitute for LDAP. LDAP clients need to talk LDAP to an LDAP
server. They won't talk your custom language to your custom server,
unless you build your custom server to talk LDAP.

In the end, you aren't really looking for a PHP/MYSQL alternative to
LDAP. Instead, you are looking for an easily administered LDAP server.
So, look for one, say, in Freshmeat or sourceforge. In fact, I'll help
a bit - take a look at http://diradmin.open-it.org/

HTH
--
Lew

Reply With Quote

 
Old 10-09-2007, 05:10 AM