Re: [PHP] PHP and Active Directory

2005-10-03 Thread Rory Browne
Check out the user contributed notes on the manual page - www.php.net/ldap

A few of them refer to Active Directory.

If you installed PHP from source, then you need to install OpenLDAP or
some other ldap package to get the client libraries.

If you installed PHP from packages, then you need to install the
php-ldap package(assuming the functions do not currently work)

If someone else installed PHP, then you need to get them to install
the LDAP extensions to PHP.

On 9/29/05, Miretsky, Anya [EMAIL PROTECTED] wrote:
 Hi,

 How do I connect a php script running on linux with Active Directory on
 a windows machine? I would like to have my php script autmotatically
 read email addresses from the AD server. Can this be done? I've found a
 bunch of ldap functions for php but they seem to require ldap to be
 installed on linux. I'm confused. Thanks in advance for your help.


 Anya



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



[PHP] PHP and Active Directory

2005-09-29 Thread Miretsky, Anya
Hi,
 
How do I connect a php script running on linux with Active Directory on
a windows machine? I would like to have my php script autmotatically
read email addresses from the AD server. Can this be done? I've found a
bunch of ldap functions for php but they seem to require ldap to be
installed on linux. I'm confused. Thanks in advance for your help.
 
 
Anya


Re: [PHP] PHP and Active Directory

2005-08-15 Thread Rory Browne
On 8/11/05, xfedex [EMAIL PROTECTED] wrote:
  My non-sense answers pointed you to the LDAP functions for use with
  Active Directory. That is very constructive until you ask for something
  more specific.
 
 Jay,
 
 I was specting something like:
 
 Yes, i have php to authenticate against AD, and i can say that is
 easy/hard. I make it work using LDAP (http://www.php.net/ldap)
 
 or something like that.
 
 Instead, WE lost time figuring out what would be a smart question or a
 non-asked answer.
 Really, is so hard to understand my original question??
 
 Please, dont answer unless you sometime get it working (PHP + AD).
 
 (and sorry again for my ugly english)

No need to apologise for your english. It is perfectly understandable.
What you should apologise for however is your attitude. We don't
appreciate being told when to and when not to send a mail to our
mailing list.

You don't own this mailing list, and while I grant that neither
myself, Jay, nor John own this list either, we'd appreciate if you
would show a bit of respect when you send a message to it.

If you don't have time to read the manual, and show don't some
evidence that you have made some attempt to answer your own question
or find the answer yourself, then we begin to think that you want to
be spoon fed.

We don't like spoon feeding people. If you want to be spoonfed buy a
support contract.




 
 Saludos!
 pancarne.
 
 --
 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] PHP and Active Directory

2005-08-12 Thread cron
Some years ago i did this with ASP and a VB activex component i belive you 
can access a Activex from php.

Angelo

- Original Message - 
From: [EMAIL PROTECTED]

To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Cc: php-general@lists.php.net
Sent: Friday, August 12, 2005 2:24 AM
Subject: Re: [PHP] PHP and Active Directory



Is this something you're looking for?

_http://www.phpfreaks.com/scripts/User_Authentication/16.php_
(http://www.phpfreaks.com/scripts/User_Authentication/16.php)



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



Re: [PHP] PHP and Active Directory

2005-08-12 Thread xfedex
 Is this something you're looking for? 
   
 http://www.phpfreaks.com/scripts/User_Authentication/16.php

Thanks, if i try one, i let you now

Saludos!
xfedex

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



Re: [PHP] PHP and Active Directory

2005-08-12 Thread xfedex
 Some years ago i did this with ASP and a VB activex component i belive you
 can access a Activex from php.
 Angelo
 

Maybe, but i prefer to get away as much i can from Activex.just to
think about it makes me shiver =P

Saludos!
xfedex

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



[PHP] PHP and Active Directory

2005-08-11 Thread xfedex
Hi,

Have someone make PHP to authenticate against AD?
Any comment, suggestion will be greatly appreciated.

Thanks,
pancarne.

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



RE: [PHP] PHP and Active Directory

2005-08-11 Thread Jay Blanchard
[snip]
Have someone make PHP to authenticate against AD?
Any comment, suggestion will be greatly appreciated.
[/snip]

Are you, at all, familiar with TFM?

http://www.php.net/ldap

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



RE: [PHP] PHP and Active Directory

2005-08-11 Thread Nathan Tobik
Here is a php class for Active Directory:

http://adldap.sourceforge.net/


Nate Tobik
(412)661-5700 x206
VigilantMinds

-Original Message-
From: xfedex [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 11, 2005 2:41 PM
To: php-general@lists.php.net
Subject: [PHP] PHP and Active Directory

Hi,

Have someone make PHP to authenticate against AD?
Any comment, suggestion will be greatly appreciated.

Thanks,
pancarne.

-- 
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] PHP and Active Directory

2005-08-11 Thread xfedex
 [snip]
 Have someone make PHP to authenticate against AD?
 Any comment, suggestion will be greatly appreciated.
 [/snip]
 
 Are you, at all, familiar with TFM?
 

TFM?.m no, can you tell me where to start?

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



RE: [PHP] PHP and Active Directory

2005-08-11 Thread Jay Blanchard
[snip]
 Are you, at all, familiar with TFM?
 

TFM?.m no, can you tell me where to start?
[/snip]

You can start by RTFM and STFW and STFA. I gave you a link in the last
e-mail. Here is another...

http://catb.org/~esr/faqs/smart-questions.html

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



Re: [PHP] PHP and Active Directory

2005-08-11 Thread xfedex
 [snip]
  Are you, at all, familiar with TFM?
 
 
 TFM?.m no, can you tell me where to start?
 [/snip]
 
 You can start by RTFM and STFW and STFA. I gave you a link in the last
 e-mail. Here is another...
 
 http://catb.org/~esr/faqs/smart-questions.html
 

Sorry, dont have time for this right now...Anyway, thanks for your answer!

pancarne.

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



RE: [PHP] PHP and Active Directory

2005-08-11 Thread Jay Blanchard
[snip]
Sorry, dont have time for this right now...Anyway, thanks for your
answer!
[/snip]

You don't have time to read the manual?

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



Re: [PHP] PHP and Active Directory

2005-08-11 Thread John Nichel

xfedex wrote:

[snip]


Are you, at all, familiar with TFM?



TFM?.m no, can you tell me where to start?
[/snip]

You can start by RTFM and STFW and STFA. I gave you a link in the last
e-mail. Here is another...

http://catb.org/~esr/faqs/smart-questions.html




Sorry, dont have time for this right now...Anyway, thanks for your answer!


You don't have time for RTFM/STFW/STFA??  You're not going to get a lot 
of help here.


--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]

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



Re: [PHP] PHP and Active Directory

2005-08-11 Thread xfedex
 [snip]
 Sorry, dont have time for this right now...Anyway, thanks for your
 answer!
 [/snip]
 
 You don't have time to read the manual?
 

Jay, maybe this way you can understand my first question:

IF (have you been able to make PHP to authenticate against AD) {
 echo $comments; //Only comments  experiences please
} else {
 //DONT REPLY
}

So, if you dont have any 'constructive' comment, suggestion or
experience, please dont reply.

English (as you can read) is no my native language, so I lost a lot of
(precious) time repling your non-sense answers.

Salud!
pancarne.

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



Re: [PHP] PHP and Active Directory

2005-08-11 Thread John Nichel

xfedex wrote:
snip who cares

Welcome to /dev/null  I hope you enjoy your stay.

--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]

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



RE: [PHP] PHP and Active Directory

2005-08-11 Thread Jay Blanchard
[snip]
So, if you dont have any 'constructive' comment, suggestion or
experience, please dont reply.

English (as you can read) is no my native language, so I lost a lot of
(precious) time repling your non-sense answers.
[/snip]

My non-sense answers pointed you to the LDAP functions for use with
Active Directory. That is very constructive until you ask for something
more specific.

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



Re: [PHP] PHP and Active Directory

2005-08-11 Thread tg-php
Just to clearify what you're trying to do.  Maybe LDAP (or the ADLDAP? 
suggestion) isn't what you need.

Are you trying to have a user type their username and password into a web form 
and have PHP pass that information to an active directory server?  Or are you 
trying to make sure that the user is authencated and get their username and 
such?

If the user's computer is on the network with the AD server and they log into 
the domain on their PC (either directly or via VPN), then you can get their 
authenticated username from the web server (IIS at least).

In this case, the user has already logged in and you're just grabbing the 
validated username for logging purposes or something like that.

You have to enable NT Integrated Auth (aka NTLM) on the web server.

Once the IIS server is properly configured and the user is logged into the 
domain, you can get their username via $_SERVER['AUTH_USER'].

Make sure Basic and Anonymous auth are turned off in IIS.


If you want to transparently pass a user's authentication information from a 
user's workstation all the way through to a SQL Server or something, that's a 
little more complicated.  But possible I believe.

Can you give more detail on what you're trying to accomplish?

-TG

= = = Original message = = =

Hi,

Have someone make PHP to authenticate against AD?
Any comment, suggestion will be greatly appreciated.

Thanks,
pancarne.


___
Sent by ePrompter, the premier email notification software.
Free download at http://www.ePrompter.com.

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



Re: [PHP] PHP and Active Directory

2005-08-11 Thread xfedex
 My non-sense answers pointed you to the LDAP functions for use with
 Active Directory. That is very constructive until you ask for something
 more specific.

Jay,

I was specting something like:

Yes, i have php to authenticate against AD, and i can say that is
easy/hard. I make it work using LDAP (http://www.php.net/ldap)

or something like that.

Instead, WE lost time figuring out what would be a smart question or a
non-asked answer.
Really, is so hard to understand my original question??

Please, dont answer unless you sometime get it working (PHP + AD).

(and sorry again for my ugly english)

Saludos!
pancarne.

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



RE: [PHP] PHP and Active Directory

2005-08-11 Thread Jay Blanchard
[snip]
Yes, i have php to authenticate against AD, and i can say that is
easy/hard. I make it work using LDAP (http://www.php.net/ldap)
[/snip]

If that is what you were expecting you didn't read my original reply...

[quote]

Are you, at all, familiar with TFM?

http://www.php.net/ldap

[/quote]

There you go. Asked and answered. 

Warmest regards

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



Re: [PHP] PHP and Active Directory

2005-08-11 Thread xfedex
 Just to clearify what you're trying to do.  Maybe LDAP (or the ADLDAP? 
 suggestion) isn't what you need.
 
 Are you trying to have a user type their username and password into a web 
 form and have PHP pass that information to an active directory server?  Or 
 are you trying to make sure that the user is authencated and get their 
 username and such?
 
 If the user's computer is on the network with the AD server and they log into 
 the domain on their PC (either directly or via VPN), then you can get their 
 authenticated username from the web server (IIS at least).
 
 In this case, the user has already logged in and you're just grabbing the 
 validated username for logging purposes or something like that.
 
 You have to enable NT Integrated Auth (aka NTLM) on the web server.
 
 Once the IIS server is properly configured and the user is logged into the 
 domain, you can get their username via $_SERVER['AUTH_USER'].
 
 Make sure Basic and Anonymous auth are turned off in IIS.
 
 
 If you want to transparently pass a user's authentication information from a 
 user's workstation all the way through to a SQL Server or something, that's a 
 little more complicated.  But possible I believe.
 
 Can you give more detail on what you're trying to accomplish?
 
 -TG
 
 = = = Original message = = =
 
 Hi,
 
 Have someone make PHP to authenticate against AD?
 Any comment, suggestion will be greatly appreciated.
 
 Thanks,
 pancarne.
 
 
 ___
 Sent by ePrompter, the premier email notification software.
 Free download at http://www.ePrompter.com.
 

Thanks TG! (Look Jay, thats an answer!!)

The idea is that the users dont have to login on each web aplication
im serving. So, if they are loged into de domain (using AD), they dont
need to login on each web aplication.

The server were i will host the aplications is a gentoo + apache2.

Saludos!
pancarne.

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



Re: [PHP] PHP and Active Directory

2005-08-11 Thread Jochem Maas

Jay Blanchard wrote:

[snip]
Yes, i have php to authenticate against AD, and i can say that is
easy/hard. I make it work using LDAP (http://www.php.net/ldap)
[/snip]

If that is what you were expecting you didn't read my original reply...

[quote]

Are you, at all, familiar with TFM?


Jay,
in Holland (maybe whole of europe?) we have a(nother) shitty
music channel called TMF - maybe he got confused.

BTW xfedex you just alienated 2 of the most prolific and experienced
php guys on this list - stupid move, your perogative. I wouldn't classify
myself in their league but I'm surely in their camp.

/dev/null meet guy with weird moniker.



http://www.php.net/ldap

[/quote]

There you go. Asked and answered. 


Warmest regards



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



Re: [PHP] PHP and Active Directory

2005-08-11 Thread Esteamedpw
Is this something you're looking for?
 
_http://www.phpfreaks.com/scripts/User_Authentication/16.php_ 
(http://www.phpfreaks.com/scripts/User_Authentication/16.php)