We've had an ASP running for about 9 months which returns a full listing of
network users (taken directly from AD), and it has now stopped working with
the following;
Provider Error '80004005'.
If I remove a field called 'userAccountCon trol' from the field list it works
to a certain extent but still fails further down the code with not finding
content ofr the field called 'Name'. I think its very probably a
permissions error, can someone point out the obvious to me please ???
Regards & thanks in anticipation..
KP
' ------------------------ Create Connection to Active
Directory -----------------------------------------
Set objConn = Server.CreateOb ject("ADODB.Con nection")
Set objRS = Server.CreateOb ject("ADODB.Rec ordset")
objConn.Provide r = "ADsDSOObje ct"
strConn = "ADs Provider"
objConn.Open strConn
' ------------------------ Create Active Directory SQL Query
String --------------------------------------
if request.queryst ring("order")=" " then
strQuery = "SELECT name, mail, telephonenumber , homephone, mobile,
postalcode, st, title, info, userAccountCont rol"
strQuery = strquery & "distinguishedN ame FROM 'LDAP://domain.com' WHERE
objectcategory= 'user' and "
strQuery = strquery & " objectClass = 'user' AND msExchHomeServe rName =
'*cn=ATVMAILSVR ' AND name <> 'SystemMailbox* ' "
strQuery = strquery & " AND OU <> 'User' AND NOT
msExchhidefromA ddresslists=TRU E order by name"
else
strQuery = "SELECT name, mail, telephonenumber , homephone, mobile,
postalcode, st, title, info,"
strQuery = strquery & "distinguishedN ame FROM 'LDAP://domain.comWHERE
objectcategory= 'person' and "
strQuery = strquery & " objectClass = 'user' AND msExchHomeServe rName =
'*cn=ATVMAILSVR ' AND name <> 'SystemMailbox* ' "
strQuery = strquery & " AND OU <> 'User' AND NOT
msExchhidefromA ddresslists=TRU E order by " & request.queryst ring("order")
end if
' ------------------------ Open Recordset & populate various
counters ------------------------------------
objRS.Open strQuery, objConn, 1, 1
intRowCount = objrs.recordcou nt
objrs.MoveFirst
' ------------------------ loop through recordset and display
details ------------------------------------ 1 5178
try, just as a test, using a Domain Admin as the IIS user.
--
Curt Christianson
Site & Scripts: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Enigma Webmaster" <in**@enigma-one.com> wrote in message
news:nD******** *******@newsfe1-win.ntli.net... We've had an ASP running for about 9 months which returns a full listing of network users (taken directly from AD), and it has now stopped working with the following;
Provider Error '80004005'.
If I remove a field called 'userAccountCon trol' from the field list it works to a certain extent but still fails further down the code with not finding content ofr the field called 'Name'. I think its very probably a permissions error, can someone point out the obvious to me please ???
Regards & thanks in anticipation..
KP
' ------------------------ Create Connection to Active Directory ----------------------------------------- Set objConn = Server.CreateOb ject("ADODB.Con nection") Set objRS = Server.CreateOb ject("ADODB.Rec ordset") objConn.Provide r = "ADsDSOObje ct" strConn = "ADs Provider" objConn.Open strConn
' ------------------------ Create Active Directory SQL Query String -------------------------------------- if request.queryst ring("order")=" " then strQuery = "SELECT name, mail, telephonenumber , homephone, mobile, postalcode, st, title, info, userAccountCont rol" strQuery = strquery & "distinguishedN ame FROM 'LDAP://domain.com' WHERE objectcategory= 'user' and " strQuery = strquery & " objectClass = 'user' AND msExchHomeServe rName = '*cn=ATVMAILSVR ' AND name <> 'SystemMailbox* ' " strQuery = strquery & " AND OU <> 'User' AND NOT msExchhidefromA ddresslists=TRU E order by name" else strQuery = "SELECT name, mail, telephonenumber , homephone, mobile, postalcode, st, title, info," strQuery = strquery & "distinguishedN ame FROM 'LDAP://domain.comWHERE objectcategory= 'person' and " strQuery = strquery & " objectClass = 'user' AND msExchHomeServe rName = '*cn=ATVMAILSVR ' AND name <> 'SystemMailbox* ' " strQuery = strquery & " AND OU <> 'User' AND NOT msExchhidefromA ddresslists=TRU E order by " & request.queryst ring("order") end if
' ------------------------ Open Recordset & populate various counters ------------------------------------ objRS.Open strQuery, objConn, 1, 1 intRowCount = objrs.recordcou nt objrs.MoveFirst ' ------------------------ loop through recordset and display details ------------------------------------
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Hermes |
last post by:
Hi all,
We have a web page which validates users againt active directory (kinda),
Effectively the code we use will check the user's password and if successful
creates some session's for what access they have in the internal site. We
have noticed though that the query against the LDAP doesnt seem to
disconnect and by doing a netstat -a we get alot of ports with an
ESTABLISHED status on the LDAP server. When this gets to around 200 it...
|
by: James Allan |
last post by:
Hello --
I'm trying to get SQL Server 2000 on a Windows 2000 Server to be able
to query an Active Directory. We've got two domain servers one Win2000
and one Win2003. However, I'm having problems:
I've run the following query to setup the linked server:
sp_addlinkedserver 'ADSI', 'Active Directory Service Interfaces',
'ADSDSOObject', 'adsdatasource'
|
by: jeremy |
last post by:
Hello.
I have an asp.net application that resides on a non-DC / BDC Sharepoint
Server (although it is logged into the domain). The application will perform
lookups based on the current user (integrated auth) to an LDAP server which
requires no login (AuthenticationTypes.None). When I run it, I get the
following ambiguous error:
Security Exception
Description: The application attempted to perform an operation not allowed
|
by: Angelos Karantzalis |
last post by:
Hi y'all ...
I'm a bit puzzled here about .NET class instancing under COM+
Issue 1:
I've a COM+ component, let's call it ... COMDbWrapper that initializes
itself from an xml file.
The data in the file change very rarely, so I would like to keep it in a
single copy in-memory if that's possible.
|
by: Amar |
last post by:
I am trying to connect to my college LDAP directory using ASP.NET. This LDap
does not have security as it returns only user demographic information.
i do not need to bind with a username or credentials.
What i am trying to do is, i am trying to look up all the information for
the user with user id 'testuser'. The following is the Vb.net code for my
aspx page:
Dim oRoot As DirectoryEntry = New...
| |
by: heddy Boubaker |
last post by:
hi, as the subject said I've pb compiling php-4.4.4 and php-5.1.6 with
ldap module activated on linux debian sarge (2.6.8-3-686-smp) :
- for 4.4.4 I've
% /bin/sh /www/src/php-4.4.4/libtool --silent --preserve-dup-deps --mode=compile /www/src/php-4.4.4/meta_ccld -Isapi/cli/
ext/ldap/ldap.lo(.text+0x26a3): In function `zif_ldap_set_option':
: undefined reference to `ber_pvt_opt_on'
collect2: ld returned 1 exit status
|
by: rbukkara |
last post by:
Hi,
I have got the following error while trying to add a user in the LDAP Directory.
javax.naming.NameNotFoundException: ; remaining name 'uid=vassila,ou=People,dc=cs,dc=uno,dc=edu'
I have given all the attributes which are needed, for the user, in the code and also the proper path where the user has to be added. Please have a look at my code
CODE]
// This is a class file which stores all the info required for the user
|
by: zmunoz |
last post by:
I am working on a script using ADSI via COM in PHP. The script works
for the most part when I query a user using the following function:
function passwordExpires($userDN) {
$comLDAP = new COM('LDAP:');
$getUser = $comLDAP->OpenDSObject('LDAP://' . $this->server . '/' .
$userDN, $this->domain . "\\" . $this->user, $this->pass, 1);
$dateParse = date_parse($getUser->passwordLastChanged);
$today = time();
$expDate =...
|
by: Sells, Fred |
last post by:
I'm running python 2.5 (or 2.4) in an XP environment.
I downloaded and installed the .dll's from OpenLDAP-2.4.8+OpenSSL-0.9.8g-Win32.zip and copied the .dll's in c:/windows/system32 as instructed
now I get this error. Is there anyway to avoid building the python_ldap binaries? Apart from being lazy, I've got a secure system policy issue if I start compiling apps. I could give up and just start running in linux, but myxp environment is...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |