Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Looking for a specific property on an Active Directory Schema

Status
Not open for further replies.

thelordoftherings

Programmer
May 16, 2004
616
IL
Hello,

When creating an OU at the Active Directory under "OUs" and right-clicking on the created OU and selecting "properties" there is a "Description" property. How this property is called at the chema. I tried "description" but it looks like it is not it...

Roy
 
Suppose oou is what you bind to via the common ritual getobject("LDAP://" & distinguishedname). Do the following see what you discover.
[tt]
set oschema=getobject(oou.schema)
info="mandatory: " & vbcrlf
for each sattrib in oschema.mandatoryproperties
info=info & sattrib & vbcrlf
next
info=info & "optional: " & vbcrlf
for each sattrib in oschema.optionalproperties
info=info & sattrib & vbcrlf
next
set oschema=nothing
wscript.echo oou.name & " Properties" & vbcrlf & info
[/tt]

Or share what you have steps you have made leading to what you said:
>I tried "description" but it looks like it is not it...
 
Hey tsuji,

I'm sorry but I am new to this, untill today I only accessed the Active Directory from Java code. This is how I discovered that "description" attribute is not bounded to the OU "Description" (debug print of the result...)
Can you please explain me in details what you want me to check and how can I do that?

10X,
Roy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top