Technology Questions

Go Back   Technology Questions > Software Questions > Operating System Questions > Linux

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 10-08-2007, 10:50 PM
Michael Everson
Newsgroup Contributor
 
Posts: n/a
MySQL Vs. LDAP

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?


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

 
Old 10-08-2007, 10:50 PM
  #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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #3 (permalink)  
Old 10-21-2007, 04:30 PM
Jamie
Newsgroup Contributor
 
Posts: n/a
Re: MySQL Vs. LDAP

In <dsEOi.7235$H22.4584@news-server.bigpond.net.au>,
"Michael Everson" <spam@qeidrafting.com> mentions:
>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?


I believe there is a "mysql" back-end to openldap. (might be postgresql though)

IMO.. I wish postgresql would be more popular, as it really is a better
database. :-P

No, seriously, the problem is, LDAP is a protocol offering directory services,
optimized for "read-mostly" data, the kind of thing you're likely to find
in a phone book, DNS server or.. user account.

I know it's a confusing mess, but it could be worse, you could be forced
to use SOAP.

Jamie
--
http://www.geniegate.com Custom web programming
Perl * Java * UNIX User Management Solutions
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #4 (permalink)  
Old 10-21-2007, 04:40 PM
Michael Everson
Newsgroup Contributor
 
Posts: n/a
Re: MySQL Vs. LDAP

A mysql backend to LDAP might be ok
What's the normal backend for LDAP storage then, is it just a db text file
or something?



"Jamie" <nospam@geniegate.com> wrote in message
news:Lc119300731754990x1333b50@saturn...
> In <dsEOi.7235$H22.4584@news-server.bigpond.net.au>,
> "Michael Everson" <spam@qeidrafting.com> mentions:
>>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?

>
> I believe there is a "mysql" back-end to openldap. (might be postgresql
> though)
>
> IMO.. I wish postgresql would be more popular, as it really is a better
> database. :-P
>
> No, seriously, the problem is, LDAP is a protocol offering directory
> services,
> optimized for "read-mostly" data, the kind of thing you're likely to find
> in a phone book, DNS server or.. user account.
>
> I know it's a confusing mess, but it could be worse, you could be forced
> to use SOAP.
>
> Jamie
> --
> http://www.geniegate.com Custom web programming
> Perl * Java * UNIX User Management Solutions



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
LDAP Directory?? Bowhunt Pocket PC General 0 03-23-2007 02:15 PM
URL:LDAP protocol CreloX Windows Vista 0 03-22-2007 05:00 AM
OS X hostname resolution with LDAP? Jonathan Apple Macintosh Hardware 20 02-06-2007 06:37 PM
Cached credentials looking for AD / LDAP digger665 Windows XP 5 01-27-2007 10:15 AM
LDAP setup forevernewbie Windows XP 0 01-16-2007 10:30 AM


New To Technology Questions? Do You Need Help with Your Computer or Device? Do You Need Help with this site?

All times are GMT -8. The time now is 10:32 PM.


2003 - 2009 All Rights Reserved. Technology Questions

Search Engine Friendly URLs by vBSEO 3.3.0