Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

password change using owa

Status
Not open for further replies.

michaele6

Technical User
Mar 20, 2007
4
GB
hi
i have password change option available for users using owa, and when you click password change the pop ask the following to be filled
domain
account
old password
new password
confirm password

is there a way to either omit the domain option or somehow autofill the domain

any suggestion appreciated

thanks
 
Yes, it can be changed. You will want somebody who know how to user forms in .asp and vbscript.
Location is URL owaserver/iisadmpwd/aexp2b.asp
Physical location on server is C:\Windows\System32\inetsrv\iisadmpwd\aexp2b.asp

If you are running a single domain you can hard code domain = "mydomain.com"

Code:
domain = Request.Form("domain")
	if domain <> "" then
		domain = Server.HTMLEncode(domain)
	else
		posbs = Instr(1, username, "\")
		posat = Instr(1, username, "@")
		if posbs > 0 then
			domain = Left(username, posbs - 1)
			username = Right(username, len(username) - posbs)
		elseif posat > 0 then
			domain = Right(username, len(username) - posat)
			username = Left(username, posat - 1)
		else	
			set nw = Server.CreateObject("WScript.Network")
			domain = nw.UserDomain
		end if

You will also have to remove the code for the Text Imput.
Code:
<td><%=L_Domain_Text%></td><td><input type="text" name="domain" value="
<%
	Response.Write domain

I would recommend making a copy of this file and edit the copy. Keep the copy in the in the path C:\Windows\System32\inetsrv\iisadmpwd. Use a web browser to test form before placing into production (renaming it). Also keep a copy of the original somewhere before putting it in production.
 
hi

hacked the asp and it did the trick
many thanks

micahel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top