#190825 - 2008-12-04 08:39 AM
Re: Glenn help! You the man!
[Re: Gargoyle]
|
Arend_
MM club member
   
Registered: 2005-01-17
Posts: 1896
Loc: Hilversum, The Netherlands
|
The way I posted it doesn't need to be changed Except for the OU strings.
$Branch1 = fnLDAPQuery('Name','LDAP://ou=Computer,ou=4th,dc=microsoft,dc=fabrikon,dc=com','(&(objectClass=Computer)(Name=*))')
$Branch2 = fnLDAPQuery('Name','LDAP://ou=Computer,ou=8th,dc=microsoft,dc=fabrikon,dc=com','(&(objectClass=Computer)(Name=*))')
$Branch3 = fnLDAPQuery('Name','LDAP://ou=Computer,ou=plov,dc=microsoft,dc=fabrikon,dc=com','(&(objectClass=Computer)(Name=*))')
$Branch4 = fnLDAPQuery('Name','LDAP://ou=Computer,ou=Stevens,dc=microsoft,dc=fabrikon,dc=com','(&(objectClass=Computer)(Name=*))')
'Name' is the name of the computer. (Don't change this to srv-01, it wont work, leave it as 'Name') 'LDAP://" is the OU string where to get the computers from '(&(objectClass=Computer)(Name=*))' is the filter to apply, so the array won't contain OU names or any other objects except computers.
So only change the OU string to match that of your AD and it will work as I posted in my last post.
|
|
Top
|
|
|
|
#190845 - 2008-12-04 04:43 PM
Re: Glenn help! You the man!
[Re: Arend_]
|
itdaddy
Starting to like KiXtart
Registered: 2006-12-19
Posts: 145
Loc: Wisconsin
|
apronk
this is exactly what I have expect for the fake FQDN I have fake here. but yeah, This is what I have. no errors but no display?? I am sure it is something to do with this? sorry for the hassle but I know I am almost there it must be something small. can you see it?? thanks.........in place of dc=microsoft should i have dc=srv-dc1 ??name of domain controller and not microsoft? robert
Dim $Branch1, $Branch2, $Branch3, $Branch4
;fnLDAPQuery(WHAT, Optional FROM, Optional FILTER, Optional ORDER BY, Optional SCOPE, Optional USER, Optional PASSWORD)
$Branch1 = fnLDAPQuery('Name','LDAP://ou=Computers,ou=ForthAve,ou=funnycu,dc=microsoft,dc=funnycu,dc=priv','(&(objectClass=Computers)(Name=*))')
$Branch2 = fnLDAPQuery('Name','LDAP://ou=Computers,ou=EighthSt,ou=funnycu,dc=microsoft,dc=funnycu,dc=priv','(&(objectClass=Computers)(Name=*))')
$Branch3 = fnLDAPQuery('Name','LDAP://ou=Computers,ou=PostRd,ou=funnycu,dc=microsoft,dc=funnycu,dc=priv','(&(objectClass=Computers)(Name=*))')
$Branch4 = fnLDAPQuery('Name','LDAP://ou=Computers,ou=ParkDr,ou=funnycu,dc=microsoft,dc=funnycu,dc=priv','(&(objectClass=Computers)(Name=*))')
Edited by itdaddy (2008-12-04 04:54 PM)
_________________________
Robert A+, CCNA, MCP Network Admin Credit Union Wisconsin
|
|
Top
|
|
|
|
#190857 - 2008-12-04 05:41 PM
Re: Glenn help! You the man!
[Re: Arend_]
|
itdaddy
Starting to like KiXtart
Registered: 2006-12-19
Posts: 145
Loc: Wisconsin
|
apronk it must be my LDAP path okay scenario I am on srv-dc1 (actaul name) it is a DC. I am logged in as Domain ADmin. AD hierarchy for one branch is this funnycu.priv funnycu (ou) ForthAve (ou) Computers (ou) ------------------------------- Let us do one line at a time and I bet the other lines the same. --------------------------------------------------------------
Dim $Branch1, $Branch2, $Branch3, $Branch4
;fnLDAPQuery(WHAT, Optional FROM, Optional FILTER, Optional ORDER BY, Optional SCOPE, Optional USER, Optional PASSWORD)
$Branch1 = fnLDAPQuery('Name','LDAP://ou=Computers,ou=ForthAve,dc=srv-dc1,dc=local','(&(objectClass=Computer)(Name=*))')
do I have the names exact for what they are like the filter "Computer" or ou name Computers? Name I leave alone right as name. where the computers are stored for ForthAve are in the last OU called Computers each branch office has a name ie ForthAve and then another OU called Computers where their respective computers are store the names of each PC in that branch office. that is it..so can you write the correct synatax of one branch LDAP and so I can see you have the scenario I just gave you to better help you see what I have and I have given you actaul names..we are almost there. it doenst come up i know my LDAP path is wrong.
_________________________
Robert A+, CCNA, MCP Network Admin Credit Union Wisconsin
|
|
Top
|
|
|
|
#190858 - 2008-12-04 06:02 PM
Re: Glenn help! You the man!
[Re: itdaddy]
|
Arend_
MM club member
   
Registered: 2005-01-17
Posts: 1896
Loc: Hilversum, The Netherlands
|
It should be this
$Branch1 = fnLDAPQuery('Name','LDAP://OU=Computers,OU=ForthAve,OU=FunnyCU,DC=FunnyCU,DC=priv','(&(objectClass=Computer)(Name=*))')
|
|
Top
|
|
|
|
#190861 - 2008-12-04 06:24 PM
Re: Glenn help! You the man!
[Re: itdaddy]
|
Arend_
MM club member
   
Registered: 2005-01-17
Posts: 1896
Loc: Hilversum, The Netherlands
|
We all had to start somewhere, you'll get there soon enough  Glad it works now
|
|
Top
|
|
|
|
#190880 - 2008-12-06 01:42 AM
Re: Glenn help! You the man!
[Re: itdaddy]
|
NTDOC
Administrator
   
Registered: 2000-07-28
Posts: 11631
Loc: CA
|
Might want to take a look at using this cool little KiXforms app that Chris wrote to make copying those paths easy.
KiXforms - Active Directory Browser Version 2
|
|
Top
|
|
|
|
#190883 - 2008-12-06 04:28 PM
Re: Glenn help! You the man!
[Re: NTDOC]
|
Arend_
MM club member
   
Registered: 2005-01-17
Posts: 1896
Loc: Hilversum, The Netherlands
|
To answer your "other" question, "apronk" is an abbrevation of my full name, which is Arend Pronk, Arend was already taken
|
|
Top
|
|
|
|
Moderator: Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 858 anonymous users online.
|
|
|