The Fun of LDAP - objectClass Attributes

March 4th, 2007 by Tom Adelstein

OK - I actually like and enjoy LDAP, but do not allow that to cloud your judgment. LDAP took much more of my time and effort to learn than Bind and/or DNS. And I recall sitting in front of DNS chapters wondering why we needed another language to do something as easy as mapping a friendly name to an IP address. This jargon stuff has value though such as constraing insomnia.

So, if you need some sleep and don't care about writers who use phrases like "much more", then we can move along and discuss the notion of an objectClass. Are we having fun yet?

The entries in an LDAP directory, like the entries in a phone book or contact list require objectClass attributes which need at least one value. That's just common sense right?

Think of an objectClass value as a template for the information you wish to store in an entry or to make the jargon complete in the name space.

We haven't touched on distinguished names and relative distinguished names but pretend like you know what they mean, please. In the example below, think of an "organizational unit" as the top of a hierarchical file system with limbs below it.

The top of directory for our purpose is ou=computers,dc=centralsoft,dc=org. So, if you wanted to find a list of computers in centralsoft.org, you would have this area of the directory called computers. Computers would appear in your LDAP browser in plain English as simply "Computers" and below that one or more computers.

In LDAP parlance setting up the area of the directory for computers would look like this:


dn: ou=computers,dc=centralsoft,dc=org
objectclass: organizationalUnit
ou: computers
pc: wkst01
description: Container for all computers existing within the centralsoft.org domain

The objectClass attribute we used in this example was "pc". The only pc that the directory contains at the moment is "wkst01". You could just as easily used "srv01" for "server01". That's not the point though.

Technically speaking, of course, RFCs define many attributes we find in LDAP schemas. For example RFC 2256 defines the attribute for telephoneNumber, which intuitively makes total sense to the average user of a contact list (sic).

We just touched the surface of the objectClass discussion. Don't worry if it does not make much sense at this point. Just know that in the language or jargon of LDAP, you'll have to get it about objectClass attributes or you won't have much to do with constructing LDAP directories.

__________________________

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Thanks for the suggestion…

__________________________

muhabbet | Yonja | Netlog

Gave Up

On October 15th, 2007 Free Credit Repair (not verified) says:

Started getting myself acquainted with LDAP but gave up as it's too longwinded and needed too much time. May be I should start again...

LDAP

On October 15th, 2007 NewSitesBlog (not verified) says:

I have been using LDAP as well, but no luck. I wish there was aforum with some help.

linux

On October 2nd, 2007 free enigma mp3 songs download (not verified) says:

is McVoy? Who Larry Thanks.

what

On October 1st, 2007 oyun (not verified) says:

what like you

We think this is an

On September 30th, 2007 Home Refurbish Course (not verified) says:

We think this is an inspiring article.

I choose my very sexy lades

On September 28th, 2007 My XXX Ladies (not verified) says:

I choose my very sexy lades and make sure their the best, just like this article.

I agree too.

On September 18th, 2007 new thumbs daily (not verified) says:

I agree too.

LDAP

On March 27th, 2007 BillW (not verified) says:

It kind of feels like one of those technet links that say -want to read the rest- you must be a member. or better yet lets look for driver info on the experts link.
Here's one - point to LDAP info instead of the GAL in your Outlook client for fun.

bookmarked

On September 21st, 2007 msn ifadeleri (not verified) says:

Technically speaking, of course, RFCs define many attributes we find in LDAP schemas. For example RFC 2256 defines the attribute for telephoneNumber, which intuitively makes total sense to the average user of a contact list (sic).

ow i have bookmarked that post

LDAP??? no substance

On March 18th, 2007 Anonymous (not verified) says:

Dude,

Why did you bother writing that? Where's the rest of the article? Come on, we're smart. We can read and comprehend more than this.

RF

I totally agree with you.

On October 1st, 2007 Blogger (not verified) says:

I totally agree with you. The article just has the basic header. More info on this is really appreciated.

Totally agreed.

On March 16th, 2007 Anonymous (not verified) says:

Totally agreed.

Count me too... what a waste

On March 19th, 2007 Anonymous (not verified) says:

Count me too... what a waste of time...

And where is this leading to?

On March 5th, 2007 Roderick (not verified) says:

Please continue the LDAP fun... Are you going to tell us how to interpret and use objectClasses when set tingup LDAP?

Open LDAP

On June 5th, 2007 Keyloggery (not verified) says:

You can find out more about LDAP here: www.openldap.org.
Best regards.

linux

On October 2nd, 2007 alchemist enhancing enigma mp3 download (not verified) says:

Richard M. Stallman? Who is . Bye.

swidnica u dummy

On June 27th, 2007 delta (not verified) says:

...observations from someone else’s point of view… it makes you think more...
Makes me want to throw up when I see your lazy post again and again..
How many times did you copy that stupid frase all over the net so far, a 1000 times? I know I have seen it 50 times already.
Quit slumping and get a new lines or new life u idiot.

Featured Video

Shawn Powers has a message for hardware vendors. Listen up!

From the Magazine

July 2008, #171

Heard of the Web? If not, read on. This month we talk with Matt Mullenweg about WordPress. If you want to get your hands dirty in Web code, take a look at the rest of our feature articles on WebKit, Dojo and OpenLaszlo.

In the rest of the issue, you'll find articles on OpenID, RDFa and Quanta Plus. Kyle Rankin puts a new spin (as in "no" spin SSD) on hard drives and also tells you how to migrate to that new disk (spinning or not). Mick Bauer continues his series on customizing live CD's. And, James Gray gives us a feel for the state of Linux in the enterprise. After all that, you may need some TV time. If so, check out our review on how to make that digital TV tuner card work in your Linux box.

Read this issue