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


ADVERTISEMENT

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

Updating Active Directory Using SQL/LDAP

i mentioned in a previous thread that i've been trying, with varying degrees of success, to access AD fields through the use of a SQL statement and LDAP. The problem i'm facing now is how to update AD using the same method - i've tried the usual SQL update command, but with no luck.

What I need to do is allow the currently logged in user to update specific parts of their AD profile. Finding the username with request.servervariables is simple enough, but whenever I try and write to AD it throws up errors. Does anybody have any experience of this? Is it even possible to update AD using SQL, and if not are there any other methods of doing so?

View Replies View Related

Query Active Directory

how to query active directory from asp for user info? If so do you know of any good tutorials or example pages?

View Replies View Related

Active Directory :: The Attribute Syntax Specified To The Directory Service Is Invalid

I have written a script to update user information in the Active Directory using ADSI. Here is part of it:

Set User = GetObject("LDAP://<GUID=" & GUID & ">")

User.Department = DepartmentName

User.SetInfo

Set User = Nothing

This works fine unless DepartmentName is an empty string ("").

Then I get error 0x8007200B: "The attribute syntax specified to the directory service is invalid."
This happens with all the attributes I have tried, including TelephoneNumber
.
Do I need to delete the value of the attribute instead of setting it to an empty string? If so, how do I do it?

View Replies View Related

Mapping Remote Machine

I was susseesful in mapping remote machine with vbscript. Now I am building the same tool with ASP .I am using the same code but its not working. Below is the portion where I am mapping the drive: Code:

View Replies View Related

Folder On Remote Machine

I am having problems creating a folder on a remote machine. I keep getting a error 70 Permission denied. Of all the samples I have seen, I can't see what I am doing wrong.

Code:

dim dirName
dim machIP
dim folderPath

dirName = "myDir"
machIP = "123.123.123.123"
folderPath = "" & machIP & "c$" & dirName

Set fs=Server.CreateObject("Scripting.FileSystemObject")
if Not fs.FolderExists(folderPath) = true Then
fs.CreateFolder(folderPath)
end if

View Replies View Related

Develop Asp.net On Remote Machine

I've got .Net 2003 installed on my XP Home machine. Since don't(can't) have IIS installed, I've heard you can use a remote machine that has IIS and ..Net to develop an ASP.Net solution on my XP Home machine. What do I have to do to make this happen?

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

ASP Active Directory

I'm trying to connect to the active directory using asp. I'm having problems with logging in, what happens is the username accepted is not the user logon name but the displayname is accpeted heres the code:

View Replies View Related

ASP & Active Directory

Could anyone show me a sample, snippet, code chunk ... etc of how I can get ASP to find the Active Directory username based on a supplied email address?

For example: I want ASP to query active directory and retrieve the AD username for where user email address = 'whatever@whatever.com'

View Replies View Related

ASP To Active Directory

I would like to write an ASP ap that asks for username/password and
validates against the active directory. Any ideas how/where I can do this?
In addition, once these people are logged in I want to be able to send the
to exchange's OWA and just be logged in, no second login/password.

View Replies View Related

Asp And Active Directory

Is there anyway that I can add user to the active directory with asp?

Because I found one code to view information but not to add. Or if you can tell me where to see the command for asp and active Directory.

View Replies View Related

ASP & Active Directory

I would like to check login credentials, ie username and password, from Active Directory via an asp page. This will allow users to login to a restricted area of the website using their windows login and password. I read a thread about it on here, but it just said that it was possible, it didn't say how it was possible.

View Replies View Related

ASP And Active Directory

Is there something that would let me integrate ASP with Active Directory? I have seen a basic ones where it will allow you to create a login page. I am actually looking for something that will allow ASP to check user authentication but also be able to do such things as check which groups the person is in and allow them into certain pages according to their groups.

View Replies View Related

ASP Active Directory

We want to be able to allow our users to update this AD profile and
sepecifically be able to change the address, city and phone number fields
thorough a web page.

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

Emails From Active Directory

I would like users on a web application to be able to select users from active directory and use their email address - in much the same way as Outlook does. How hard is this to do in asp? Would it be easier to do in .net?

I am proficient in asp but have never done this, on the other hand, I am starting to develop my .net skills.

View Replies View Related

Authenticate To Active Directory

I'd like to set up a new web page that I'm writing in ASP so that it requires the users to authenticate using their domain accounts. The domain controller is Windows 2000 Server which is a member of my University's active directory. Does anyone know if this is even possible?

View Replies View Related

Active Directory Login

I just want to know that how can i logged in using active directory login on ASP page also i need to redirect pages according to the GROUPs i.e if user succsesful login than it will redirect pages according to the user GROUPS, if user is in Finance Group then it will redirect to finance page and if its in IT GROUP it wil

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

Getting Infor From Active Directory

How would I go about extracting information from Active Directory using an ASP page so I can display things like the phone number, name,address etc....

View Replies View Related

Access Active Directory

I'm working on a ASP web application which need to use Active Directory as uthentication method. I wonder if I can get some help from you, things like some sample component in VB or some window APIs i can call from asp pageand how to use it to get the username and password info .

View Replies View Related

Updating Active Directory

I'm looking to update some details in Active directory and was wondering how I could go about doing this,I can search and display items but want users to update there own details.If someone could point me in the right direction for some good resources.

View Replies View Related

Pulling Name From Active Directory

we just migrated to Windows Server 2003 and active directory. On our intranet I would like to personalize some of the pages my users hit. Let's say I login as petertom, when I go to my main page.

Is there a way to grab information form the fields in AD after a person authenticates? Is there a timeout, i.e., user logs in at 8:00 AM, but doesn't hit the intranet until 1:00 PM etc?

Eventually I would like people to get to secure areas without needing a login and password, but based on what AU or group they belong to, is this possible as well? Does any of this require changes to be made via IIS? (The intranet is running Win2k server, not Win2003).

View Replies View Related

Authenticate Against Active Directory

I would like to be able to pass a request to IIS to have a user name and password authenticated against my Active Directory Users database. I'm running Server 2003 however my web pages are build using ASP (not .NET).

What I want to do is to open the standard User Name/Password form (I don't know how to do that either) and then make my request and get back a True/False result. There must be a way to do that but I haven't found it after 3 hours of searching the web.

View Replies View Related

Active Directory Integration

I need to be able to integrate an ASP login system to work with active directory. The advice i need is that what access do i need to ask the IT department to grant to integrate the ASP code with Active directory.

View Replies View Related

Verifying Active Directory Authentication

What is a good resource for integrating ASP applications with Active
Directory? I want pages that will allow operations on AD. A prime example is
that I want to have an ASP page that would ask users for their AD password
and verify...

View Replies View Related

Active Directory Error '80070005'

I create an ASP application for Windows 2003 server (Czech) with Exchange 2003. When I want to create new user in Active Directory from my application- this error occurs:

Active Directory error 80070005'
General Access error denied

Web application runs under ADMINISTRATOR account and problematic code is:

Set oOU = GetObject("LDAP://test.test.cz/ou=skup,dc=test,dc=test,dc=cz")
Set oUser = oOU.Create("User", "cn=" & "Test" & " " & "Tester")
oUser.Put "sAMAccountName", "Test13"
oUser.SetInfo

View Replies View Related

Active Directory :: Get All Users Within A Certain Group

Could someone tell me how I can get all users within a certain group from AD using classic ASP?

View Replies View Related

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







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