Active Directory object ID

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
Ree
Forum Regular
Posts: 592
Joined: Fri Jun 10, 2005 1:43 am
Location: LT

Active Directory object ID

Post by Ree »

What is the attribute I should use as an object ID in a web interface to display detailed information about the object? I will want to pass this ID as a GET variable.

For example, a list of all AD groups present in some container is displayed on a web page:

Authors
Readers
Admins

Let's say I will also want to display all the users of each group.

Authors
Readers
Admins

I can use each group's CN as a value of the GET variable "group" (as I have done in the example above) but I'm not sure if this the way to go since CN may contain language-specific chars and in that case the URLs will become ugly (those %'s). Are there any other attributes that I could use for the same identification purposes? An integer/alphanum attribute would be best.

What would you pass a GET var in a similar case?
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Post by pickle »

Not sure about Active Directory, but Novell Directory Services gives each object a UUID - just a unique number.

You should be able to use the cn - just run it through urlencode() before putting it in the url, and urldecode() to get it out.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply