Re: [PHP] NT domain info

2005-01-19 Thread Bruce Douglas
mikey...

i'm not a guru... but this sounds like something that someone should have 
already done (or thought about) in perl. you might find that there's already a 
perl app/solution that gets you close to what you need, that would allow you to 
either use the perl solution, or rewrite what it does in php...

good luck!!

bruce


-Original Message-
From: Mikey [EMAIL PROTECTED]
Sent: Jan 19, 2005 4:13 PM
To: '[php] PHP General List' php-general@lists.php.net
Subject: [PHP] NT domain info

Hi NG!

Does anyone here know of a way of getting at the user account information
from a windows domain controller from a Linux box, specifically in PHP?

I was thinking of writing a COM object for the windows box running a simple
socket service for updates, but that seems like an awful lot of coding (not
to mention having to write COM garbage).  Has anyone else here had to tackle
a similar problem, or does anyone know enough about Windows and domain
accounts to be able to point me in the right direction?

TIA,

Mikey

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] NT domain info

2005-01-19 Thread Mikey
Well, I went to CPAN and found:

http://www.cpan.org/modules/by-category/22_Microsoft_Windows_Modules/Win32/W
in32-AD-User-0.01.readme

Looks like that will have what I need, and from what I remember socks are
dead simple in Perl - time to read up again!

Mikey

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] NT domain info

2005-01-19 Thread Jordi Canals
On Thu, 20 Jan 2005 00:13:35 -, Mikey [EMAIL PROTECTED] wrote:
 Hi NG!
 
 Does anyone here know of a way of getting at the user account information
 from a windows domain controller from a Linux box, specifically in PHP?
 

The Windows domain controllers run LDAP. So, you can use the PHP LDAP
functions to retrieve information from it.

Looking for it, I've found an example at
http://asia.cnet.com/builder/architect/system/0,39009336,39105862,00.htm

I think this sample could give you an overview to start playing.

Best regards,
Jordi.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] NT domain info

2005-01-19 Thread Leif Gregory
Hello Bruce,

Wednesday, January 19, 2005, 6:06:28 PM, you wrote:
BD i'm not a guru... but this sounds like something that someone
BD should have already done (or thought about) in perl. you might
BD find that there's already a perl app/solution that gets you close
BD to what you need, that would allow you to either use the perl
BD solution, or rewrite what it does in php...

They have in PHP...

I learned a lot from this:

http://www.phpldapadmin.com/product_info.php/products_id/29

Free to home users.



Cheers,
Leif Gregory 

-- 
TB Lists Moderator (and fellow registered end-user)
PCWize Editor  /  ICQ 216395  /  PGP Key ID 0x7CD4926F
Web Site http://www.PCWize.com




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php