-
- var authinfo = new Object();
- authinfo.username = form.Username;
- authinfo.password = form.Password;
- authinfo.domain = form.Domain;
- authinfo.rhost = request['REMOTE_HOST'];
-
- auth = userAuth(authinfo);
- if (auth.result) {
-
- /* for now just authenticate everyone */
+ var creds = credentials_init();
+ creds.set_username(form.Username);
+ creds.set_password(form.Password);
+ creds.set_domain(form.Domain);
+ creds.set_workstation(request['REMOTE_HOST']);
+
+ auth = userAuth(creds, request['REMOTE_SOCKET_ADDRESS']);
+ if (auth == undefined) {
+ write("<b>Invalid login - please try again<br /></b>\n");
+ } else if (auth.result) {