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