 |
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
|
|
|

June 14th, 2007, 01:25 AM
|
Friend of Wrox
|
|
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
|
|
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
|

June 14th, 2007, 01:36 AM
|
Friend of Wrox
|
|
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
|
|
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
|

June 14th, 2007, 01:52 AM
|
Friend of Wrox
|
|
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
|
|
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
|

June 14th, 2007, 09:42 AM
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 518
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|

June 14th, 2007, 06:36 PM
|
Friend of Wrox
|
|
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
|
|
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
|

June 14th, 2007, 07:19 PM
|
Friend of Wrox
|
|
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
|
|
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
|

June 15th, 2007, 09:36 AM
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 518
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|

June 17th, 2007, 08:08 PM
|
Friend of Wrox
|
|
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
|
|
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
|

June 20th, 2007, 12:17 AM
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 518
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
|
 |