PHP Windows Installer maintainer finally joins the list
PHP Windows Installer maintainer finally joins the list
am 17.08.2007 13:56:29 von John Mertic
Hi everyone,
My name is John Mertic, and I created and maintain the PHP Windows
installer. I'd like to make myself available to the list as a both a
resource for people using the installer as well as working on PHP
under Windows in general.
In searching the archives, I see that there seems to be general
recommendation *against* using the installer. Why is this? Is there
something that the installer doesn't do correctly or lacks that makes
it unsuitable?
I'm open to any and all suggestions/comments.
--
--
John Mertic "Explaining a joke
is like dissecting a frog: you
jmertic@gmail.com understand it better,
but the frog dies in the
process."
-Mark Twain
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
PHP Windows Installer maintainer finally joins the list
am 17.08.2007 13:57:49 von John Mertic
Hi everyone,
My name is John Mertic, and I created and maintain the PHP Windows
installer. I'd like to make myself available to the list as a both a
resource for people using the installer as well as working on PHP
under Windows in general.
In searching the archives, I see that there seems to be general
recommendation *against* using the installer. Why is this? Is there
something that the installer doesn't do correctly or lacks that makes
it unsuitable?
I'm open to any and all suggestions/comments.
--
--
John Mertic "Explaining a joke
is like dissecting a frog: you
jmertic@gmail.com understand it better,
but the frog dies in the
process."
-Mark Twain
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
RE: PHP Windows Installer maintainer finally joins the list
am 17.08.2007 15:53:59 von Matt.Murphy
=20
I use and like the installer, but I really wish it were easier to set up
SSL support.=20
Matt
-----Original Message-----
From: jmertic@gmail.com [mailto:jmertic@gmail.com] On Behalf Of John
Mertic
Sent: Friday, August 17, 2007 6:58 AM
To: php-windows@lists.php.net
Subject: [PHP-WIN] PHP Windows Installer maintainer finally joins the
list
Hi everyone,
My name is John Mertic, and I created and maintain the PHP Windows
installer. I'd like to make myself available to the list as a both a
resource for people using the installer as well as working on PHP under
Windows in general.
In searching the archives, I see that there seems to be general
recommendation *against* using the installer. Why is this? Is there
something that the installer doesn't do correctly or lacks that makes it
unsuitable?
I'm open to any and all suggestions/comments.
--
--=20
John Mertic "Explaining a joke
is like dissecting a frog: you
jmertic@gmail.com understand it better,
but the frog dies in the
process."
-Mark Twain
--
PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: PHP Windows Installer maintainer finally joins the list
am 17.08.2007 17:57:02 von Niel Archer
Hi John
> In searching the archives, I see that there seems to be general
> recommendation *against* using the installer. Why is this? Is there
> something that the installer doesn't do correctly or lacks that makes
> it unsuitable?
My own recommendation is based on the manual, and no reflection of the
installer
"There are several all-in-one installers over the Internet, but none of
those are endorsed by PHP.net, as we believe that the manual
installation is the best choice to have your system secure and optimised."
My only pet hate is probably out of your control. I would like PEAR to
respect my directory choices, instead of using C:\php5 for downloads, no
matter what I set.
--
Niel Archer
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: PHP Windows Installer maintainer finally joins the list
am 17.08.2007 18:38:11 von John Mertic
On 8/17/07, Niel Archer wrote:
> My own recommendation is based on the manual, and no reflection of the
> installer
>
> "There are several all-in-one installers over the Internet, but none of
> those are endorsed by PHP.net, as we believe that the manual
> installation is the best choice to have your system secure and optimised."
Let me look into having that changed; I could just do it, but I'd like
a consensus on what the appropriate wording should be.
> My only pet hate is probably out of your control. I would like PEAR to
> respect my directory choices, instead of using C:\php5 for downloads, no
> matter what I set.
It should pick the installation directory of PHP by default from my
experience; but you might want to ask the PEAR folks about that one.
--
--
John Mertic "Explaining a joke
is like dissecting a frog: you
jmertic@gmail.com understand it better,
but the frog dies in the
process."
-Mark Twain
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: PHP Windows Installer maintainer finally joins the list
am 17.08.2007 19:07:02 von Niel Archer
> > My only pet hate is probably out of your control. I would like PEAR to
> > respect my directory choices, instead of using C:\php5 for downloads, no
> > matter what I set.
>
> It should pick the installation directory of PHP by default from my
> experience; but you might want to ask the PEAR folks about that one.
It should, but it doesn't. It's fine for installing PEAR itself (using
($default as the directory), but it puts downloaded files in the default
location of "C:\php5" It might only be support files (docs, etc), it's
been a while since I had to install and correct it.
--
Niel Archer
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: PHP Windows Installer maintainer finally joins thelist
am 17.08.2007 22:53:49 von Juergen Wind
>In searching the archives, I see that there seems to be general
>recommendation *against* using the installer.
>Why is this?
how can one recommend an installer that messes up session.save_path and
upload_tmp_dir ?
(unfixed for months, dunno if fixed meanwhile)
--
View this message in context: http://www.nabble.com/PHP-Windows-Installer-maintainer-final ly-joins-the-list-tf4285285.html#a12207057
Sent from the Php - Windows mailing list archive at Nabble.com.
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: PHP Windows Installer maintainer finally joins the list
am 18.08.2007 03:39:07 von John Mertic
T24gOC8xNy8wNywgSsO8cmdlbiBXaW5kIDxqd2luZEBnbXguZGU+IHdyb3Rl Cj4gaG93IGNhbiBv
bmUgcmVjb21tZW5kIGFuIGluc3RhbGxlciB0aGF0IG1lc3NlcyB1cCBzZXNz aW9uLnNhdmVfcGF0
aCBhbmQKPiB1cGxvYWRfdG1wX2RpciA/Cj4gKHVuZml4ZWQgZm9yIG1vbnRo cywgZHVubm8gaWYg
Zml4ZWQgbWVhbndoaWxlKQo+CgpUaGlzIGhhcyBiZWVuIGZpeGVkIGZvciBu ZWFybHkgOSBtb250
aHMgbm93LgoKaHR0cDovL2J1Z3MucGhwLm5ldC9idWcucGhwP2lkPTM5ODQy CgotLSAKLS0gCkpv
aG4gTWVydGljICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICJFeHBsYWlu
aW5nIGEgam9rZQppcyBsaWtlIGRpc3NlY3RpbmcgYSBmcm9nOiB5b3UKam1l cnRpY0BnbWFpbC5j
b20gICAgICAgICAgICAgICAgICAgICAgICAgICAgICB1b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GJlc3QgY2hvaWNlIHRv IGhhdmUgeW91ciBz
eXN0ZW0gc2VjdXJlIGFuZCBvcHRpbWlzZWQuIgoKSG9wZWZ1bGx5IHRoYXQg aGVscHMgYWRvcHRp
b24gb3V0LgoKLS0gCi0tIApKb2huIE1lcnRpYyAgICAgICAgICAgICAgICAg ICAgICAgICAgICAg
ICAgICAgICAgICAiRXhwbGFpbmluZyBhIGpva2UKaXMgbGlrZSBkaXNzZWN0 aW5nIGEgZnJvZzog
eW91CmptZXJ0aWNAZ21haWwuY29tICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgdW5kZXJz
dGFuZCBpdCBiZXR0ZXIsCmJ1dCB0aGUgZnJvZyBkaWVzIGluIHRoZQogICAg ICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcHJv Y2Vzcy4iCgogICAg
ICAgICAgICAgICAgICAgICAgLU1hcmsgVHdhaW4K
Re: PHP Windows Installer maintainer finally joins the list
am 24.08.2007 22:29:32 von Gustav Wiberg
Hi!
I've created a testaccount. and tested this simple code...
I get error code:
Warning: ldap_bind() [function.ldap-bind]: Unable to bind to server: Invalid
credentials in C:\www\utveckling\ldap.php on line 14
LDAP bind failed...
The server uses Active Directory. I'm not sure if I'm typing the username
and password correctly. Is it something you have to in Active Directory to
activate LDAP-service?
// using ldap bind
$ldaprdn = 'abcd@hmn.se'; // ldap rdn or dn
$ldappass = 'abcd'; // associated password
// connect to ldap server
$ldapconn = ldap_connect("127.0.0.1")
or die("Could not connect to LDAP server.");
if ($ldapconn) {
// binding to ldap server
$ldapbind = ldap_bind($ldapconn, $ldaprdn, $ldappass);
// verify binding
if ($ldapbind) {
echo "LDAP bind successful...";
} else {
echo "LDAP bind failed...";
}
}
?>
I also tested your code with my info, with a testaccount:
$ldaprdn = 'abcd@hmn.se';
$ldappass = 'abcd';
$ds = 'hmnr.hmn.se';
$dn = 'dc=hmn,dc=se';
$ldapport = 389;
$ldapconn = ldap_connect($ds, $ldapport)
or die("Could not connect to LDAP server.");
if ($ldapconn)
{
ldap_set_option($ldapconn, LDAP_OPT_PROTOCOL_VERSION,3);
ldap_set_option($ldapconn, LDAP_OPT_REFERRALS,0);
$ldapbind = ldap_bind($ldapconn, $ldaprdn, $ldappass);
}
?>
Then I get this error:
Warning: ldap_bind() [function.ldap-bind]: Unable to bind to server: Can't
contact LDAP server in C:\www\utveckling\ldap2.php on line 14
Is there something wrong in my dn ? hmnr is the webbserver
Best regards
/Gustav Wiberg
----- Original Message -----
From: "John Mertic"
To:
Cc:
Sent: Friday, August 24, 2007 9:51 PM
Subject: Re: [PHP-WIN] PHP Windows Installer maintainer finally joins the
list
> On 8/17/07, Niel Archer wrote:
>
>> My own recommendation is based on the manual, and no reflection of the
>> installer
>>
>> "There are several all-in-one installers over the Internet, but none of
>> those are endorsed by PHP.net, as we believe that the manual
>> installation is the best choice to have your system secure and
>> optimised."
>
> That text has now been changed to:
>
> "There are several all-in-one installers over the Internet, but none
> of those are endorsed by PHP.net, as we believe that using one of the
> official windows packages from » http://www.php.net/downloads.php is
> the best choice to have your system secure and optimised."
>
> Hopefully that helps adoption out.
>
> --
> --
> John Mertic "Explaining a joke
> is like dissecting a frog: you
> jmertic@gmail.com understand it better,
> but the frog dies in the
> process."
>
> -Mark Twain
>
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: PHP Windows Installer maintainer finally joins the list
am 25.08.2007 21:39:27 von John Mertic
SGVyZSdzIHNvbWUgY29kZSBJJ3ZlIHVzZWQgaW4gdGhlIHBhc3QsIFlNTVY6 CgokYWQgPSBsZGFw
X2Nvbm5lY3QoImxkYXA6Ly97JGxkYXBzZXJ2ZXJ9IiwzODkpCiAgICAgIG9y IGRpZSgiQ291bGRu
J3QgY29ubmVjdCB0byBBRCEiKTsKbGRhcF9zZXRfb3B0aW9uKCRhZCwgTERB UF9PUFRfUFJPVE9D
T0xfVkVSU0lPTiwgMyk7CmxkYXBfc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ICAgICAg ICAgICAgICAgIHVu
ZGVyc3RhbmQgaXQgYmV0dGVyLAo+ID4gYnV0IHRoZSBmcm9nIGRpZXMgaW4g dGhlCj4gPiAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICBwcm9j
ZXNzLiIKPiA+Cj4gPiAgICAgICAgICAgICAgICAgICAgICAtTWFyayBUd2Fp bgo+ID4KPgo+Cj4K
CgotLSAKLS0gCkpvaG4gTWVydGljICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAg
ICAgICJFeHBsYWluaW5nIGEgam9rZQppcyBsaWtlIGRpc3NlY3RpbmcgYSBm cm9nOiB5b3UKam1l
cnRpY0BnbWFpbC5jb20gICAgICAgICAgICAgICAgICAgICAgICAgICAgICB1 bmRlcnN0YW5kIGl0
IGJldHRlciwKYnV0IHRoZSBmcm9nIGRpZXMgaW4gdGhlCiAgICAgICAgICAg ICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBwcm9jZXNzLiIK CiAgICAgICAgICAg
ICAgICAgICAgICAtTWFyayBUd2Fpbgo=
Re: PHP Windows Installer maintainer finally joins the list
am 27.08.2007 09:02:16 von Gustav Wiberg
Hi there!
I tried this...
$ldapuser = "abcd@hmn.se";
$ldappass = "abcd";
$ad = ldap_connect("ldap://HMNR",389)
or die("Couldn't connect to AD!");
ldap_set_option($ad, LDAP_OPT_PROTOCOL_VERSION, 3);
ldap_set_option($ad, LDAP_OPT_REFERRALS, 0);
$bd = ldap_bind($ad,$ldapuser,$ldappass)
or die("Couldn't bind to AD!");
And I get error:
Warning: ldap_bind() [function.ldap-bind]: Unable to bind to server: Invalid
credentials in C:\www\utveckling\ldap4.php on line 10
Couldn't bind to AD!
I tried this....
$ldapuser = "abcd@hmn.se";
$ldappass = "abcd";
$ad = ldap_connect("ldap://whatever",389)
or die("Couldn't connect to AD!");
ldap_set_option($ad, LDAP_OPT_PROTOCOL_VERSION, 3);
ldap_set_option($ad, LDAP_OPT_REFERRALS, 0);
$bd = ldap_bind($ad,$ldapuser,$ldappass)
or die("Couldn't bind to AD!");
whatever is NOT a server, and not a computer in the network!
So this means that I find the server, but it seems something wrong with
username and password? (I know the account exists and is active). Should I
type those in another way?
Warning: ldap_bind() [function.ldap-bind]: Unable to bind to server: Can't
contact LDAP server in C:\www\utveckling\ldap4.php on line 10
Couldn't bind to AD!
Invalid credentials seems to be something wrong with username and password?
(after some googling) I
When I don't use username and password I don't recieve any errors.
$ad = ldap_connect(ldap://hmnr,389)
or die("Couldn't connect to AD!");
ldap_set_option($ad, LDAP_OPT_PROTOCOL_VERSION, 3);
ldap_set_option($ad, LDAP_OPT_REFERRALS, 0);
$bd = ldap_bind($ad)
or die("Couldn't bind to AD!");
Why is that?
/Gustav
----- Original Message -----
From: "John Mertic"
To: "Gustav Wiberg"
Cc:
Sent: Saturday, August 25, 2007 9:39 PM
Subject: Re: [PHP-WIN] PHP Windows Installer maintainer finally joins the
list
> Here's some code I've used in the past, YMMV:
>
> $ad = ldap_connect("ldap://{$ldapserver}",389)
> or die("Couldn't connect to AD!");
> ldap_set_option($ad, LDAP_OPT_PROTOCOL_VERSION, 3);
> ldap_set_option($ad, LDAP_OPT_REFERRALS, 0);
> $bd = ldap_bind($ad,$ldapuser,$ldappass)
> or die("Couldn't bind to AD!");
>
> then continue as before
>
> On 8/24/07, Gustav Wiberg wrote:
>> Hi!
>>
>> I've created a testaccount. and tested this simple code...
>>
>> I get error code:
>> Warning: ldap_bind() [function.ldap-bind]: Unable to bind to server:
>> Invalid
>> credentials in C:\www\utveckling\ldap.php on line 14
>> LDAP bind failed...
>>
>> The server uses Active Directory. I'm not sure if I'm typing the username
>> and password correctly. Is it something you have to in Active Directory
>> to
>> activate LDAP-service?
>>
>>
>>
>>
>> // using ldap bind
>> $ldaprdn = 'abcd@hmn.se'; // ldap rdn or dn
>> $ldappass = 'abcd'; // associated password
>>
>> // connect to ldap server
>> $ldapconn = ldap_connect("127.0.0.1")
>> or die("Could not connect to LDAP server.");
>>
>> if ($ldapconn) {
>>
>> // binding to ldap server
>> $ldapbind = ldap_bind($ldapconn, $ldaprdn, $ldappass);
>>
>> // verify binding
>> if ($ldapbind) {
>> echo "LDAP bind successful...";
>> } else {
>> echo "LDAP bind failed...";
>> }
>>
>> }
>>
>> ?>
>>
>>
>>
>>
>> I also tested your code with my info, with a testaccount:
>>
>>
>> $ldaprdn = 'abcd@hmn.se';
>> $ldappass = 'abcd';
>> $ds = 'hmnr.hmn.se';
>> $dn = 'dc=hmn,dc=se';
>> $ldapport = 389;
>> $ldapconn = ldap_connect($ds, $ldapport)
>> or die("Could not connect to LDAP server.");
>>
>> if ($ldapconn)
>> {
>> ldap_set_option($ldapconn, LDAP_OPT_PROTOCOL_VERSION,3);
>> ldap_set_option($ldapconn, LDAP_OPT_REFERRALS,0);
>> $ldapbind = ldap_bind($ldapconn, $ldaprdn, $ldappass);
>> }
>> ?>
>>
>>
>> Then I get this error:
>> Warning: ldap_bind() [function.ldap-bind]: Unable to bind to server:
>> Can't
>> contact LDAP server in C:\www\utveckling\ldap2.php on line 14
>>
>>
>> Is there something wrong in my dn ? hmnr is the webbserver
>>
>> Best regards
>> /Gustav Wiberg
>>
>> ----- Original Message -----
>> From: "John Mertic"
>> To:
>> Cc:
>> Sent: Friday, August 24, 2007 9:51 PM
>> Subject: Re: [PHP-WIN] PHP Windows Installer maintainer finally joins the
>> list
>>
>>
>> > On 8/17/07, Niel Archer wrote:
>> >
>> >> My own recommendation is based on the manual, and no reflection of the
>> >> installer
>> >>
>> >> "There are several all-in-one installers over the Internet, but none
>> >> of
>> >> those are endorsed by PHP.net, as we believe that the manual
>> >> installation is the best choice to have your system secure and
>> >> optimised."
>> >
>> > That text has now been changed to:
>> >
>> > "There are several all-in-one installers over the Internet, but none
>> > of those are endorsed by PHP.net, as we believe that using one of the
>> > official windows packages from » http://www.php.net/downloads.php is
>> > the best choice to have your system secure and optimised."
>> >
>> > Hopefully that helps adoption out.
>> >
>> > --
>> > --
>> > John Mertic "Explaining a joke
>> > is like dissecting a frog: you
>> > jmertic@gmail.com understand it better,
>> > but the frog dies in the
>> > process."
>> >
>> > -Mark Twain
>> >
>>
>>
>>
>
>
> --
> --
> John Mertic "Explaining a joke
> is like dissecting a frog: you
> jmertic@gmail.com understand it better,
> but the frog dies in the
> process."
>
> -Mark Twain
>
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: PHP Windows Installer maintainer finally joins the list
am 27.08.2007 09:28:35 von Gustav Wiberg
Hi there!
Back to my main problem:
I want to achieve this:
I'm about to build an Intranet. The company has Windows Server 2003 and IIS
6 installed. They also have active directory.
I want to them to able to log in without entering username and password,
This can be achieved by not allowing anonymous access. That's not problem.
The issue for me is:
How do I retrieve username of logged in user?
I want to create an explorer-like window with maps and files, but I want the
logged in user to have the same restrictions/access for diffrent folder as
they have in the real explorer.
Is there any way besides ldap I can achieve that? Is LDAP right or wrong way
to go?
/Gustav
----- Original Message -----
From: "Gustav Wiberg"
To: "John Mertic"
Cc:
Sent: Monday, August 27, 2007 9:02 AM
Subject: Re: [PHP-WIN] PHP Windows Installer maintainer finally joins the
list
> Hi there!
>
> I tried this...
>
> $ldapuser = "abcd@hmn.se";
> $ldappass = "abcd";
>
> $ad = ldap_connect("ldap://HMNR",389)
> or die("Couldn't connect to AD!");
> ldap_set_option($ad, LDAP_OPT_PROTOCOL_VERSION, 3);
> ldap_set_option($ad, LDAP_OPT_REFERRALS, 0);
> $bd = ldap_bind($ad,$ldapuser,$ldappass)
> or die("Couldn't bind to AD!");
>
>
> And I get error:
>
> Warning: ldap_bind() [function.ldap-bind]: Unable to bind to server:
> Invalid credentials in C:\www\utveckling\ldap4.php on line 10
> Couldn't bind to AD!
>
>
> I tried this....
> $ldapuser = "abcd@hmn.se";
> $ldappass = "abcd";
>
> $ad = ldap_connect("ldap://whatever",389)
> or die("Couldn't connect to AD!");
> ldap_set_option($ad, LDAP_OPT_PROTOCOL_VERSION, 3);
> ldap_set_option($ad, LDAP_OPT_REFERRALS, 0);
> $bd = ldap_bind($ad,$ldapuser,$ldappass)
> or die("Couldn't bind to AD!");
>
> whatever is NOT a server, and not a computer in the network!
>
> So this means that I find the server, but it seems something wrong with
> username and password? (I know the account exists and is active). Should
> I type those in another way?
>
> Warning: ldap_bind() [function.ldap-bind]: Unable to bind to server: Can't
> contact LDAP server in C:\www\utveckling\ldap4.php on line 10
> Couldn't bind to AD!
>
>
> Invalid credentials seems to be something wrong with username and
> password? (after some googling) I
>
>
>
> When I don't use username and password I don't recieve any errors.
>
> $ad = ldap_connect(ldap://hmnr,389)
> or die("Couldn't connect to AD!");
> ldap_set_option($ad, LDAP_OPT_PROTOCOL_VERSION, 3);
> ldap_set_option($ad, LDAP_OPT_REFERRALS, 0);
> $bd = ldap_bind($ad)
> or die("Couldn't bind to AD!");
>
> Why is that?
>
> /Gustav
>
>
> ----- Original Message -----
> From: "John Mertic"
> To: "Gustav Wiberg"
> Cc:
> Sent: Saturday, August 25, 2007 9:39 PM
> Subject: Re: [PHP-WIN] PHP Windows Installer maintainer finally joins the
> list
>
>
>> Here's some code I've used in the past, YMMV:
>>
>> $ad = ldap_connect("ldap://{$ldapserver}",389)
>> or die("Couldn't connect to AD!");
>> ldap_set_option($ad, LDAP_OPT_PROTOCOL_VERSION, 3);
>> ldap_set_option($ad, LDAP_OPT_REFERRALS, 0);
>> $bd = ldap_bind($ad,$ldapuser,$ldappass)
>> or die("Couldn't bind to AD!");
>>
>> then continue as before
>>
>> On 8/24/07, Gustav Wiberg wrote:
>>> Hi!
>>>
>>> I've created a testaccount. and tested this simple code...
>>>
>>> I get error code:
>>> Warning: ldap_bind() [function.ldap-bind]: Unable to bind to server:
>>> Invalid
>>> credentials in C:\www\utveckling\ldap.php on line 14
>>> LDAP bind failed...
>>>
>>> The server uses Active Directory. I'm not sure if I'm typing the
>>> username
>>> and password correctly. Is it something you have to in Active Directory
>>> to
>>> activate LDAP-service?
>>>
>>>
>>>
>>>
>>> // using ldap bind
>>> $ldaprdn = 'abcd@hmn.se'; // ldap rdn or dn
>>> $ldappass = 'abcd'; // associated password
>>>
>>> // connect to ldap server
>>> $ldapconn = ldap_connect("127.0.0.1")
>>> or die("Could not connect to LDAP server.");
>>>
>>> if ($ldapconn) {
>>>
>>> // binding to ldap server
>>> $ldapbind = ldap_bind($ldapconn, $ldaprdn, $ldappass);
>>>
>>> // verify binding
>>> if ($ldapbind) {
>>> echo "LDAP bind successful...";
>>> } else {
>>> echo "LDAP bind failed...";
>>> }
>>>
>>> }
>>>
>>> ?>
>>>
>>>
>>>
>>>
>>> I also tested your code with my info, with a testaccount:
>>>
>>>
>>> $ldaprdn = 'abcd@hmn.se';
>>> $ldappass = 'abcd';
>>> $ds = 'hmnr.hmn.se';
>>> $dn = 'dc=hmn,dc=se';
>>> $ldapport = 389;
>>> $ldapconn = ldap_connect($ds, $ldapport)
>>> or die("Could not connect to LDAP server.");
>>>
>>> if ($ldapconn)
>>> {
>>> ldap_set_option($ldapconn, LDAP_OPT_PROTOCOL_VERSION,3);
>>> ldap_set_option($ldapconn, LDAP_OPT_REFERRALS,0);
>>> $ldapbind = ldap_bind($ldapconn, $ldaprdn, $ldappass);
>>> }
>>> ?>
>>>
>>>
>>> Then I get this error:
>>> Warning: ldap_bind() [function.ldap-bind]: Unable to bind to server:
>>> Can't
>>> contact LDAP server in C:\www\utveckling\ldap2.php on line 14
>>>
>>>
>>> Is there something wrong in my dn ? hmnr is the webbserver
>>>
>>> Best regards
>>> /Gustav Wiberg
>>>
>>> ----- Original Message -----
>>> From: "John Mertic"
>>> To:
>>> Cc:
>>> Sent: Friday, August 24, 2007 9:51 PM
>>> Subject: Re: [PHP-WIN] PHP Windows Installer maintainer finally joins
>>> the
>>> list
>>>
>>>
>>> > On 8/17/07, Niel Archer wrote:
>>> >
>>> >> My own recommendation is based on the manual, and no reflection of
>>> >> the
>>> >> installer
>>> >>
>>> >> "There are several all-in-one installers over the Internet, but none
>>> >> of
>>> >> those are endorsed by PHP.net, as we believe that the manual
>>> >> installation is the best choice to have your system secure and
>>> >> optimised."
>>> >
>>> > That text has now been changed to:
>>> >
>>> > "There are several all-in-one installers over the Internet, but none
>>> > of those are endorsed by PHP.net, as we believe that using one of the
>>> > official windows packages from » http://www.php.net/downloads.php is
>>> > the best choice to have your system secure and optimised."
>>> >
>>> > Hopefully that helps adoption out.
>>> >
>>> > --
>>> > --
>>> > John Mertic "Explaining a joke
>>> > is like dissecting a frog: you
>>> > jmertic@gmail.com understand it better,
>>> > but the frog dies in the
>>> > process."
>>> >
>>> > -Mark Twain
>>> >
>>>
>>>
>>>
>>
>>
>> --
>> --
>> John Mertic "Explaining a joke
>> is like dissecting a frog: you
>> jmertic@gmail.com understand it better,
>> but the frog dies in the
>> process."
>>
>> -Mark Twain
>>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: LDAP and AD
am 27.08.2007 13:38:55 von Elizabeth Smith
Gustav Wiberg wrote:
> Hi there!
>
> Back to my main problem:
>
> I want to achieve this:
>
> I'm about to build an Intranet. The company has Windows Server 2003 and
> IIS 6 installed. They also have active directory.
>
> I want to them to able to log in without entering username and password,
> This can be achieved by not allowing anonymous access. That's not problem.
>
> The issue for me is:
>
> How do I retrieve username of logged in user?
> I want to create an explorer-like window with maps and files, but I want
> the logged in user to have the same restrictions/access for diffrent
> folder as they have in the real explorer.
>
> Is there any way besides ldap I can achieve that? Is LDAP right or wrong
> way to go?
>
> /Gustav
>
Perhaps you need to take a look at http://adldap.sourceforge.net/ -
ready to use code and support for that code. They have information on
how to use information from PHP to "autologin" the user - notice it's
only fully supported with IE transparently, other browsers you'll still
get a popup to enter a username and password.
The error you're getting means your user / password combination is wrong
(invalid credentials)
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/un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Cj4+ID4gSm9obiBNZXJ0aWMgICAgICAgICAgICAgICAg ICAgICAgICAgICAg
ICAgICAgICAgICAgIkV4cGxhaW5pbmcgYSBqb2tlDQo+PiA+IGlzIGxpa2Ug ZGlzc2VjdGluZyBh
IGZyb2c6IHlvdQ0KPj4gPiBqbWVydGljQGdtYWlsLmNvbSAgICAgICAgICAg ICAgICAgICAgICAg
ICAgICAgIHVuZGVyc3RhbmQgaXQgYmV0dGVyLA0KPj4gPiBidXQgdGhlIGZy b2cgZGllcyBpbiB0
aGUNCj4+ID4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAg
ICAgICAgICAgcHJvY2Vzcy4iDQo+PiA+DQo+PiA+ICAgICAgICAgICAgICAg ICAgICAgIC1NYXJr
IFR3YWluDQo+PiA+DQo+Pg0KPj4NCj4+DQo+DQo+DQo+IC0tIA0KPiAtLSAN Cj4gSm9obiBNZXJ0
aWMgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIkV4 cGxhaW5pbmcgYSBq
b2tlDQo+IGlzIGxpa2UgZGlzc2VjdGluZyBhIGZyb2c6IHlvdQ0KPiBqbWVy dGljQGdtYWlsLmNv
bSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHVuZGVyc3RhbmQgaXQg YmV0dGVyLA0KPiBi
dXQgdGhlIGZyb2cgZGllcyBpbiB0aGUNCj4gICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgcHJvY2Vzcy4iDQo+DQo+ICAg ICAgICAgICAgICAg
ICAgICAgIC1NYXJrIFR3YWluDQo+IA0KDQotLSANClBIUCBXaW5kb3dzIE1h aWxpbmcgTGlzdCAo
aHR0cDovL3d3dy5waHAubmV0LykNClRvIHVuc3Vic2NyaWJlLCB2aXNpdDog aHR0cDovL3d3dy5w
aHAubmV0L3Vuc3ViLnBocA0KDQo=
Re: PHP Windows Installer maintainer finally joins the list
am 27.08.2007 15:44:08 von Gustav Wiberg
Hi there!
Aaah. The problem was that I was forced to used HMN\abcd ... Thanx for all
feedback (from all of you!)!
Best regards
/Gustav Wiberg
----- Original Message -----
From:
To:
Sent: Monday, August 27, 2007 2:07 PM
Subject: Re: [PHP-WIN] PHP Windows Installer maintainer finally joins the
list
>I agree, the problem seems to be that you are using an invalid username or
>password.
> Try using an accout with domain administrator rights first. If that
> doesn't work, your username may need to be in the form of
>
> abcd@HMN.se
>
> Or might need to be in the form of the old windows 2000 username
>
> HMN\abcd
>
> I don't know that for sure. It could actually be that the password is not
> correct, but those are some ideas. The original format of the username
> always worked for me.
> Sent via BlackBerry from T-Mobile
>
> -----Original Message-----
> From: "Gustav Wiberg"
>
> Date: Mon, 27 Aug 2007 09:02:16
> To:"John Mertic"
> Cc:
> Subject: Re: [PHP-WIN] PHP Windows Installer maintainer finally joins the
> list
>
> Hi there!
>
> I tried this...
>
> $ldapuser = "abcd@hmn.se";
> $ldappass = "abcd";
>
> $ad = ldap_connect("ldap://HMNR",389)
> or die("Couldn't connect to AD!");
> ldap_set_option($ad, LDAP_OPT_PROTOCOL_VERSION, 3);
> ldap_set_option($ad, LDAP_OPT_REFERRALS, 0);
> $bd = ldap_bind($ad,$ldapuser,$ldappass)
> or die("Couldn't bind to AD!");
>
>
> And I get error:
>
> Warning: ldap_bind() [function.ldap-bind]: Unable to bind to server:
> Invalid
> credentials in C:\www\utveckling\ldap4.php on line 10
> Couldn't bind to AD!
>
>
> I tried this....
> $ldapuser = "abcd@hmn.se";
> $ldappass = "abcd";
>
> $ad = ldap_connect("ldap://whatever",389)
> or die("Couldn't connect to AD!");
> ldap_set_option($ad, LDAP_OPT_PROTOCOL_VERSION, 3);
> ldap_set_option($ad, LDAP_OPT_REFERRALS, 0);
> $bd = ldap_bind($ad,$ldapuser,$ldappass)
> or die("Couldn't bind to AD!");
>
> whatever is NOT a server, and not a computer in the network!
>
> So this means that I find the server, but it seems something wrong with
> username and password? (I know the account exists and is active). Should
> I
> type those in another way?
>
> Warning: ldap_bind() [function.ldap-bind]: Unable to bind to server: Can't
> contact LDAP server in C:\www\utveckling\ldap4.php on line 10
> Couldn't bind to AD!
>
>
> Invalid credentials seems to be something wrong with username and
> password?
> (after some googling) I
>
>
>
> When I don't use username and password I don't recieve any errors.
>
> $ad = ldap_connect(ldap://hmnr,389)
> or die("Couldn't connect to AD!");
> ldap_set_option($ad, LDAP_OPT_PROTOCOL_VERSION, 3);
> ldap_set_option($ad, LDAP_OPT_REFERRALS, 0);
> $bd = ldap_bind($ad)
> or die("Couldn't bind to AD!");
>
> Why is that?
>
> /Gustav
>
>
> ----- Original Message -----
> From: "John Mertic"
> To: "Gustav Wiberg"
> Cc:
> Sent: Saturday, August 25, 2007 9:39 PM
> Subject: Re: [PHP-WIN] PHP Windows Installer maintainer finally joins the
> list
>
>
>> Here's some code I've used in the past, YMMV:
>>
>> $ad = ldap_connect("ldap://{$ldapserver}",389)
>> or die("Couldn't connect to AD!");
>> ldap_set_option($ad, LDAP_OPT_PROTOCOL_VERSION, 3);
>> ldap_set_option($ad, LDAP_OPT_REFERRALS, 0);
>> $bd = ldap_bind($ad,$ldapuser,$ldappass)
>> or die("Couldn't bind to AD!");
>>
>> then continue as before
>>
>> On 8/24/07, Gustav Wiberg wrote:
>>> Hi!
>>>
>>> I've created a testaccount. and tested this simple code...
>>>
>>> I get error code:
>>> Warning: ldap_bind() [function.ldap-bind]: Unable to bind to server:
>>> Invalid
>>> credentials in C:\www\utveckling\ldap.php on line 14
>>> LDAP bind failed...
>>>
>>> The server uses Active Directory. I'm not sure if I'm typing the
>>> username
>>> and password correctly. Is it something you have to in Active Directory
>>> to
>>> activate LDAP-service?
>>>
>>>
>>>
>>>
>>> // using ldap bind
>>> $ldaprdn = 'abcd@hmn.se'; // ldap rdn or dn
>>> $ldappass = 'abcd'; // associated password
>>>
>>> // connect to ldap server
>>> $ldapconn = ldap_connect("127.0.0.1")
>>> or die("Could not connect to LDAP server.");
>>>
>>> if ($ldapconn) {
>>>
>>> // binding to ldap server
>>> $ldapbind = ldap_bind($ldapconn, $ldaprdn, $ldappass);
>>>
>>> // verify binding
>>> if ($ldapbind) {
>>> echo "LDAP bind successful...";
>>> } else {
>>> echo "LDAP bind failed...";
>>> }
>>>
>>> }
>>>
>>> ?>
>>>
>>>
>>>
>>>
>>> I also tested your code with my info, with a testaccount:
>>>
>>>
>>> $ldaprdn = 'abcd@hmn.se';
>>> $ldappass = 'abcd';
>>> $ds = 'hmnr.hmn.se';
>>> $dn = 'dc=hmn,dc=se';
>>> $ldapport = 389;
>>> $ldapconn = ldap_connect($ds, $ldapport)
>>> or die("Could not connect to LDAP server.");
>>>
>>> if ($ldapconn)
>>> {
>>> ldap_set_option($ldapconn, LDAP_OPT_PROTOCOL_VERSION,3);
>>> ldap_set_option($ldapconn, LDAP_OPT_REFERRALS,0);
>>> $ldapbind = ldap_bind($ldapconn, $ldaprdn, $ldappass);
>>> }
>>> ?>
>>>
>>>
>>> Then I get this error:
>>> Warning: ldap_bind() [function.ldap-bind]: Unable to bind to server:
>>> Can't
>>> contact LDAP server in C:\www\utveckling\ldap2.php on line 14
>>>
>>>
>>> Is there something wrong in my dn ? hmnr is the webbserver
>>>
>>> Best regards
>>> /Gustav Wiberg
>>>
>>> ----- Original Message -----
>>> From: "John Mertic"
>>> To:
>>> Cc:
>>> Sent: Friday, August 24, 2007 9:51 PM
>>> Subject: Re: [PHP-WIN] PHP Windows Installer maintainer finally joins
>>> the
>>> list
>>>
>>>
>>> > On 8/17/07, Niel Archer wrote:
>>> >
>>> >> My own recommendation is based on the manual, and no reflection of
>>> >> the
>>> >> installer
>>> >>
>>> >> "There are several all-in-one installers over the Internet, but none
>>> >> of
>>> >> those are endorsed by PHP.net, as we believe that the manual
>>> >> installation is the best choice to have your system secure and
>>> >> optimised."
>>> >
>>> > That text has now been changed to:
>>> >
>>> > "There are several all-in-one installers over the Internet, but none
>>> > of those are endorsed by PHP.net, as we believe that using one of the
>>> > official windows packages from » http://www.php.net/downloads.php is
>>> > the best choice to have your system secure and optimised."
>>> >
>>> > Hopefully that helps adoption out.
>>> >
>>> > --
>>> > --
>>> > John Mertic "Explaining a joke
>>> > is like dissecting a frog: you
>>> > jmertic@gmail.com understand it better,
>>> > but the frog dies in the
>>> > process."
>>> >
>>> > -Mark Twain
>>> >
>>>
>>>
>>>
>>
>>
>> --
>> --
>> John Mertic "Explaining a joke
>> is like dissecting a frog: you
>> jmertic@gmail.com understand it better,
>> but the frog dies in the
>> process."
>>
>> -Mark Twain
>>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php