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?
Active Directory object ID
Moderator: General Moderators
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.
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.