Page 1 of 1 1
Topic Options
#114891 - 2004-02-27 01:18 AM Login messagebox
DarrenJackson Offline
Fresh Scripter

Registered: 2004-02-27
Posts: 8
Hi Guys Im new to kixtart an trying to get my feel for this tool. I am trying to create a log in message box where the person loggin in gets presented with a message to either agree to the eula they have signed or to cancel and get sent back to the login screen. But an extra function would be either to have a hyperlink or a button pointing to a shared file to open up the eula so the person can read the eula this would run with out the script finising so as to prevent the person logging on without clicking yes i agree.
I am using win 2000 active directory to deploy this to the group using kixtart 4.22
I am not sure what i am looking for is possible with kixtart but any ideas or pointers would be greatly appretiated.

Top
#114892 - 2004-02-27 02:15 PM Re: Login messagebox
Co Offline
MM club member
***

Registered: 2000-11-20
Posts: 1342
Loc: NL
you can do it with Kixforms. www.kixforms.com
_________________________
Co


Top
#114893 - 2004-02-27 03:42 PM Re: Login messagebox
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Or even simpler, but without the hyperlink capabilities, would be to use a MESSAGEBOX().
_________________________
There are two types of vessels, submarines and targets.

Top
#114894 - 2004-02-28 08:30 AM Re: Login messagebox
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11631
Loc: CA
Hello Darren and welcome to the board.

Well if you're using AD then I would use a GPO for most of this, but you could also do something like this.

Code:
Break Off
Dim $iRC
$iRC=SetOption('Explicit','On')
$iRC=SetOption('NoVarsInStrings','On')
Dim $LN,$LOff

UpdateLegalNotice()

$LN = 'This system is for authorized use only. Users (authorized or '
+'unauthorized) have no explicit or implicit expectation of privacy. '
+'Any or all uses of this system and all files on this system may be '
+'intercepted, monitored, recorded, copied, audited, inspected, and '
+'disclosed to authorized Administrators, and law enforcement personnel, '
+'as well as authorized officials of other agencies, both domestic and foreign. '
+'By using this system, the user consents to such interception, monitoring, '
+'recording, copying, auditing, inspection, and disclosure at the discretion of '
+'authorized personnel'
+@CRLF + @CRLF
+'By continuing to use this system you indicate '
+'you' +"'"+'re awareness of and consent '
+'to these terms and conditions of use. '
+@CRLF + 'LOG OFF IMMEDIATELY if you do not agree '
+'to the conditions stated in this warning.'
+@CRLF + @CRLF
+'Click YES to agree or click NO to disagree and be logged off.'

$LN = MessageBox($LN,'********* LEGAL NOTICE WARNING *********', 4404)
If $LN = 6
Else
$LOff = LogOff(1)
EndIf

Function UpdateLegalNotice()
Dim $LegalNoticeCaption,$LegalNoticeText,$UpdateLNC,$UpdateLNT,$UpdateLNP,$LogonPrompt
$LogonPrompt='This system is for AUTHORIZED USE ONLY!'
$LegalNoticeCaption = '********* LEGAL NOTICE WARNING *********'
$LegalNoticeText = 'This system is for authorized use only. Users (authorized or '
+'unauthorized) have no explicit or implicit expectation of privacy.'
+'Any or all uses of this system and all files on this system may be '
+'intercepted, monitored, recorded, copied, audited, inspected, and '
+'disclosed to authorized Administrators, and law enforcement personnel, '
+'as well as authorized officials of other agencies, both domestic and foreign.'
+'By using this system, the user consents to such interception, monitoring, '
+'recording, copying, auditing, inspection, and disclosure at the discretion of '
+'authorized personnel'
$UpdateLNC = WriteValue('HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon','LegalNoticeCaption',$LegalNoticeCaption,'REG_SZ')
$UpdateLNT = WriteValue('HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon','LegalNoticeText',$LegalNoticeText,'REG_SZ')
$UpdateLNP = WriteValue('HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon','LogonPrompt',$LogonPrompt,'REG_SZ')
EndFunction



Here is a site that might give you some more information as well.
Creating Login Banners

Top
#114895 - 2004-02-28 09:01 PM Re: Login messagebox
DarrenJackson Offline
Fresh Scripter

Registered: 2004-02-27
Posts: 8
Thanks NTDOC for the reply will have a look

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 781 anonymous users online.
Newest Members
Sir_Barrington, batdk82, StuTheCoder, M_Moore, BeeEm
17886 Registered Users

Generated in 0.049 seconds in which 0.021 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org