Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: Authentication: NT
 Changing the Admin password
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Blade
New Member

66 Posts

Posted - 15 February 2001 :  13:28:35  Show Profile
When using NT authentication, is there a way to change the password of a user if they are an admin without manually editing the database? This being because even though they are an admin and are authenticated through NT, they are still prompted for a user name and password in the admin section of the board. I find that everytime I edit my profile (admin account), I have to go into the database and edit it to put my password back in...

Kal Corp
Average Member

USA
878 Posts

Posted - 15 February 2001 :  14:13:02  Show Profile  Visit Kal Corp's Homepage
I have this too. I think someone posted a fix for this. I'll check.


If not , Iwill create it

Thanks

Go to Top of Page

Blade
New Member

66 Posts

Posted - 16 February 2001 :  09:53:46  Show Profile
I simply changed the entire contents of my ADMIN_LOGIN.ASP file to detect whether the user is an admin or not:


<!--#INCLUDE FILE="config.asp" -->
<!--#INCLUDE FILE="inc_functions.asp" -->
<!--#INCLUDE file="inc_top.asp" -->
<table border="0" width="100%">
<tr>
<td width="33%" align="left" nowrap><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>">
<a href="default.asp"><img src="icon_folder_open.gif" alt="All Forums" height=15 width=15 border="0"> All Forums</a><br>
<img src="icon_blank.gif" height=15 width=15 border="0"><img src="icon_blank.gif" height=15 width=15 border="0"><img src="icon_folder_open_topic.gif" alt="Admin Login" height=15 width=15 border="0"> Admin Login<br>
</font></td>
</tr>
</table>
<font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"><br>
<br>

<% if mlev = 4 then %>
<p align="center"><font face="<% =strDefaultFontFace %>" size="<% =strHeaderFontSize %>">Login was successful!</font></p>
<% Session(strCookieURL & "Approval") = "15916941253" %>
<p align="center"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"><a href="admin_home.asp" target="_top">Click here to Access.</a></font></p>
<meta http-equiv="Refresh" content="2; URL=admin_home.asp">
<!--#INCLUDE file="inc_footer.asp" -->

<% else %>

<center>

<p align="center"><font face="<% =strDefaultFontFace %>" size="<% =strHeaderFontSize %>">You must be an administrator!</font></p>

<p align="center"><font face="<% =strDefaultFontFace %>" size="<% =strHeaderFontSize %>">You are not allowed access.</font></p>

<p align="center"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>">If you think you have reached this message in error, please try again.</font></p>

</center>
<!--#INCLUDE file="inc_footer.asp" -->
<% end if %>
</font>




Edited by - blade on 16 February 2001 21:39:06
Go to Top of Page

Blade
New Member

66 Posts

Posted - 16 February 2001 :  20:08:53  Show Profile
I noticed a permission problem when changing the authentication type from "NT" to "DB", so I changed the following in ADMIN_CONFIG_SYSTEM.ASP:

change:

if (Request.Form("strAuthType") <> strAuthType) and strAuthType = "nt" then
mLev = cint(ChkUser2(Request.Cookies(strUniqueID & "User")("Name"), Request.Cookies(strUniqueID & "User")("Pword")))
if not(mLev = 4 and getMemberNumber(Request.Cookies(strUniqueID & "User")("Name")) = 1) then
Err_Msg = Err_Msg & "<li>Only the Admin user can change the Authentication type of the board</li>"


to:

if (Request.Form("strAuthType") <> strAuthType) and strAuthType = "nt" then
if not(mLev = 4) then
Err_Msg = Err_Msg & "<li>Only the Admin user can change the Authentication type of the board</li>"
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.2 seconds. Powered By: Snitz Forums 2000 Version 3.4.07