Current location: Hot Scripts Forums » Programming Languages » ASP » Active Directory Error


Active Directory Error

Reply
  #1 (permalink)  
Old 07-06-04, 07:46 AM
ziadn ziadn is offline
New Member
 
Join Date: Jan 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Question Active Directory Error

I am doing some authentication against the Active Directory, but am (for some users only ) getting the following error:

Provider (0x80040E37)
Table does not exist.

More specifically:
- The page is accessed internally (company-wide)
- All employees are logged in to the same domain (but from different locations).
- The error is generated for some employees only, but I can't pinpoint any difference between those employees and others for which the page works.
- Anonymous access is disabled in IIS
- This is running under a W2K server using IIS 5.0

Any idea why it is working for some users but not for others?

Thanks,

Ziad


Here is the relevant part of the code:

Code:
 
DomainName = Application("myDomainName")
strDefaultNamingContext = Application("myDefaultNamingContext")
GALQueryFilter = "(&(&(&(& (mailnickname=*) (| (&(objectCategory=person)(objectClass=user)(!(homeMDB=*))(!(msExchHomeServerName=*)))(&(objectCategory=person)(objectClass=user)(|(homeMDB=*)(msExchHomeServerName=*)))(&(objectCategory=person)(objectClass=contact))(objectCategory=group)(objectCategory=publicFolder) )))(objectCategory=user)(postalCode=" + employee_id + ")))"
strQuery = "<LDAP://" & DomainName & "/" & strDefaultNamingContext & ">;" & GALQueryFilter & ";sAMAccountName;subtree"
Set oConn = CreateObject("ADODB.Connection")
oConn.Provider = "ADsDSOOBJECT"
oConn.Open "ADs Provider"
Set oComm = CreateObject("ADODB.Command")
oComm.ActiveConnection = oConn
oComm.Properties("Page Size") = 1000
oComm.CommandText = strQuery
Set rs = oComm.Execute

Last edited by ziadn; 07-06-04 at 07:51 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 07-07-04, 12:10 AM
ziadn ziadn is offline
New Member
 
Join Date: Jan 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
One interesting note I forgot to mention: Despite getting the error, changes are saved!

Ziad
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 11-17-05, 01:32 AM
sireesha sireesha is offline
New Member
 
Join Date: Nov 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Active Directort error

Error Type 0x80040E37 Provider Table Does not Exist

The code was working fine earlier with windows 2000 now it is not working .

The server we had migrated from windows 2000 to windows 2003.

Is that is the Problem. Or We need to check any options in the Windows Active directory with respect to LDAP authentication or is with repect to the Security option

Here is the code:

Set objDomain = GetObject ("GC://rootDSE")
'set objDomain = GetObject ("LDAP://rootDSE")
objADsPath = objDomain.Get("defaultNamingContext")

Set objDomain = Nothing
Set con = Server.CreateObject("ADODB.Connection")

con.provider ="ADsDSOObject"
con.open "Active Directory Provider"

Set Com = CreateObject("ADODB.Command")
set rs=Server.CreateObject("ADODB.RecordSet")

Set Com.ActiveConnection = con
' Querying the User Profile
Com.CommandText ="select physicalDeliveryOfficeName, telephoneNumber,mail, sn, givenName from 'GC://"+ objADsPath +"' where sAMAccountname='"+Uid+"'"
Set rs = Com.Execute

Request any body please help me out ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How Can I use GetInfoEx Method To read Properties From Active Directory xolela ASP 2 12-28-05 12:06 AM
OWA / Active Directory phillips_k Visual Basic 0 02-15-04 01:34 PM
parse error... help? kappler0 PHP 2 01-21-04 04:57 AM
Need Epinions-lite system in PHP & MYSQL wali001 Job Offers & Assistance 4 01-12-04 07:02 AM
[php error] parse error | fatal error xeoHosting PHP 1 01-03-04 09:12 PM


All times are GMT -5. The time now is 10:23 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.