473,395 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

php and useraccounts

Dear php-gurus,

Is there any way I can access user/administrator information from php? For
example, I would like to
transfer user from an NT system into my php-system.

Thanks in advance

Thorsten
Jul 17 '05 #1
3 1391
Thorsten Ottosen wrote:
Dear php-gurus,

Is there any way I can access user/administrator information from php? For
example, I would like to
transfer user from an NT system into my php-system.

Thanks in advance

Thorsten


Hi Thorsten,

You can always call systemroutines on the machine where PHP is running on.
Of course you (=the user PHP is running as) need to have the right rights.

If Linux, you'll probably hit some security-issues:
PHP runs as user Apache (in all cases I have seen).

Depending on what you want excactly, ask yourself:
Should user Apache be able to do root-stuff ??
Like adding real users to the system?
No, I think.
That sounds like a configuration I wouldn't advise to anybody.

If you want PHP to add user/passwords combinations to some databasetable
(not 'real' unix users, just a bunch of user/passwd), maybe that is ok.
Depends on your situation.

Anyway, take care.

Regards,
Erwin Moller
Jul 17 '05 #2
Thorsten Ottosen wrote:
Is there any way I can access user/administrator information from php? For
example, I would like to
transfer user from an NT system into my php-system.


There is an smb_auth class for PHP which determines if a given username
and password is valid in an NT domain. I don't know of any way in which
you can get a list of users from an NT domain.

Cheers,
Andy
Jul 17 '05 #3
Thorsten Ottosen <ne*****@cs.auc.dk> wrote:
Dear php-gurus,

Is there any way I can access user/administrator information from php? For
example, I would like to
transfer user from an NT system into my php-system.

Thanks in advance


I know this is a PHP group, but that really sounds more like a task
suited toward perl.

To gain that type of permissions, you typically want to check into what
is known as "set-id". (a highly dangerous thing to do, but in
some cases you have no choice) As far as I know, there really isn't a
way to do that in PHP unless you were to do something like run PHP in
a special cgi environment.

I suppose you could do just the access stuff in perl (or other language)
and use PHP as a type of HTML wrapper for it.

Jamie

Jul 17 '05 #4

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

Similar topics

7
by: Justin | last post by:
I am extremely new at SQL Server2000 and t-sql and I'm looking to create a simple trigger. For explanation sake, let's say I have 3 columns in one table ... Col_1, Col_2 and Col_3. The data type...
2
by: Peter Wallington | last post by:
Hi All, Can anyone help me out with this one. I have a basic aspx page with an image placeholder on it. I want to be able to click a button on the page and have a dialog window appear where I can...
2
by: lewi | last post by:
I am trying to work on adding Form Authentication to my ASP.NET app. I try and gotten Form Authentication with the credentials in the Web.config file... Now I am going by Jeff Prosise's book...
6
by: Manny Chohan | last post by:
I am using forms authetication in the web config. i can validate a user against a database and click on images which makes hidden panels visible.However when i click on the link inside a panel...
3
by: Iguana Frank | last post by:
Using vb.net, I saw a bunch of examples of using this variable type. However, I never saw what I need to reference this, or didn't understand what it was saying (more likely). All the examples...
0
by: Wayne Smith | last post by:
I've taken the following code from a developers web site which should allow a user to register and receive an email message with a link to activate their account, but when I click the link on my...
4
by: sck10 | last post by:
Hello, I am using the following in ASP.NET 2.0 VB using ADODB (which is working). I would like to convert this to csharp using ADO.NET. To build the connection, I am trying to convert: ...
1
by: =?Utf-8?B?VG9uZQ==?= | last post by:
Hi, I need to change a value of an element in an XML file, I have been trying to select the node to edit but can only get as far as component and have to itterate through.. XmlDocument doc =...
3
by: kinobairn | last post by:
I've got a login page that I created in Dreamweaver to start a session variable, after login I've only got one choice on what page to direct them to, what I'd like help with is to know the code in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
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...

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.