| Author |
Message |
GC Postmaster
Guest
|
Posted:
Wed Nov 09, 2005 5:50 pm Post subject:
User Properties in Computer |
|
|
We are building a search tool for AD and the best way we were told to filter
to just users was to filter based on "objectClass=User". However, we are
getting computers returned with the results.
We looked at our computers in ADSI and they have objectClass=Person as well
as User and Computer.
We looked at our schema and the computer class has all of the user
properties in it as well.
Is this normal? Myself and the current systems manager inherited this
environment when we started to work here. No one here knows why this is this
way.
If this is normal, what is the best way to filter out just Users or just
Computers?
If it's not normal, does anyone have a suggestion for how to remedy this? It
seems that all computers objects that are created when a computer joins the
domain, are getting User properties as well.
Thanks! |
|
| Back to top |
|
 |
Krishna
Guest
|
Posted:
Wed Nov 09, 2005 5:50 pm Post subject:
RE: User Properties in Computer |
|
|
ObjectCategory will differ for computer and user objects.
Computer objects have user accounts in domain, which they use to
authenticate to the domain. So it is normal to have those properties in the
computer objectt.
K
"GC Postmaster" wrote:
| Quote: | We are building a search tool for AD and the best way we were told to filter
to just users was to filter based on "objectClass=User". However, we are
getting computers returned with the results.
We looked at our computers in ADSI and they have objectClass=Person as well
as User and Computer.
We looked at our schema and the computer class has all of the user
properties in it as well.
Is this normal? Myself and the current systems manager inherited this
environment when we started to work here. No one here knows why this is this
way.
If this is normal, what is the best way to filter out just Users or just
Computers?
If it's not normal, does anyone have a suggestion for how to remedy this? It
seems that all computers objects that are created when a computer joins the
domain, are getting User properties as well.
Thanks!
|
|
|
| Back to top |
|
 |
Paul Williams [MVP]
Guest
|
Posted:
Thu Nov 10, 2005 1:51 am Post subject:
Re: User Properties in Computer |
|
|
Computers are subclasses of the user class, so they share the same class and
attributes.
Use (&(objectClass=user)(objectCategory=person)) to just pull users and
contacts.
--
Paul Williams
Microsoft MVP - Windows Server - Directory Services
http://www.msresource.net | http://forums.msresource.net |
|
| Back to top |
|
 |
Joe Richards [MVP]
Guest
|
Posted:
Thu Nov 10, 2005 1:51 am Post subject:
Re: User Properties in Computer |
|
|
Actually (&(objectClass=user)(objectCategory=person)) will pull users
(&(objectClass=contact)(objectCategory=person)) will pull contacts.
objectcategory=person will pull users and contacts.
Paul Williams [MVP] wrote:
| Quote: | Computers are subclasses of the user class, so they share the same class and
attributes.
Use (&(objectClass=user)(objectCategory=person)) to just pull users and
contacts.
|
|
|
| Back to top |
|
 |
Paul Williams [MVP]
Guest
|
|
| Back to top |
|
 |
GC Postmaster
Guest
|
Posted:
Thu Nov 10, 2005 9:50 pm Post subject:
Re: User Properties in Computer |
|
|
Thanks ya'll!
"GC Postmaster" <email_accounts@gordon.edu> wrote in message
news:uZ8hGGU5FHA.1032@TK2MSFTNGP11.phx.gbl...
| Quote: | We are building a search tool for AD and the best way we were told to
filter to just users was to filter based on "objectClass=User". However,
we are getting computers returned with the results.
We looked at our computers in ADSI and they have objectClass=Person as
well as User and Computer.
We looked at our schema and the computer class has all of the user
properties in it as well.
Is this normal? Myself and the current systems manager inherited this
environment when we started to work here. No one here knows why this is
this way.
If this is normal, what is the best way to filter out just Users or just
Computers?
If it's not normal, does anyone have a suggestion for how to remedy this?
It seems that all computers objects that are created when a computer joins
the domain, are getting User properties as well.
Thanks!
|
|
|
| Back to top |
|
 |
Joe Richards [MVP]
Guest
|
Posted:
Fri Nov 11, 2005 1:50 am Post subject:
Re: User Properties in Computer |
|
|
No problem, makes me feel useful. :)
Paul Williams [MVP] wrote:
| Quote: | Whoops. :-(
Thanks for the correction!
|
|
|
| Back to top |
|
 |
Paul Williams [MVP]
Guest
|
|
| Back to top |
|
 |
|
|
|
|