ADSI Alternate Credentials Not Working...

I have a set of web pages on an AD-authenticated web site that are
supposed to allow users to modify their own AD account attributes,
limited of course to things like their email address, URL, etc. I was
hoping to connect to LDAP using secure authentication as described on
a few tech web pages, and the connection works fine but when it's time
to commit the changes with .SetInfo, the script fails with: Code:

View Replies


ADVERTISEMENT

Login Credentials

We have two applications say A and B and both are deployed on different servers. If user has to access B application then user has to login in A application and then user will be redirected to B.It means sharing session or cookies between two application.
How can we achieve that?One way I know is storing session details in db and retrieving those details from DB.

View Replies View Related

Authentication Credentials Server

The site is configured for anonymous access. One area is configured with basic authentication. When the user clicks on a menu item they will request an .asp file in
the anonymous part of the site that will redirect or trasfer them to the secured part. Along with this request I would like to pass the necessary username and password.

Using:

Response.Redirect(http://username:password@website/asp/index.asp)

doesnt work as the credentials are lost

Using:

Server.transfer doesnt work either.

View Replies View Related

Alternate Database

I found one website say that it will auto alternate the position of advertisements for every 5 minute. My question is how can they do that.If we want to change database like this we have to use internet explorer to call asp script in client side.

Does the webmaster of this website always open that asp page and make it runs all the time?Or can we always 24 Hrs. run the asp script on the Server not Client?

View Replies View Related

Alternate Methods Of Getting Last URL

Using HTTP_REFERER I cannot capture the URL when the link is made via a
button:

<input type="button" name="Continue" value="Continue Shopping"
onclick="ContinueShopping('http://mysite/supertest.asp');">

I do not control the script above, it is on an e-commerce site that is very
generic, meant for many users - and is generated by their server code. I
want to capture the URL and with an if/then redirect if the last place
visited was the checkout site.

I need an alternate method of URL capture, rather than HTTP_REFERER.

View Replies View Related

Alternate Row Colors

Attached is my code. Its working fine and produces great results but all the rows are in the same color background (unless mouse-overed).

What would be interesting to see if I can get alternative colors working here...
Can anyone dig in the code (maybe re-juggle) and help me with alternate row colors?

First Row to be #FFFFCC
Second Row to be #CCCC99 when not mouseovered

View Replies View Related

Alternate Colors In Tables

I am putting the results from a database in a table using ASP. How can I get alternate colors in each row. (i.e. first row white, second grey, third white, forth grey, etc.)

View Replies View Related

Mod_rewrite Or An Alternate Solution

I am in need of something like mod_rewrite or an alternate solution.

I have a client, who's website is all HTML files (200+ files) and was previously password protected by javascript only. Anyway, what I need to do is password protect the site using a better solution, which would be a server side scripting obviously.

I am familiar with apache's mod_rewrite and PHP, which would make this problem easy to solve by simply passing the HTML file to a php file, then after neccessary security checks, pass the requested html back to the browser..

The only problem is that its on an ASP server and I have no knowledge of ASP. I am not even 100% positive what kind of server it is, I just know that .asp files work in it and .php does not.

Anyone know of something like mod_rewrite for ASP or an alternate solution that would work in my situation?

View Replies View Related

Alternate For Scripting.FileSystemObject

In my application I need to read the lines from the text file. I use the following script to do that.It doesn't seem to work because of the Norton Anti virus script blocking. I cannot do anything to Norton so I want to find the alternative way to read the lines from the text file. Quote:

Dim objFSO, objTextFile
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objTextFile = objFSO.OpenTextFile(Server.MapPath("ProgrammeDetails"),1,false)
Do While Not objTextFile.AtEndOfStream
Response.Write objTextFile.ReadLine & "<BR>" & vbCrLf
Loop
objTextFile.Close
Set objTextFile = Nothing
Set objFSO = Nothing

View Replies View Related

Table Alternate Color

how to have table alternate color everytime im using for and next statement..? example:

Code:

<%

for a = 1 to 10

'write td here with alternate color..

next

%>

View Replies View Related

Display Alternate Recordset

Example:

Table: FRUIT
column1:
apple
bananas
grapes

column2:
I like apples.
I like bananas.
I like grapes.

I'm trying to have it where the choices from column1 are provided on the form, and based on the what was chosen on the form the corresponding choices from column2 are display on the page.

View Replies View Related

Alternate Text For Empty Recordsets

So I have a layer with a repeating table displaying the results of a recordset that are associated with the record being displayed behind the layer in a table. The problem is when there is no record to display it looks weird there. I'm trying to get it so that when that recordset is empty it puts an alternate text in that spot saying no records were found. I tried to get it done by throwing a layer on top of the existing layer whenever the recordset is null. The problem is the code I'm doing it with won't let me have quote marks, which are required for anything more complicated than basic text. Anyone have suggestions? Here is the code I'm using: ...

View Replies View Related

Alternate Back/Forward Buttons

I have a fullscreen page which needs to incorporate a forward, back, and close button. I have this working fine but after a review, people suggested that the foward and back buttons not be active if they do nothing.

In other words they want them to function exactly like a standard browser's forward and back button. When you open a page in a new window, the back button is grayed out until you move to another page. The forward button is grayed out until you move back a page.

Can this be done?I need to place a grayed out image if there is no back history or forward history. Otherwise, I need an active image with the back and foward action.

View Replies View Related

Show Alternate Index Pages

I am going to need to offer alternate index pages for each user that visits the site. So, I would have index1.asp and index2.asp. User 1 gets index1, user2 gets index2, user 3 gets index1, user 4 gets index2 and so on. how to do this?

View Replies View Related

Alternate Stlyes For Recordset Results

Does anyone know of any easy way to have shading on alternative rows in a table that loops through the rows in a recordset?

View Replies View Related

Transaction Aborts On Alternate Identical Attempts

I have a page that uploads an xml file and reads it into a SQL database. The
page is transactional and aborts if there are any anomalies in the xml.

My problem is that the if I repeat an identical import the transaction
succeeds the first time and then fails the next time. This pattern continues
with subsequent repeats. I have removed all of the ObjectContext.setAbort()
calls but still the onTransactionAbort() sub is called.

View Replies View Related

Asp Adsi

I've got the servervariable("logon_user") which contatins
domainnameusername.

How can I look up this users telephonenumber and groupmembership in AD in
the forest. (the forest contains 15 different domains)

View Replies View Related

Using ADSI Or WMI

we are developing an intranet application(web based)which needs to detect the logged in user ID of the user hitting the website.the intranet is huge and based on win2k active directory(around 20-30 different domains)with 25K+ users.i dont want to use "NT challenge response" for this pupose.

I am exploring ways using ADSI and WMI to query the Active directory by using the IP address in the incoming web request and trying to figure out the user ID logged into that machine how is it possible?

View Replies View Related

ADSI And ASP IIS

This is ASP and ASDI I think or just ASDI.. Not quite sure...BUt i have a script that will create a site in IIS 6.0 the code is:

set objRoot = objNew.Create ("IISWebVirtualDir", "Root")
objRoot.Path = "z:inetpubwwwroot" & UserName
objRoot.SetInfo

But instead of the absolute I want to set it up for a share on another computer with the path jotts2cinetpubwwwroot & userName . With the login Credentals of username admin password admin <<Just example. If everyone is like eh'. Free hosting to the person that figures it out.

View Replies View Related

ADSI

I have found some code that authenticates users agains a domain using ADSI.
I then redirect to another page and pass the username they have entered as a
string. However, it would be nice to also get their full name from Active
Directory once authenticated. Can anyone suggest how I may modify this code
to achieve this? I would also like to pass their full name to the next page
as a string. The code I found: Code:

View Replies View Related

ADSI Permissions

I know this isn't the best group to ask this in - but I also know a lot of
you have experience with this kind of stuff
I'm going to be creating a site where customers will be able to set up their
own sub-site (ie. www.mysite.com/theirsubsite). I'll need to be able to
create virtual directories on-the-fly, so I plan on using ADSI to accomplish
this. My question is - what are my options when it comes to permissions?
Will I need to give the IUSR account admin permissions to create these
directories, or is there some way to impersonate an admin account on the
script creating the directories? Has anyone dealt with this before?

View Replies View Related

ADSI Question

I use the following ASP code to access Active Directory's property:

Dim objUser
Set objUser = GetObject("WinNT://myDomain/UserId")

I can get objUser.FullName. But when I try to get objUser.Division, there
occurs an error. Can you tell me how to get objUser.Division?

View Replies View Related

ADSI Authentication

Has anyone ever experienced any problems authenticating with an ADSI application where after so long it stops responding. I can not track down what is causing the problem. I have a login page that uses the following code. This is running on a windows 2003 domain controller currently. If I put it on a windows 2000 member server I get this error way more often.

Dim oADsObject
Set oADsObject = GetObject(strADsPath)
Dim strADsNamespace
Dim oADsNamespace
strADsNamespace = left(strADsPath, instr(strADsPath, ":"))
set oADsNamespace = GetObject(strADsNamespace)
Set oADsObject = oADsNamespace.OpenDSObject(strADsPath, strUserName, strPassword, 1)

It authenticates fine, but after so long the login page stops working. If I restart the application pool the page starts to work again. I have a volume of about 500-700 users authenticated at any given time. Should I be authenticating a different way?

View Replies View Related

ADSI Caching In ASP

how (or if it's even possible) to cache the results of an ADSI call in asp for a longer period of time. Basically what I am doing is I have a website that loads the 'full
name' of the user that logs into it. Once the user full nam ehas been retreived (using adsi) the user can reload the page and it appears to just check a cached version of the request (since the page loads very fast).

If however the user waits a bit longer (maybe 5 min) and reloads the page it will take upto 4 secs to load the page (since the adsi call is being resubmitted). Is there anyway to increase the length of time that adsi info is cached?

View Replies View Related

Intergrating ADSI And LDAP Using ASP

how to add, remove,update user from ADS using ASP..all web has loaded with ASP.NET but i need help in just ASP.

I need full help what settings i need to make on my webserver as i wana remove user from ADS. How to write code in ASP to interact with ADS.

View Replies View Related

Forcing Authentication With ADSI / ASP

First the brief: I'm currently developing an intranet at work. We have approximately 3000 users and they keep forgetting their passwords. We have 3 Tech-Support guys who keep having to reset them. The idea was to build a function in to the intranet to allow department heads to be able to reset other users passwords via asp.

All well and good. After a fair bit of reading, I've acquainted myself with the basics of talking to Active Directory and retrieving various objects, properties and values.

My problem is that when I try to update any of the objects (i'm focusing on the .description property at the moment 'cos when I break it - that's not gonna matter so much) But when I try and SetInfo, I get a General Access Error. My ServerVariables("LOGON_NAME") is empty. I was wondering if there was a way to force an asp page to run as the server administrator 'cos obviously when department heads login, we don't want all of them to be AD Admins. All they should be able to do is run my script to reset a password.

I'm not actually the server admin, and don't really know the specifics of IIS, but can I just tell it to run specific scripts as domainadmin? Or can I pass something in the asp headers to force it to authenticate as admin?

View Replies View Related

Accessing ADSI Information

In the intranet system I'm building I need to draw information about Staff and integrate it into Department pages, and make it accessible via querystrings (so users can search for names). I've asked my IT department how to do this and they basically said "ask the internet"

So, if I want to access such information, where do I start? I cant find any tutorials that answer my questions, and feel a bit out of my depth regarding what I'm even meant to be asking. So basically... help! What's should be my plan of action!

I need to :

A) draw names, phone numbers, email addresses to show on relevant department pages.

B) Make a facility to search staff names to bring up similar information.

View Replies View Related

Adsi IIS And Active Directory Through ASP

I have a script that I have set up to display users and their account status in an asp page, using adsi, then the web viewer can enable and disable accounts using this page. The problem I have is the anonymous user that IIS logs in with does not have the privileges to change accounts etc for active directory.

So, I made my server into an SSL server and made it ask for credentials using basic authentication. All works well for administrator as when the admin username and password are used, the script then runs with admin rights.

(as this is only a test server I can mess with all security etc before wrecking the real server!!) I delegated control to an OU that I wish to control with ASP and went and logged in as one of the users that was delegated control, but that says the script does not have the rights.

So, in effect, the script will not work unless I put in the admin username and passwords. I even delegated control to one user rather than a group but that still don't work. Any ideas please? Is it IIS, AD or ASP that is at fault?

View Replies View Related

ADSI Users And Passwords

I am using the ADSI objects to retrieve groups and users informations. If possible, how can I retrieve the user password? I've search in Microsoft.com but I find only the SetPassword function (that of course changes the user password).

View Replies View Related

ADSI Remote Access

I'm trying to access the ADSI data on a remote machine in my network usng ASP and the GetObject("IIS://...") call, but I keep getting an "Access Denied" message. It works perfectly on the localhost. Did anyone pass by this problem?

View Replies View Related

Import Data From Adsi

I want to be able to import data from active directory using an asp page. The problem is that i don't want to provide any username or login, i want the system to identify the logged user.

the script is runing fine if i provide the username and the password in the script but when i delete them i receive this error messahe : Providererror '80040e37' - Table does not exist Code:

View Replies View Related

Script For Listing All Websites In IIS Using ADSI

I'd like to be able to list IIS websites and information in a web page
(presumably using ADSI). Similar to the list you get in the MMC plug-in.
Does anyone have a simple script I could start with? I'm only interested in
reading info at the moment.

View Replies View Related

Accessing AD Using ADSI LDAP Provider In ASP

I'd like to get some user account properties using .asp script. When I try
to use ADSI WINNT provider it works fine except that I apparently cannot
access some properties such as objUser.managedObjects. I have this simple
code:

<%
Set objUser = GetObject("LDAP://CN=Users,CN=FisrtName
LastName,DC=MyDomain,DC=com")
For Each strValue in objUser.managedObjects
Response.Write "This: " & strValue & "<br>"
Next
%>

As a VBS script it works fine but as an ASP page I cannot get the object
initialized. Is it problem with syntax or something else? I'd like to avoid
using .NET Framework and ADO connection as well if possible. All I really
need is to get list of managedObjects.

View Replies View Related







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