LDAP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesLDAP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old February 13th, 2008, 12:17 AM
Hockey Hockey is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2008
Posts: 4 Hockey User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 30 m 5 sec
Reputation Power: 0
LDAP general questions

Still trying to wrap my head around LDAP...

I understand it has schema's, much like a RDBMS...but what I don't understand is how a schema maps to a hierarchy.

For example, if I wanted to implement some groups/user/acl using RDBMS my tables might look something like:

users:
pkid, email, alias, password, last_login

groups:
pkid, name

groups_list:
pkid, userid, groupid

permissions:
pkid, groupid, name, value

Using DB you would make the relational association between tables and emulate structure...each table has it's own schema...

When you attempt to accomplish this in LDAP...do you basically have to nest schema's in the LDIF???

Is an LDIF analogous to a SQL file with both DDL & DML specified???

Does the schema imply hierarchial relationships in LDAP so you as the programmer do not have to worry about connecting users under certain groups? Is this not what is implied in the chaining of field names...

dn: dc, ou, etc...???

Is this not similar to xpath/css in the way you use selectors to basically start at the root of an item and work your way down until you reach the target field???

I see that LDAP is similar to Windows registry, but as a protocol is allows network access, but fundamentally it's quite similar. Storing objects/classes in a structured fashion...

Anyways, for now, I'd like to know how the schema works...

If I created a schema for users to hold user classes/objects:

users:
pkid, email, alias, password, last_login

How would I now indicate that users are assigned to groups and yet keep that group information separate, so that users can belong to multiple groups?

Would you first create the groups schema and assign a user ID to each as an array of the groups class?

Is LDAP similar to a serialized version of a object in this regard?

If you could make analogies to similar technologies like I have done above, I think that would help in my learing about LDAP.

One more thing before I forget...

If LDAP comes preloaded with (defacto) standard-ized schemas suitable for most organizations...I assume these schemas are what most LDAP exacmples for PHP I've looked at are using?

If I wanted to add to that schema though, and assign users, groups, applications, organizations, etc to an existing schema, is this possible?

For example, when an application installs on Windows, it creates it's own entries in the registry to store it's options, etc. Most applications wouldn't understand the semantics of the data but the syntax is understood/standardized so long as you use the registry API. I assume LDAP is similar???

I could basically take a well known standardized schema (say, Windows own ActiveDirectory) and apply my own users, groups, applications, organizations classes to that schema so my applications could store that informaiton in a centralized location???

Sorry for the short story - I'm just struggling to get a grasp on this and get started working on my authentication/authorization code for my applications.

Cheers

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesLDAP Programming > LDAP general questions


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway