Re: Powerful login script??
- From: "Ato Bisda" <atobisda@xxxxxxxxx>
- Date: Wed, 1 Jun 2005 02:46:34 -0400
Hello,
Do you really need SQL Server to house your company policy and user state info (i.e., last policy acceptance date)? Each of your
3000 client computers will need to have SQL Server ODBC/OLEDB drivers installed IF you want the login script to run on each computer
and access SQL Server directly.
You should be able to store your company policy as a text file on a network share and create a text file for each user containing
the last time he/she accepted the policy. The 3000 user text files could also be stored on a network share and have filenames =
usernames.
The login script will be triggered by a GPO and will always run. The script will have logic to determine whether to popup your
policy acceptance form or not depending on what date is stored on the user's text file. The form can be created using the
InternetExplorer object, although it's not straightforward since you have to create a "polling loop" around the asynchronous IE form
to monitor form fields and events.
If you really must have SQL Server in the picture, I'd recommend splitting the logic into a client login script and an ASP page on a
web server that has the SQL Server drivers installed. In this scenario, the login script will hand off processing to the web server
when it navigates the IE browser object to your ASP page. The login script will have much simpler logic since it won't need the IE
polling loop anymore as well as embedded HTML to build your IE form on the fly.
You'll still need the user (last accept date) text files in this scenario though since they're needed by the login script to
determine whether to display your ASP page or not.
HTH,
Ato
"hellowangja" <hellowangja@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:EA5C3916-47A8-41B3-A0B2-3B6D4F4054AC@xxxxxxxxxxxxxxxx
> Hi all, I've got a question on how powerful a login script can be...
>
> Environment I've got : We've got windows 2000 server with domain
> controller/active directory, 3000 desktops login to the domain everyday.
>
> My Requirements :
> Show a popup to the client machine during the login and boot up process,
> show our company's policy(grabbed from MS-SQL). The popup box must have a
> tick box users can tick to accept the policy. User may proceed without
> ticking the box and the logon process continues. The user's policy acceptance
> history is logged into SQL database.
>
> Condition for the meesage box popup : There's a condition for the popup box
> to show up though. If the user has seen this box and agreed with the policy
> last 6 weeks, then the message box doesn't even show up for the user.
>
>
> I am actually not a system admin, I'm a developer who can write vbscript.
> I'm totally new to this area and want to know the feasibility of the project
> using wsh(vbscript/javascript).
>
>
> ,,, Login scripts are run on client computers, don't they??? If so, our 3000
> client computers must have access to the sql server?? Am I right?
>
> ,,, It's going to be great if the login script runs on server, not on
> client, Can anybody confirm where it runs..
>
> ,,, What I am trying to do is impossible, or is there any alternative
> solutions??
>
>
> In summary, what I want to achieve is as below,
> 1. As a user logs in, based on username on the domain, do a database query
> to find out the user has ever accepted the polocy last 6 weeks. If not, the
> user gets a policy acceptance popup. The popup displays the policy retrieved
> from a database available to the server(domain controller).
> 2. User ticks "Agree" checkbox and click "Continue"
> 3. It triggers the server to run a stored procedure and logs the user into
> the history log for future reference.
>
> Is this possible? What is the best solution for this requirement?
>
>
> Please advise,,
>
> Thank you all experts out there in advance!!
>
> --
> John Choi
> .NET Developer
.
- Follow-Ups:
- Re: Powerful login script??
- From: Phil Johnstone
- Re: Powerful login script??
- References:
- Powerful login script??
- From: hellowangja
- Powerful login script??
- Prev by Date: Powerful login script??
- Next by Date: Re: need to combine 2 files in an excel script
- Previous by thread: Powerful login script??
- Next by thread: Re: Powerful login script??
- Index(es):
Relevant Pages
|