Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Phone List App using LDAP

 
Logged in as: Guest
arrSession:exec spGetSession 2,3,37288
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> ASP >> Phone List App using LDAP
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Phone List App using LDAP - 8/24/2006 4:47:24 AM   
  dfmoyer

 

Posts: 6
Score: 0
Joined: 8/24/2006
Status: offline
Greetings,

I have a bit of a problem. I built a web app to pull our office phone list from Active Directory. Unfortunately, in order to make it work, I had to embed a Domain Admin username and password on the page as part of the query. Obviously, this did not go over too well. So, I am trying to change the page to get the username and password out of the code. So far, it's worked... sort of. Here's my problem:

I can get the distinguishedName of the Domain which returns something like DC=Division,DC=Region,DC=Company,DC=net... so far, so good. When I run the query with a "subTree" scope, I get back everyone in the division. That's too much information for this app. When I narrow it down to a specific OU, however, I get a "table not found" error. I have checked the path to the OU I am trying to pull from and it is correct. In fact, if I put in a specific CN, it works to pull the information for one person. In other words, CN=Me,OU=Users,OU=Office,OU=District,DC=Division,DC=Region,DC=Company,DC=net works with no errors; OU=Users,OU=Office,OU=District,DC=Division,DC=Region,DC=Company,DC=net returns the "Table not found" error.

Can anyone point me at a solution or at least a good resource for fixing this problem?

Thanks in Advance
--Dave
 
 
Post #: 1
 
 RE: Phone List App using LDAP - 8/30/2006 5:01:32 PM   
  Snipah


Posts: 1341
Score: 6
Joined: 11/1/2004
From: Netherlands
Status: offline
DFMoyer,

to omit the Table not found error, you could use On Error Resume Next. The table will be found then....

S.

_____________________________

For more information, please see the "Read me First" topic.

http://www.visualbasicscript.com

(in reply to dfmoyer)
 
 
Post #: 2
 
 RE: Phone List App using LDAP - 8/31/2006 2:13:07 AM   
  dfmoyer

 

Posts: 6
Score: 0
Joined: 8/24/2006
Status: offline
I tried the On Error Resume Next option, but all that I got was a script timeout after it proccessed 36250 lines from the OU. The OU only has 8 entries so something didn't mesh correctly.

--Dave

(in reply to Snipah)
 
 
Post #: 3
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> ASP >> Phone List App using LDAP Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts