473,816 Members | 2,631 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

IIS Auth

Hi

I was wondering how I could get the username of the user that is logged in
though the auth of IIS...

Is also a way where I can get information on the current user from Active
Directory, is there sometime of dll for this?

Thanks,

--

- Hayden Kirk
Technical Manager
iXon LTD
Jul 17 '05 #1
4 2448

"Hayden Kirk" <sp**@spam.co m> ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ ÓÌÅÄÕÀÝÅÅ:
news:Bl******** *********@news0 2.tsnz.net...
Hi

I was wondering how I could get the username of the user that is logged in
though the auth of IIS...

Is also a way where I can get information on the current user from Active
Directory, is there sometime of dll for this?

Thanks,

--

- Hayden Kirk
Technical Manager
iXon LTD

Yes you can get information from Active Directory using LDAP
http://php.net/manual/en/ref.ldap.php
Jul 17 '05 #2

"Hayden Kirk" <sp**@spam.co m> ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ ÓÌÅÄÕÀÝÅÅ:
news:Bl******** *********@news0 2.tsnz.net...
Hi

I was wondering how I could get the username of the user that is logged in
though the auth of IIS...

Is also a way where I can get information on the current user from Active
Directory, is there sometime of dll for this?

Thanks,

--

- Hayden Kirk
Technical Manager
iXon LTD

Auth via IIS can be occur using NTLM.
http://www.innovation.ch/java/ntlm.html read it there
Jul 17 '05 #3
Awsome

Thanks for the LDAP.

Umm, I was wondering though, when someone logins in via authentication, like
htaccess file, can I get the username of that user that has logged in? Will
this work in Windows or is that something different again?

Thanks.

"Hayden Kirk" <sp**@spam.co m> wrote in message
news:Bl******** *********@news0 2.tsnz.net...
Hi

I was wondering how I could get the username of the user that is logged in
though the auth of IIS...

Is also a way where I can get information on the current user from Active
Directory, is there sometime of dll for this?

Thanks,

--

- Hayden Kirk
Technical Manager
iXon LTD

Jul 17 '05 #4

"Hayden Kirk" <sp**@spam.co m> ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ ÓÌÅÄÕÀÝÅÅ:
news:qe******** *********@news0 2.tsnz.net...
Awsome

Thanks for the LDAP.

Umm, I was wondering though, when someone logins in via authentication, like htaccess file, can I get the username of that user that has logged in? Will this work in Windows or is that something different again?

Thanks.

"Hayden Kirk" <sp**@spam.co m> wrote in message
news:Bl******** *********@news0 2.tsnz.net...
Hi

I was wondering how I could get the username of the user that is logged in though the auth of IIS...

Is also a way where I can get information on the current user from Active Directory, is there sometime of dll for this?

Thanks,

--

- Hayden Kirk
Technical Manager
iXon LTD



This should works:
"Another limitation is if you're using the IIS module (ISAPI), you may not
use the PHP_AUTH_* variables but instead, the variable HTTP_AUTHORIZAT ION is
available. For example, consider the following code: list($user, $pw) =
explode(':', base64_decode(s ubstr($_SERVER['HTTP_AUTHORIZA TION'], 6)));
IIS Note:: For HTTP Authentication to work with IIS, the PHP directive
cgi.rfc2616_hea ders must be set to 0 (the default value). "
Jul 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2286
by: Steven Stern | last post by:
I'm looking for a way to force basic http autentication from within a PHP script. Here's the situation: I have an exisiting system that first authenticates people via the aMemberPro package. In the "old days", aMemberPro then moved the user to a page inside a directory protected with .htaccess basic authentication. It used the URL format http://name:password@server.directory.page.html. When the IE6 update came out, this syntax no...
4
2301
by: jsWalter | last post by:
I have an extension Class to Auth and I'm looking for some folks to hammer on it a bit and give feed back. Class: AuthUser - add user (well, Auth does that now, so its gone) - remove user (well, Auth does that now, so its gone) - change password (well, Auth does that now, so its gone) - case sensitive ID match - some DBS don't - limit login attempts (as far as it can go on a browser) - return to original page after login
2
7953
by: Mark Carter | last post by:
I'm trying to create a mail server in Twisted. I either get SMTPSenderRefused or SMTPException: SMTP AUTH extension not supported by server. What do I need to do to get it to work?
0
1422
by: David Geller | last post by:
Hi, I had been using smptlib to send email via my covad relay previously (several months ago), and it worked fine. Covad requires authentication, and this was accomplished fine with smtp.login(usrname, pwd). Today when I tried the program, it stopped working. Using the smtp debug option, I determined that when send: 'AUTH PLAIN abcdef\r\n' I would get the exception:
0
1176
by: Ciaran McAuliffe | last post by:
Hey, I have a bit of a tricky problem, here is a quick overview. I have a website which connects to a webservice, this web service is a front for access to the Reporting Services Web Service, the middle web service just provides some simpler functions for creating reports on the fly. The initial web site is set up to use windows auth and to impersonate. The middle web service is set up to use windows auth but not to impersonate and...
4
5647
by: 23s | last post by:
I had this problem in the past, after a server reformat it went away, and now after another server reformat it's back again - no clue what's doing it. Here's the flow: Website root is public, no SSL no forms auth. One of the subfolders in the public area is the root of a "protected" area; SSL is required from this subfolder on forward and a web.config in the subfolder specifies forms authentication. From the public area, I provide a...
10
1788
by: Henk van Lingen | last post by:
Hi, docs say (19.2.1): When trust authentication is specified, PostgreSQL assumes that anyone who can connect to the server is authorized to access the database as whatever database user he specifies (including the database superuser). This method should only be used when there is adequate operating system-level protection on connections to the server.
0
1557
by: kevin bailey | last post by:
I have a framework working where I have multiple pages each checking the authentication status. Unauthorised users are redirected to a login page - otherwise the requested page is shown. Now my question is just to get a little clarification. On the login page I create and object of type Auth
1
2105
by: kevin bailey | last post by:
I have used the PEAR Auth package to successfully set up authentication. <code> // Details of where the authentication details are stored. $options = array( 'dsn' ="pgsql://graphicomm2:pw@localhost/graphicomm2", 'table' ="v_active_users", 'usernamecol' ="f_email", 'passwordcol' ="f_password",
3
1957
by: hakan | last post by:
I've started playing with the Auth module, and I have a quick question before I go any deeper. Is it possible to embedd the Auth login form in an HTML page? I would like to put a login form in a sidebar of a page. The problem seems to be that Auth relies on sessions, which causes problems when the start() function sends header information. Any suggestions and examples would be welcome. /H
0
9742
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9617
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,...
0
10677
Oralloy
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...
0
10150
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9229
agi2029
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...
1
7693
isladogs
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...
0
6904
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5573
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...
1
4363
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.