|
|
|
date: Sat, 08 Dec 2007 14:27:10 GMT,
group: microsoft.public.exchange.development
back
Re: An API for Password Validation?
Ray Paseur wrote in
news:Obe7j.8918$Fa7.1644@newsfe17.lga:
> The perfect solution, except that I'm using PHP and some of my web
> hosts don't have the LDAP extensions installed. Is there a way to
> talk directly to LDAP with an HTTP[S] request?
As someone else said, no -- HTTP is not LDAP. If your LDAP server
provides an HTTP interface, that would be convenient, but it's not
guaranteed. There's a number of solutions:
1. as mentioned, write a webservice to do the LDAP call and call that
service from HTTP.
2. possibly you could set up a password-protected section of a website,
try and get a page from that site passing in username and password to
check, and if you get 403 access denied back, the username/pw is wrong.
You'd have to set that page up to only be available to people who can log
in using [any valid network account], and I don't know how easy that would
be to do, it'd depend on the server in question. IIS, probably not too
bad; others, possibly much more awkward.
-- dan
date: Wed, 12 Dec 2007 09:32:41 -0800
author: Dan Mitchell
Re: An API for Password Validation?
Thanks to all for your suggestions. Best, ~Ray
Dan Mitchell wrote in
news:Xns9A046B4524111djmitchellayahoocom@207.46.248.16:
> Ray Paseur wrote in
> news:Obe7j.8918$Fa7.1644@newsfe17.lga:
>> The perfect solution, except that I'm using PHP and some of my web
>> hosts don't have the LDAP extensions installed. Is there a way to
>> talk directly to LDAP with an HTTP[S] request?
>
> As someone else said, no -- HTTP is not LDAP. If your LDAP server
> provides an HTTP interface, that would be convenient, but it's not
> guaranteed. There's a number of solutions:
>
> 1. as mentioned, write a webservice to do the LDAP call and call that
> service from HTTP.
>
> 2. possibly you could set up a password-protected section of a
> website,
> try and get a page from that site passing in username and password to
> check, and if you get 403 access denied back, the username/pw is
> wrong. You'd have to set that page up to only be available to people
> who can log in using [any valid network account], and I don't know how
> easy that would be to do, it'd depend on the server in question. IIS,
> probably not too bad; others, possibly much more awkward.
>
> -- dan
>
date: Thu, 13 Dec 2007 01:06:21 GMT
author: Ray Paseur
|
|