Sorry, but I'm a complete newbee!
I need find out under which userid the browser is running.
Is this possible with JavaScript?
Many thanks for a hint,
Helmut Jarausch
Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany
Dec 27 '07
11 2072
Helmut Jarausch said:
[snip]
I need authorization for access to something like a database in a strictly
local network. If I could get access to the user's login password (we are
using Linux exclusively), I can be sure that the user's id has been checked
by the system when that user has logged into the system. So, I don't need
to keep track of an additional (user,password) file, secure connection,
means to change a password, initial passwords, lost passwords and so on.
You're definitely looking to go server side for that, not much help
JavaScript is going to offer.
Try comp.lang.php
~A!
--
Anthony Levensalor an*****@mypetpr ogrammer.com
On Dec 28, 3:05*am, Helmut Jarausch <jarau...@skyne t.bewrote:
Randy Webb wrote:
Helmut Jarausch said the following on 12/27/2007 9:56 AM:
Randy Webb wrote: My Pet Programmer said the following on 12/27/2007 7:27 AM: Helmut Jarausch said: Sorry, but I'm a complete newbee!
>>>I need find out under which userid the browser is running. Is this possible with JavaScript?
>>>Many thanks for a hint,
>>>Helmut Jarausch
>>>Lehrstuhl fuer Numerische Mathematik RWTH - Aachen University D 52056 Aachen, Germany If you mean the system user id, as in their Windows logon, can't be done with JavaScript.
>var userID = prompt('What is your user ID?');
You're joking, aren't you?
Not near as much as you want me to be.
Then I need to ask for a password, as well.
Why? You didn't want a password, you wanted the user ID.
And for that I need an ssl connection and I have to keep track of
user/password combinations. Not the solution I was after.
What is the user ID going to do for you? And, the username and password
to my desktop won't do anybody any good unless you have access to my
computer. And, that is provided that I even have a username and/or
password.
I need authorization for access to something like a database in a strictly
local network. If I could get access to the user's login password (we are
using Linux exclusively), I can be sure that the user's id has been checked
by the system when that user has logged into the system.
No, you can't. All that will tell you is that the user has a valid
local user ID and may not even have a password. You need to control
access at a network level, most likely using LDAP, you don't care
about local access to the PC.
So, I don't need
to keep track of an additional (user,password) file, secure connection,
means to change a password, initial passwords, lost passwords and so on.
Your application doesn't need to track passwords or even user user
IDs, but it must track sessions and integrate with some form of login/
password system. You could put access privileges in the LDAP server
too, but this is completely the wrong place to be discussing that,
they are all server-side technologies, the client just provides a
mechanism for user input.
--
Rob This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Phillip Wu |
last post by:
I have a javascript program that lives in the secure part of a web
site.
In order to get access to this java program the user needs to log in
providing a userid and password. I understand that the userid/password
is verified by the web server (Apache in my case). I also understand
that any server side program written in php can get the userid from
environment variables.
I want to be able to find out the userid that the user logged in...
|
by: Earl Teigrob |
last post by:
I have PW/UserID info as follows and would like to use xpath to find if a
userid and pw exists within the xml file. What Xpath query statement do I
need and what query command do I need?
<users>
<user>
<userid>joe</userid>
<pw>secret</pw>
</user>
<user>
|
by: Luke Dalessandro |
last post by:
I am trying to develop a quick Shopping cart for ASP.NET 2.0. I have added a
CartItems table to the AspNetDB access database, that contaings CartItems
keyed off of the aspney_Users.UserId key (the automatically generated
primary key for the table).
I want to bind the current user's CartItems to a GridView, which should be
really easy. The problem is that I need the UserID as a parameter for my
AccessDataSource. The parameters that can be...
|
by: Trint Smith |
last post by:
I did have UserID as 'Dim UserID As String'. Ok, when I made it 'Public
UserID As String', in the Public Area of one program and took out all
the 'local' declairations of it, even in the other programs that need to
see the same value of UserID, UserID was getting the 'UserID is not
declaired' message in the other programs. Do I have to put 'Public
UserID As String' in the Public areas of all my programs, and if I do a
UserID =...
|
by: david.kuczek |
last post by:
I got the following error in a javascript I wrote. The script works
fine, but why is the error being displayed???
##### Here comes the little script:
function chgMusicLink(userid,userlink,usertype) {
var card_music_id = document.getElementsByName(userid).value;
document.getElementsByName(userlink).href="/card_music_preview.tcl?card_music_id="+card_music_id+"&card_music_type="+usertype;
}
| |
by: marcwentink |
last post by:
Somewhere in the code Authorization is set like:
' user id from a login form
......
......
FormsAuthentication.SetAuthCookie(userid, False)
Is there a way to get this information, the userid string back? I have
tried myself and looked in google but I just cannot find it. I am
trying this NOT WORKING code, that gives me .... Nothing as UserName
|
by: chaitu |
last post by:
Hi,
I have an issue. When a developer tries to connect using an USERID and
a ped it gives
SQL30082N Attempt to establish connection failed with security reason
"19" ("USERID DISABLED or RESTRICTED"). SQLSTATE=08001. He is getting
this when he tries to connect through QUEST CENTRAL.
This is not a DBA userid and pwd. I have tried changing AUTHENTICATION
|
by: Jim |
last post by:
Using either EW or VSE2008, I want to have a GridView that will:
- Insert the logged in user's UserId from either the User table or the
membership table when the user inserts a record.
- When the user views the GridView, only their records are shown. I don't
want to use a query string that uses the UserID for securtiy resons, so I'm
thinking that I can use a SessionID that is tied to the UserId?
Requests:
1. Insert a record that will...
|
by: sjohnson1984 |
last post by:
Hello all,
I have a form which is generated using a database query - the recordset is filled with agent details, login time and the like, and there are as many rows in the table as records in the set (plus table header).
My problem is that I do not know how to pass the details of each record to an array session variable, once the form is submitted, and subsequently write all of this info to a dB.
I have no problem doing this when there...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |