Wrox Programmer Forums
|
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 14th, 2007, 01:25 AM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

Sorry - just placing the periods (domain = "xx.xx.xx.xx") may have not made it clear enough. The domain variable is an IP address:
Change:
domain = "Parsons"
To something like:
domain = "10.61.20.21" (of course place your IP there)

It really does work a treat, good luck - i am in Australia, its almost home time


Wind is your friend
Matt
 
Old June 14th, 2007, 01:36 AM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

Additionaly - Appart from the IP mis-understanding, can you notice the difference between:

domain = "xx.xx.xx.xx"
user = "yourDomain\userName"
password = "usersPassword"

And (you alterations)?

domain = Parsons
user = p0012134
password = mmpsss125

The user variable needs to be domain\username. In your case going by your post:
user = Parsons\p0012134

Now you should be in business

Wind is your friend
Matt
 
Old June 14th, 2007, 01:52 AM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

Thought best to point out before I go home - All three of these values are strings, you did not surround the values in double quotes (sorry, neither did I in my last post) this is neccessary

Wind is your friend
Matt
 
Old June 14th, 2007, 09:42 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 518
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for your response.

I try with out quotation

domain = domainname
user = parsons\p0012134
password = mmpsss125

this give this error

Error Type:
Microsoft VBScript runtime (0x800A000B)
Division by zero
/dcil/logon.asp, line 4

When I use with quotaion

domain = "domainname"
user = "parsons\p0012134"
password = 'mmpsss125"

it give this error

Error Type:
Provider (0x80004005)
Unspecified error
/dcil/logon.asp, line 27

Set getInfo = cmd.Execute // line 27

I also try ip address with quotation
it give following error

Error Type:
Provider (0x80040E37)
Table does not exist.
/dcil/logon.asp, line 20

Set rs = cmd.Execute // line 20

when I try ip address without quotation
it give following error

Error Type:
Microsoft VBScript compilation (0x800A0401)
Expected end of statement
/dcil/logon3.asp, line 3, column 17

it is give some errors, when we use three variables with or without quotation.
Your coding is very nice. we would not understand where is
the problem.

regards
Mateen
 
Old June 14th, 2007, 06:36 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

We need to test your user credentials, domain and ip address.

1..Can you ping you IP address? If so proceed. If not your IP address is wrong or in-accessable from your machine (which needs to be on the same domain). if this is the case the code will not work.

2..Next check your user name, domain name and password. To do this run the code in the 5th post of this thread (Posted by mat41 - 03/01/2007 : 3:04:29 PM) - Do you get a result? If so proceed. if not your user name, password and or domain name is incorrect SYNTAX or CASE. if this is the case the code will not work.

3..If you passed on the above points the code will work.

In reference to your last post. Here is my first three lines with only the password changed:
   domain = "10.61.20.21"
   user = "e8Group\website"
   password = "aPassword"

BTW : your 'Table does not exist' error is getting very close. Ask your network admin if you have an abnormal exchange set up. The code we speak of I have seen run in several different domains. Are you in a 2003 exchnage environment.

Going through the steps above will determine if your three values are correct and validate, this is a must - Good luck

Wind is your friend
Matt
 
Old June 14th, 2007, 07:19 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

Any body else care to test the potability of this code? If so please run the code in the seventh post (Posted - 06/13/2007 : 11:02:01 AM)

NOTE : only three changes are required. Populate the first three variables.

Wind is your friend
Matt
 
Old June 15th, 2007, 03:52 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

I tried the code from the 7th post, changed the three fields and it worked perfectly....

Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.
 
Old June 15th, 2007, 09:36 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 518
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for your response and support to help us.
we are using 2003 exchange envirnment / server.
I try this

domain = "135.165.221.1"
user = "domainnmae\p0012134"
password = "mmpsss125"

give permission denied error.

I realy appreciate your time and support to help us.
definately above coding worked perfectly with other server.
it means that our Server have some extra security.
I am not trying to break security, I want to get users information
which user already have permission to access the server.

Thnaks you very much.
regards
Mateen
 
Old June 17th, 2007, 08:08 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

Thanking you Imar.

mateenmohd - As you can see, the code works. You did not respond to my post which went through step 1, step 2, etc...

Cant help you until you address this post...

Wind is your friend
Matt
 
Old June 20th, 2007, 12:17 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 518
Thanks: 0
Thanked 0 Times in 0 Posts
Default

sorry for that.

Post 1......

I ping the IP addresses.
Default get way IP is NOT Pinning. it give "request time out" message

DNS SERVER, DHCP SERVER and Primary Dns Suffix is Pinning,

Post 2......

I check my username, password and dominname is correct.

Thanks and regards
Mateen








Similar Threads
Thread Thread Starter Forum Replies Last Post
Add existing AD user to AD group via ADSI? thiazi Classic ASP Basics 0 August 24th, 2007 09:27 PM
Data Bind ComboBox to display the List Bjay Pro VB Databases 0 July 29th, 2007 02:57 PM
Simple LDAP Query to AD (without password) jwadew .NET Framework 2.0 1 March 1st, 2007 12:22 PM
can we bind datagrid and dropdown list rakeshgv SQL Server 2000 0 August 21st, 2006 02:13 AM
LDAP bmains ASP.NET 1.0 and 1.1 Professional 0 May 26th, 2004 07:47 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.