<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Yes, I agree that's not perfect. But I can't find a decent way
within the existing data structures of implementing this without a
nasty hack :-(<br>
<br>
There are other reasons the authentication might fail, even when
they have put in the right username and password, such as too many
failed login attempts causing them to be locked out. But that's all
implemented in a different place, which doesn't have access to the
LDAP code at all.<br>
<br>
The return code is just a true/false value, and I really don't want
to change that if I can avoid it. Using a non-zero value to
represent failure is *really bad* in my book, as in the current code
a result of 0 is failure and 1 is success. I really don't want to
represent "failure but for a different reason" as 2.<br>
<br>
I admit you get the "username or password incorrect" error message
as well, when ideally you shouldn't, but at least the first error
message it gives is the correct one.<br>
<br>
Any better ideas of how I can implement it neatly and logically?<br>
<br>
Jules.<br>
<br>
On 14/12/2010 15:09, <a class="moz-txt-link-abbreviated" href="mailto:patrick.gaikowski@kaufland.com">patrick.gaikowski@kaufland.com</a> wrote:
<blockquote
cite="mid:OFA3BBB9C5.097B73FB-ONC12577F9.00517011-C12577F9.00534F96@de.int.kaufland"
type="cite">
<p>Hello Jules,<br>
<br>
yes this was the missing point. <br>
<br>
An optimization would be to have only the error message
"Authorisation failed" when the Authentication was successful.
In this context the Input credentials seems to be wrong but the
aren't. As you can see on the screenshot the user seems to be
logged in but isn't logged in because auf missing rights.<br>
<br>
<br>
<img src="cid:part1.06010808.08090208@Zend.To" alt=""
height="331" width="584"><br>
<br>
<br>
<img src="cid:part2.09020605.02010902@Zend.To" alt=""
height="30" width="430"><br>
<br>
<br>
Greetings<br>
<br>
Patrick<br>
<br>
<br>
<br>
<a moz-do-not-send="true" href="http://www.kaufland.de">http://www.kaufland.de</a>
<br>
<br>
Kaufland Informationssysteme GmbH & Co. KG<br>
Postfach 12 53 - 74149 Neckarsulm<br>
Kommanditgesellschaft<br>
Sitz: Neckarsulm<br>
Registergericht: Amtsgericht Stuttgart HRA 104163<br>
<br>
Diese Nachricht enthält vertrauliche Informationen und ist
ausschließlich für<br>
den Adressaten bestimmt. Jeder Gebrauch durch Dritte ist
verboten. Falls Sie<br>
die Daten irrtümlich erhalten haben, nehmen Sie bitte Kontakt
mit dem<br>
Absender auf und löschen Sie die Daten auf jedem Computer und
Datenträger.<br>
This message contains confidential information and is intended
solely for the<br>
use by the addressee. Any use of this message by a third party
is prohibited.<br>
If you receive this message in error, please contact the sender
and delete the<br>
data from any computer and data carrier. <br>
</p>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
ZendTo mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ZendTo@zend.to">ZendTo@zend.to</a>
<a class="moz-txt-link-freetext" href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto">http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto</a></pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">Jules
--
Julian Field MEng CITP CEng
<a class="moz-txt-link-abbreviated" href="http://www.Zend.To">www.Zend.To</a>
Need help fixing or optimising your systems?
Contact me!
Need help getting you started solving new requirements from your boss?
Contact me!
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
Follow me at twitter.com/JulesFM
</pre>
</body>
</html>