Author |
Topic |
LeslieS
Starting Member
33 Posts |
Posted - 30 May 2001 : 07:53:34
|
Hi, I have enabled NT Auto logon and recieve the error '800401e4' as per sumo's earlier post. I have applied the fixes and can get the forum to run OK on PWS, but not on NT 4.0 Any Ideas ?
Les
|
|
Jan.F
Starting Member
Norway
3 Posts |
Posted - 04 June 2001 : 14:59:48
|
Exactly same thing as happened to me just now ... error '800401e4' Invalid syntax
/forums/inc_functions.asp, line 1238
Line 1238 reads Set strNTUserInfo = GetObject("WinNT://"+strNTUser)
I've tried other variants suggested: 'Set strNTUserInfo = GetObject("WinNT://"+replace(strNTUser,"\","/")) 'Set strNTUserInfo = GetObject("WinNT://<servername>/"+strNTUser)
My Problem is that the Forum is not working for the moment!! And I'm not able to revert the changes back to db-authorization. |
|
|
LeslieS
Starting Member
33 Posts |
Posted - 05 June 2001 : 08:25:33
|
Jan,
I found the only remedy was to reload the application from the zip file again. I have had to do this maybe 10 times in trying to get the auto logon working (still doesn't).
Les
|
|
|
LeslieS
Starting Member
33 Posts |
|
mclek
New Member
Australia
50 Posts |
Posted - 17 June 2001 : 23:56:04
|
Leslie,
I am experiencing the same symptoms as you were.
I must be missing something ... my server runs Windows NT Server 4.0 and IIS. I can't see a download of ADSI 2.5 for NT Server.
What did you use?
Thanks, Kym.
|
|
|
Rebel without Applause
Starting Member
Netherlands
12 Posts |
Posted - 18 June 2001 : 04:04:35
|
I have the same problem, even the update of the ADSI didn''t help in my case. Perhaps it works for you. You should choose the X86 version.
|
|
|
LeslieS
Starting Member
33 Posts |
|
mclek
New Member
Australia
50 Posts |
Posted - 21 June 2001 : 01:16:03
|
Thanks for your help guys. I'm still not convinced that the ADSI version will solve my problems and am hesitant to load it onto our server until I am sure of its benefits.
Could you clear up exactly what the NT auto logon option provides? From what I've observed, once NT authentication is enabled, once users are registered they are automatically logged on to when they access the forum site. So therefore what does the auto logon feature provide above this? Does it mean that they aren't required to register?
Thanks.
|
|
|
LeslieS
Starting Member
33 Posts |
Posted - 21 June 2001 : 10:50:46
|
Kym, Using the Auto logon feature means that individual users do not have to register. Saves all the hassle of registration on an intranet site.
Regards, Les
|
|
|
mclek
New Member
Australia
50 Posts |
Posted - 21 June 2001 : 19:37:46
|
Excellent - that clears it up! That certainly would be a handy thing for me so it is worth pursuing.
So does this mean that it can obtain the users e-mail address (and other info?) from the NT credentials?
Thanks, Kym.
Edited by - mclek on 21 June 2001 19:38:30 |
|
|
LeslieS
Starting Member
33 Posts |
Posted - 22 June 2001 : 08:41:32
|
unfortunatley not, it only populates the user name and user profile id. The password is not recorded either, but this is a good thing ( from my point of view).
Regards,
Leslie
|
|
|
Greg Bowman
Starting Member
USA
30 Posts |
Posted - 22 June 2001 : 21:50:28
|
Hi
I have had NT Auth working for a while now. It has not been perfect but here are the answers I found to my questions -- I hope they might help you:
1. Even after ADSI is installed and Autologon switched on I kept on getting this error: /forums/inc_functions.asp, line 1238
One thing to check is, go to the User manager for Domains on your web server. Click on User/Select domain... to select the domains you will be authenticating users from. Can you see the NT Directory list of users? If not, then you don't have permissions to search the domain controller for user information. See IT for help. Once I could see the list, my problems were solved.
2. Reading the ADSI helpfile it can get the email address but I do not know how to do that! Sumo is working on that still (jun 22): http://forum.snitz.com/forum/topic.asp?TOPIC_ID=6753&FORUM_ID=25&CAT_ID=17&Topic_Title=MOD%3A+MS+Exchange+E%2Dmail+Retrieval+v1%2E00&Forum_Title=MOD+Add%2DOn+Forum+%28W%2FCode%29
Here is what I did in the end; all my users have the same email notation i.e. username@company.com. We know their username so we can hard code their email address when they register by adding this fix to register.asp (line 204):
REPLACE: strSql = strSql & ", " & "'" & ChkString(Request.Form("Email"),"email") & "'" WITH: If strAutoLogon = "1" then strSql = strSql & ", " & "'" & strDBNTUserName & "@broadase.com'" Else strSql = strSql & ", " & "'" & ChkString(Request.Form("Email"),"email") & "'" end if
-- Obviously replace @broadase.com with your email suffix i.e. @yahoo.com
Greg
Edited by - Greg Bowman on 22 June 2001 22:12:33 |
|
|
mclek
New Member
Australia
50 Posts |
Posted - 24 June 2001 : 21:17:50
|
Thanks for the informative reply Greg. I suspected my problem was related to permissions on the server, so it was good to have this confirmed by you. Sure enough I cannot view the user list for the required domain.
Any idea what your IT guys did to resolve this? eg modify permissions for the admin account...?
Thanks, Kym.
|
|
|
Greg Bowman
Starting Member
USA
30 Posts |
Posted - 25 June 2001 : 17:06:33
|
Hi Kym
in my case I could see users for one domain but not the another. That was because the IP address of a domain controller was changed but the IP cache was pointing to the old address. An "ipconfig /release" and then "ipconfig /renew" in a dos prompt win fixed it.
I was already given permission by the domain controller to browse the NT directory service; so I did not need to do this again.
Greg
|
|
|
mclek
New Member
Australia
50 Posts |
Posted - 26 June 2001 : 21:02:01
|
Hi guys,
Well I'm pleased to say that I know have the Auto Logon working.
I had found, as Greg suggested that, from User manager for Domains I could not see the users in the required domain, which suggested a permissions problem. Following this though, I found that I could see the users when setting security access to directories and files on the server. This indicated that I must have at least some access to user information on the domain.
So this finally convinced me (along with some investigation into ASDI) that it was worthwhile installing ADSI 2.5, as previously suggested by Leslie.
Hey presto, it worked!
Thanks for your help guys. Now if I can just sort out e-mail....
Kym.
|
|
|
sumo
Junior Member
USA
121 Posts |
Posted - 04 July 2001 : 00:26:05
|
quote:
2. Reading the ADSI helpfile it can get the email address but I do not know how to do that! Sumo is working on that still (jun 22): http://forum.snitz.com/forum/topic.asp?TOPIC_ID=6753&FORUM_ID=25&CAT_ID=17&Topic_Title=MOD%3A+MS+Exchange+E%2Dmail+Retrieval+v1%2E00&Forum_Title=MOD+Add%2DOn+Forum+%28W%2FCode%29
Jeez. I can't believe I have a following with this. Since, projects at my company have become a'plenty, the forum project, that this mod would be needed for, got shelved for a while. I promise, though, that I WILL post something solid eventually.
This mod requires a good amount of knowledge of LDAP (Lightweight Directory Access Protocol). Exchange 5.5 and up is accessed using this protocol. You can write a web-based Exchange mailbox reader into Snitz if you really wanted. All I wanted to do was properly populate a user's e-mail address from our Exchange server, but also have it work unversally, given that your mail server is Exchange 5.5+. There are some compatibility issues the way I do it now with other network configurations, so that's part of the reason why I haven't released anything else for it since then. Once that's figured out, it can be more widely used and potentially integrated as a feature since I also worked on adding an admin page for it to populate the Organization, Organizational Unit, Container Names, and mail server needed for the LDAP protocol.
Mike http://www.sumovw.com/ http://www.sumovw.com/forum/ http://www.sumofx.com/ |
|
|
Topic |
|