LDAP Query Works On Localhost But Not Other Web Server

I am using classic asp and making a connection to LDAP server using SQL code under IIS 5 on my localhost and it works great. I have a form and form fields that pull from active directory.

Now, once I get the web team to deploy these files to the webserver where all users will be able to run this app.(this server is using IIS 6), my form fields show up blank.

For the life of me I cannot see what is wrong or different except the IIS version. Also, I have gotten the IIS logs and they don't tell me anything. Code:

View Replies


ADVERTISEMENT

ASP LDAP Query Working On Localhost But Not Webserver

I am using classic asp and making a
connection to LDAP server using SQL code under IIS 5 on my localhost
and it works great. I have a form and form fields that pull from
active directory. Now, once I get the web team to deploy these files
to the webserver where all users will be able to run this app.(this
server is using IIS 6), my form fields show up blank. For the life of
me I cannot see what is wrong or different except the IIS version.
Also, I have gotten the IIS logs and they don't tell me anything.

View Replies View Related

LDAP Query

The users on my network, log in using a novell login box when they boot up their pc.
When they open their browser, they have to enter the same username and password to log into our intranet.
Is there anyway I can get rid of the login prompt for the browser, and log them in automatically using the initial windows login they entered.
I would like to authenticate users using an LDAP query also.

View Replies View Related

LDAP Query

Can anyone direct me to some simple ASP code samples to do the following?
I'd like to, given a UID, check to see if an individual in a public
directory is part of a given OU.
I've noticed that for a given person there can be several OU's, so I don't
think it'd be possible to select an OU. However, can I select cn where UID
= xxx and OU = xxx and then check to see if it's not null? didn't know whether to put this in here or an LDAP group

View Replies View Related

Query LDAP

I'm trying to get user details using ASP under IIS (Win2000) with the following code:

Set User = GetObject("WinNT://domainname/" & mid(strNTUser,8) & ",user")
strNTUserFullName= User.Fullname

The website this is running under uses Windows Authentication only no anonymous logins and this presumably is why I get the error 'General access denied error' from AD as the logged in user's credentials are not passed to the AD domain controller that is being queried for the users details.

how to I get this to work whilst keeping Windows Authentication?I only need the most basic details about the user so writing LDAP queries and creating recordsets etc seems like overkill and presumably the same problem will occur?

View Replies View Related

Update Query Works In Access, Not In ASP

I have the following query:

Update properties set Last_Change=#8-Mar-2006# Where properties.fdref='h3c000';

which works fine when I run it on my desktop under MS Access, but when I run it as an ASP page, I get the following error message:

[Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1.

I am using the same database bot online and offline so field names etc are exactly the same.

View Replies View Related

LDAP Query Order

I have a page in my Intranet with the contacts of the Active Directory.

My problem is when i want to sort contents. I only can order one field. In the example it is ordring by "Department". but those in same department came sorted by Object USN.
I want them ordered by name after ordered by Department. I tried "order by Department and order by name" but it do not work. Code:

View Replies View Related

LDAP Query For Active Directory From A Remote Machine

I am trying to access user info in a remote Active Directory Server with an ASP application. For testing purpose, I set up a test domain controller (Win2k Server) and installed Active Directory Server.

I am able to retrieve the user info with the program below when I run the program(http://testmachine/test.asp) on the test domain controller machine. However, if I run the program(http://machine2/test.asp) from another machine in the same domain (Windows XP), it returns empty record set. Code:

View Replies View Related

LDAP Query For Active Directory Address Field

I'm trying to retrieve data on all users currently within our active directory system, and although i have had some success there is one field that i still can't extract the values from - postalAddress. I'm using the following code:

View Replies View Related

How Server Side Validation Works

Can someone please explain to me what server side validation is and how this works, also where do you put this, and in which programming language do you write this. Some examples are also welkom.I've never used this but I want to learn how.

View Replies View Related

Accessing LDAP Server

I am trying to access a LDAP server with ASP with no sucess. I can do it with ColdFusion but not ASP. All the examples I have seen so far do not use passwords or userid's. My LDAP server requires password and user credentials. Can anyone point me in the right direction.

View Replies View Related

Non-Microsoft LDAP-server

How I can connect to non-Microsoft LDAP-server and select record from him ? With best regards, Aleksandre Skornitchenko.
IT Dept., Togliatti Branch
MegaFon
E-mail: Join Bytes!
ICQ: 7829547

View Replies View Related

Asp/access Sql Page Works In Xp But Not In Server 2000?

I have a page which works fine testing locally on my win XP PC, using an access database file. When I place it on the server (all code and database file being the same)... it gives an SQL error :

Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E10)
[Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 2

The SQL statement is as follows: Code:

View Replies View Related

Using IIS For LocalHost Testing Server

I trying to run a sample asp web application, using IIS as a localhost testing server. I have created a virual directory called global with path C:/global/asp/. I also have a another website sitting in the default root folder in intpub/wwwroot. then i use localhost my old website home page starts up not my virtual directory site global if I type localhost/global/asp/filename.asp, I get cant find.

What am I doing wrong, what do I have to do to get virtual directory site to run and not the old site in wwwroot folder. I start and stop IIS from the right click from the default web site.

View Replies View Related

Server.MapPath() Localhost

If I run Server.MapPath("/") on my operational Internet server I get, correctly, the physical path to the directory my page is in (d:.......htdocs).

If I run Server.MapPath("/") on my intranet server, my localhost, I get c:inetpubwwwroot, but my webpages are NOT in this folder, they are in c:webtest.

How to I establish the correct physical root on my intranet server?

View Replies View Related

Server.Execute Problem With Localhost

I am having a problem using server.execute on my local machine.

I have set up a virtual directory in IIS call "UltraCamp"

When I use [VBS]server.execute("/scripts/calcenrollment.asp") [/VBS]

it looks for the file in the localhost root instead of the ultracamp root. I can change to[VBS]server.execute("/ultracamp/scripts/calcenrollment.asp") [/VBS] but that is a pain because I have to change it everytime I post to the live site.

What do I need to change to make this work correctly?

View Replies View Related

500 Internal Server Error On Localhost

I get a the "http 500 Internal Server Error" when tying to run any ASP page from localhost. I'm running Xp Pro with IIS 5.O with Frontpage installed. I've checked secutity settings on IIS.

View Replies View Related

Query Works In Access But Not In Asp->access

What is this all about? Generally I run against SQL Server but now I have to use access. The query I want to run is a simple double join

SELECT tblArtists.*,tblGenres.name AS genreName,tblPages.pageId
FROM (tblArtists
INNER JOIN tblGenres ON tblArtists.genreId = tblGenres.genreId)
LEFT JOIN tblPages ON tblArtists.artistId = tblPages.artistId
ORDER BY surName ASC, firstName ASC

Now If I run this question in access against the database it accurateley returns two posts. BUT When I paste the same query into an asp document and runs it with a fileDSN against the same database it returns nothing!? Is this some kind of joke from Microsoft?

View Replies View Related

Using ADO To Query SQL Server

I'm putting this in the ASP section as I think the error is on the ASP side of things. Most of the stuff I've done before has been in Perl so I'm basically winging this ASP stuff!

I'm inserting a row, which works fine and then I'm trying to query the row ID, which is auto incremented (or is an Identity row in Microsoft's terminology.) Unfortunately when I run through the results (I'm looping, even though there should only be one result, as I basically don't know any other way!), I get into an infinite loop and then receive a 'Active Server Pages error 'ASP 0113' Script timed out' error. I've not left out the recordset.MoveNext argument, as you can see: Code:

View Replies View Related

ASP: Implementing Server Side Include Using Query Strings

I have a provider to implement domain name search and another to receive variables from my site and save them on thier site.

PROBLEM
we are using MS ASP scripts on my site.

We want to be able to implement an include file to show the results of the form process from their website.

Currenlty i tried the ASP script below but it fails, complaining of the end if statement, when i remove it, it doesnt show anything. Code:

View Replies View Related

Select Query According To User Input For A WebPage In C#.Net With SQL Server 2000

How to select query according to User Input for a WebPage in C#.Net with SQL Server 2000.I am trying to build a web page in C#.NET with SQL Server 2000 using Visual Web Developer 2005. I want to select and execute the query according to user input.

I have a form which has 2 textboxes which gets start date and end date from the user. Based on start/end date my 1st query runs. Now if user does not enter any start/end date I want to run another query which takes default dates from database(which is in varchar:ex. now()/now()-180) according to logged on user's permisstions.

How to select query ?

View Replies View Related

Asp Site Works

We're moving an asp site onto our fedora redhat server and I am fairly sure that I have installed all the proper modules to get apache to read the site properly, but when I bring the site up in Firefox it displays the actual asp code as text. I would assume this means that something is wrong somewhere along the way, and yet when I display the page in ie the site shows up fine? How could this happen?

Looking at it in firefox displays code and ie displays the site (with some errors, but it still displays)I'm a php/mysql personally so I have no experience with this, but as far as I can tell we have apache-asp support installed properly and the site should be showing up.

View Replies View Related

Web Servers Works With ASP

I have built a site completely with ASP.I am searching for free web host which works with ASP.give me a list web links of fre asp hosters.and i have used drive letters to access my database, how can i remove those drive letters (ex. "c:m.mdb").

View Replies View Related

IP Works FTP Component

I am trying use the IP works ftp component to send a directory full of files to an ftp server, and all that is in the help for this is the methods with no example code for anything other than how to list a directory which works fine! But when it comes to uploading files I seem to not be having any success.

View Replies View Related

Code Works

I am retrieving data from database through asp code.It works fine for IE 6.0 browser.The same code does'nt work for Mozilla Browser.what are the changes that i need to do to make the code work for mozilla browser.

View Replies View Related

Ldap And ASP

I am trying to use windows (nt/xp) authenication for a website which can be accessed from internet as well as intranet. Our windows authentication uses active directory(win 2kservers). On login page for website, I have get username from windows and then ask for entering the password again. Send this information to active directory and query active directory if user is employee or contractor. if Employee, then user can access the contents on web site other wise user gets a messge saying insuffcient priviledges. I would appreciate if some one could send me code snippets.

View Replies View Related

LDAP

Im trying to run an LDAP script from an ASP page. I know very little about LDAP, and just based on some sample code I found on the internet, I got the following:


<%
Set Conn=CreateObject("ADODB.Connection")
Conn.Provider="ADSDSOObject"
Conn.Open("ADs Provider")
Set rs=Conn.Execute("ldifde -f UsersFile.ldf -p Subtree -r
"(&(objectClass=user)(showinaddressbook=CN=Global Address
List,OU=Microsoft Exchange,OU=CMC,OU=D-corp,OU=Organizations,DC=d-corp,DC=corp))"")
Do While Not rs.EOF
ReturnValue=rs.Fields(0)
Response.Write ReturnValue&"<BR>"
%>

Obviously, it does not work !! If someone can help me with what direction I should be proceeding in to change the code so that it works?

Is it because I havent specified the server name or something, or is it because I cant execute an LDAP command like ldifde in such a straightforward manner and I need to change that?

View Replies View Related

Mail Only Works When Its Within My Own Domain Name?

I Finally Got this admin_SubscribedCust_email_processor.asp working so it sends emails to everyone in my database but ONLY WHEN THE EMAIL IS something @homeland.am so within the network... anything else it came with error message.. CDO.Message.1 error '80040213' is this out of my hands, as it is the ipowerweb server related or can i do something to fix this problem and how?? please help asap as i have been working on this problem for a while now and i also have another email admin section on my site that the admin can send emails to the customers on the database manually and it also is the same problem!

View Replies View Related

CDONTS Works Intermitantly

CDONTS works with all sites hosted on my test server bar one (which surely
rules out a miscomputation of the Default SMTP server in IIS). I have tried
uploading the file with make up the site in which CDONTS to one of the IIS
"sites" which is known to work with CDONTS, and still, no email received.
The bad mail dir gets three files each time, the error is:

Unable to deliver this message because the follow error was encountered:
"Error is processing file in pickup directory.".

The specific error code was 0xC00402CE.

The solutions offered in various responses I found after a quick search all
assumed that the SMTP service was configured wrong, but how can mine be when
other sites can use the CDONTS/SMTP components fine. Code:

View Replies View Related

LDAP Problems

I am encountering an issue attempting to log into the LDAP. Here is the code:

Dim objBase, objContainer, objUser, strLDAPPath, strErrNum, iCounter

strLDAPPath = "LDAP://xxxx.xxxxxx.xxx.com:389/ou=Ebenefits, o=xxxxxx.xxx.com"

Set objBase = GetObject("LDAP:")
Set objContainer = objBase.OpenDSObject(strLDAPPath, "uid=HRISAdmin,ou=Directory Administrators,o=xxxxxx.xxx.com", "password", 0)
Set objUser = objContainer.GetObject("user", "uid=" & strUID)

The Set objUser line of code returns the following error:
Error -2147463164 An unknown directory object was requested

Any thoughts?

View Replies View Related

Accessing LDAP With ASP

I am trying to access ldap with standard ASP. The code works on the web server where I am developing but any other PC on network gets the following error:

Providererror '80040e37'

Table does not exist. /training/index.asp, line 41

Does anyone have any experience with this??

View Replies View Related

LDAP Field Name

I have a page which grabs data from Active Users which was working great last week. All of a sudden my code doesn't like some of the field names. For the purpose of keeping this short let's just say it's one field 'Department' Code:

Dim department
MyFullName = "FRED BLOGGS"
SQLStmt = "SELECT name,physicaldeliveryofficename,department " & _
"FROM 'LDAP://lvp-ad.myserver.wan' " & _
"WHERE objectClass = 'user' AND name='" & MyFullName &"'"
Set Conn = CreateObject("ADODB.Connection")
Conn.Provider = "ADSDSOObject"
Conn.Open "ADs Provider"
Set rs = Conn.Execute(SQLStmt)
So, if i remove department all works fine. Any help appreciated.

View Replies View Related

Can LDAP API Be Used Either From VB Or VBScript ?

We need to use LDAP in conjunction with our ASP pages. Are there LDAP API
that can be used either from VB or VBScript ? Where can I find sample codes
for it ?

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved