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 




-- 
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 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 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'" 
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 Auto Authentication?

2005-01-18 Thread tg-php
Ok, I think the other response you got is mostly right, but I don't think it's 
clear what you're trying to do.

If you enable NTLM authentication on the web server, then you can have the 
user's browser send the authenticated username to the web server.  You'd do 
that like this:

1. On your web server (I think IIS is the only one that supports it right now 
but not 100% sure), turn OFF Anonymous authentication and Basic Authentication. 
 The third option is Windows Integrated Authentication aka NTLM (I forget the 
exact names of the settings, but you'll see what I'm talking about when you go 
into IIS).

2. The remove user has to be logged into the domain that the web server belongs 
to.  This will only work via a domain login, not just any local user login or 
something like that and I believe that they both need to be on the same domain.

3. Use either the $_ENV["AUTH_USER"] or ..err.. there was another variable, I 
forget.  Anyway, that'll get the user's username, but not any password 
information or anything.  The only way for this variable to populate is for 
them to log into the domain though, so you should be able to trust it as "This 
is actually who logged in and they definitely logged in with the proper 
credentials".


If you're trying to get the user to log into the domain THROUGH the web server, 
then that's another story altogether.

If this isn't what you're trying to do, you might look into LDAP or something 
possibly.

More details might be useful if you'd like to post them.

-TG

= = = Original message = = =

Anybody figured out how to auto authenticate into a windows server? I 
need to have some users log through NT Authentication on their browser 
without typing their username and password. I was wondering if I could 
use PHP + COM or something like that but I can't find anything. I have 
found some scripts that validate against NTLM but I have not been able 
to find a script that would actually validate the browser/session 
against a NT server. Help!

-- 
Adrian Madrid
HyperX Inc. 
Mobile: 801.815.1870
Office: 801.566.0670 
[EMAIL PROTECTED] 
www.hyperxmedia.com 

9000 S. 45 W.
Sandy, UT 84070


___
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] NT Auto Authentication?

2005-01-17 Thread Jochem Maas
Adrian Madrid wrote:
Anybody figured out how to auto authenticate into a windows server? I 
no but... have a look at this:
http://uranus.it.swin.edu.au/~jn/linux/php/php_smbauth.htm
need to have some users log through NT Authentication on their browser 
without typing their username and password. I was wondering if I could 
use PHP + COM or something like that but I can't find anything. I have 
found some scripts that validate against NTLM but I have not been able 
to find a script that would actually validate the browser/session 
against a NT server. Help!
with regard to automatically logging in onto the server:
http://iamjochem.com/login_for_IE_people.jpg
I have no idea if the setting works and you will have to add the site to 
the intranet/trusted zone on each PC.



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


[PHP] Re: PHP + NT + Weird line break??

2001-09-21 Thread Richard Lynch

Is there a new-line at the end of the include-ed file?


  ^
 / \
/   \
Unless this is an unterminated line, you'll get messed up.

Various editors will automatically add a new line for you.

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: Joseph Koenig <[EMAIL PROTECTED]>
Newsgroups: php.general
To: php forum <[EMAIL PROTECTED]>
Sent: Tuesday, September 18, 2001 2:41 PM
Subject: PHP + NT + Weird line break??


> On NT, I have recently run into this problem. However, this is only as
> of today. When using include(); at the top of a page:
>  include();
> ?>
> HTML...
>
> There is a line break before my page most of the time, but not always.
> Removing the include file and copy-pasting it's contents into the top of
> the HTML file gets rid of the space. However, I really need to be able
> to use includes without it breaking things. Has anyone run into such a
> problem? I tried deleting my included file and recreating it, just in
> case it was corrupt, or something odd like that. That didn't help at
> all. Has anyone ever seen such a strange thing happen? PHP 4.0.6 is
> installed on this server with IIS 4.0. Any ideas would be much
> appreciated. Thanks,
>
> Joe


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] NT?

2001-09-10 Thread George Pitcher

I've got PHP running under 3 environments (sort of).

LinuxPPC(Mac) with Apache and MySQL
NT with IIS4 and Lasso/Filemaker (not quite working yet)
NT with Apache and MySQL.

Installation was very easy.

George P in Edinburgh
- Original Message -
From: "nayco" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, September 10, 2001 5:47 PM
Subject: Re: [PHP] NT?


> I don't think that will be a problem : try zend.com 'apache + php4' >
go
> and see http://zend.com
>
> Anyone tried under NT ???
>
> I won't say : 'try Linux' 
>
> (°-Nayco,
> //\[EMAIL PROTECTED]
> v_/_ http://nayco.free.fr
>
>
> - Original Message -
> From: Jeremy Morano <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, September 10, 2001 6:26 PM
> Subject: [PHP] NT?
>
>
> > Hello,
> > Sorry to bother everyone. I was just wondering if php runs on NT?
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] NT?

2001-09-10 Thread nayco

I don't think that will be a problem : try zend.com 'apache + php4' > go
and see http://zend.com

Anyone tried under NT ???

I won't say : 'try Linux' 

(°-Nayco,
//\[EMAIL PROTECTED]
v_/_ http://nayco.free.fr


- Original Message -
From: Jeremy Morano <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 10, 2001 6:26 PM
Subject: [PHP] NT?


> Hello,
> Sorry to bother everyone. I was just wondering if php runs on NT?
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] NT Authentication

2001-07-19 Thread Taylor, Stewart

You can install an apache module which does this.
Then all you do is edit apache's httpd.conf file to say which directories
you want to be authenticated and information about your NT domain and backup
servers etc...
e.g.


Authname"Company Intranet Server"
AuthTypeBasic
Auth_SMBon
Auth_SMB_Authoritative  on
Auth_SMB_Server SERVER1
Auth_SMB_Backup SERVER2
Auth_SMB_Domain DOMAIN1
#had to modify code for multiple domain access
#Auth_SMB_Server1SERVER1a
#Auth_SMB_Backup1SERVER2a
#Auth_SMB_Domain1DOMAIN2
#Auth_SMB_Server2SERVER1b
#Auth_SMB_Backup2SERVER2b
#Auth_SMB_Domain2DOMAIN3
require valid-user


When a user tries to access an authenticated directory via their browser a
login prompt will be displayed, they will not be able to progress until they
have entered their correct NT username/password.  Once they do apache then
passes their NT username on to your app in the $REMOTE_USER global variable.



The module is located at:
http://guru.josefine.at/~mfischer/mod_auth_smb/



-Stewart



-Original Message-
From: Warren Vail [mailto:[EMAIL PROTECTED]]
Sent: 18 July 2001 15:23
To: [EMAIL PROTECTED]
Subject: [PHP] NT Authentication


I am running php4/mysql/apache in a large NT complex, behind a firewall.
How can I authenticate users to my site using NT authentication?  Has anyone
done this?

thanks,

Warren Vail


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]