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.
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:
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.
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
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?
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:
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:
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:
Microsoft OLE DB Provider for ODBC Drivers error '80004005' [Microsoft][ODBC Microsoft Access Driver] Operation must use an updateable query. It points to the "set rs2=db2.execute(sql)" line
The sql statement looks like this: Insert into tblInCart(user, item_number, qty, price, description, taxcode) Values('EXMPLE', '100BLUERASP', 1, 3.99, 'MIX COCKTAIL BLUE RASP', 'N')
The user, item_number, description, and taxcode fields are text, the qty field is integer, and the price field is currency. The rs2 recordset was previously used for a select query, which works fine, but it is closed before this happens.
I am currently working on a small website which gives an up to date current count on how many people are available are certain time slots for different areas, this is run of a Microsoft Access Database Backend.
My index script will display all areas and times and then display a link to a form which deducts 1 from the current count. Code:
i already setup my own webserver running under win xp prof.. i know that it can only accomodate 10 people at a time.. my questions are the following 1. what OS should i use to accomodate 200 to 500 people at the same time? 2. what should i use MsSql or MYSql? 3. What firewall, virus protection softwares should i use?
Just moved my old webpages to another webserver and now I get this error.
Microsoft OLE DB Provider for ODBC Driverserror '80040e14'
[Microsoft][ODBC Microsoft Access Driver] Unknown /skema/skemaunderviser.asp, line 79
Code around line 79 ---------------- set rsSidstOpdateret = server.createobject("adodb.recordset") set rsWeek = server.createobject("adodb.recordset") SQLSidstOpdateret = "SELECT * FROM TblDagsDato" rsSidstOpdateret.open SQLSidstOpdateret, conn, 1,1 SQLGetWeek = "SELECT * FROM TblUger ORDER BY STARTDATO" rsWeek.open SQLGetWeek, conn, 3,3 (LINE 79)
I need to create a new application in our test server. I am using VID for that purpose. In order to set up the project in VID, it asks me 'which server you want to use'. However, I do not have the name of the test server. Is there any way to configure the name of the server here? I have full rights to the server directory and is mapped on my machine as G drive.
Is it possible to create a script that can check the availability of an ip address of the primary site and then redirect it according to its conditions?
I am using windows 2000 server with IIS already install. I have copied test.asp file to wwwroot directory and tried to run it but it did not work ..and i gave me this error msg.
http://localhost/test.asp or http://127.0.0.1/test.asp or http://my_server_name_here/test.asp
The page cannot be displayed There is a problem with the page you are trying to reach and it cannot be displayed. HTTP 500 - Internal server error Internet Explorer
I have even tried to run the iisstart.asp and localstart.asp which already exist at wwroot directory when IIS is installed.However, it still could not work.
Does anyone know why ? I how do i know that the webserver and ASP engine is working properly.
I've just developed an asp.net website with SQL Server 2000 database. I wish to host it on my own pc. My computer specs are:
AMD 64 3500+ 1G DDR RAM 250G HDD 18MB Buffer ASUS A8V Delux MB Windows 2003
I was going to install IIS as webserver.what other software do i need and what else i have to set? for sure i have to buy a domain name and redirect it to my ip address.
I know I have seen a script on here before that would tell what services are installed on a webserver. We have a an old form that sends via CDONTS and the new webserver is running 2003.
I know they could install the CDONTS but it takes them too long to get back to us and I'm sure they wouldn't want to install it. Could some one possibly point me out to the script so I can find out what to use to send the form?
i am having this problem with my webserver. everytime i run an asp application that will display pictures, my server will lock up. i used to this it was due to the asp itself, but whenever i run asp apps that display pics, it works fine.
this only happens when i access my websites from my personal computer within my network. whenever i access the sites from outsite my network, it runs fine. is this a problem due to my server or is it because of the data that flows through my network?? any thoughts?
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.
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?
If i am using ASP to extract data from an excel file, does excel definitely have to be installed on the web server? The file will be located on a separate folder away from the web server.
how/if I can update records within a Windows hosted Access MDB file directly as I can on Unix based webhosting systems with phpMyAdmin on MySQL databases.
I have an app written in ASP that uses an MDB, that I am currently testing out and each time I want to update the MDB I need to amend my local copy then re-upload it. how?
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
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.
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 ?
Is it a way I can protect my documents and images on a webserver without having direct access to administrate the webserver.
When I make an asp page I protect the information pulised on this page easy. But if I link to some images and pdf files on my site, these are not protected. If a person get the url to this image or file thei can easy download it.
One way to protect these files is to store them in a database, but is there another way to protect them.
Can I for example password protect a folder where I can put all my files and images? Here I mean password protect a folder without having direct access to the webserver.
How to call a sun one webserver plugin from. I want to call NSAPI SAFs from a asp page. I need a example that how to call SAFs from a client browser....
I am test developing an internal webserver, on Windows XP, and IIS 5.1, with ASP and MySQL.
One specific page is created from user input and database records in previous pages and presents a page with customised data and a webform. It then takes input from the form and session variables and passes these to an vb exe in the the wwwroot using the from
http://localhost/example.exe?testparameters. The vb exe takes the command line parameter input and does its thing and it all works, but I am aware this is a very insecure way of doing this and I implemented this only as a quick workaround so I could test implement it all then refine it for deployment.
My question is, what is the best way for input to be passed from a web form to an vb executable for it to do its thing. The exe will eventually preferably run as a service, or at least all ways be active on the server, and not starting for every request then ending, as I was hoping to allow for sorting and queueing of requests passed to the exe, before they are executed. Code:
Ive build an asp website which works on my local machine and also works when i upload it to other web spaces, but when i upload to one web hosting space - it doesnt (which also happens to be where the client wants it to be).
There are other asp sites running from that location too - which just puzzles me. Would it be something to do with that i use dsn less connections and the other ones use dsn?
I am creating an asp application which is essentially a file management app. I am trying to get my head around a technically issue wonder if someone can offer some help.
I want to be able to force the download of the files are attached to a particular record. The code which i use to force the download is:
i am currently having terrible problems with settings the permissions on my ASP application.
I currently have a ASP application that i currently read the data of what are in the folder on my webserver. ASP performs functions like a count of how many files are in the folder.
My problem is this; my appilcation will only work if i have the permissions on each folder with SERVERNAMEUSERS. Everybody is on this list, and i only want a select number of users to have access to this. If i get rid of the SERVERNAMEUSERS from my application and put my DOMAINUSERNAME in (with Administrator access), it comes up with Access Denied.
Is there a way that i could get around this, even with a bit of code in my application to authentic the users i want to have access.