<div dir="ltr"><br><br><div class="gmail_quote">On Mon, Nov 10, 2008 at 4:45 PM, David Faure <span dir="ltr"><<a href="mailto:faure@kde.org" target="_blank">faure@kde.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div>On Monday 03 November 2008, Lior Mualem wrote:<br>
> I'm working on enabling to keep password in the samba ioslave and I've<br>
> looked into the FTP slave's was of keeping a password and I've noticed the<br>
> following rather broken behaviour:<br>
> I enter the url "<a href="ftp://mysite" target="_blank">ftp://mysite</a>" which requires me to enter with a user and<br>
> not as anonymous.<br>
> I give it one user(user1) and keep the password, then give it a different<br>
> user(user2) and keep his password.<br>
> On the third time I try to log in it works fine, I have to choice of 2<br>
> previously logged in users.<br>
><br>
> So far so good, now here comes the weird part - When I look at my wallet,<br>
> both user/password pairs are kept under the anonymous user login -<br>
> "ftp-anonymous@mysite:-1".<br>
> It means that when I try to enter with the url "<a href="ftp://user1" target="_blank">ftp://user1</a>@mysite" it<br>
> doesn't know that I asked to save that user's password and if I save the<br>
> password again, it saves it under "ftp-user1@mysite:-1"<br>
><br>
> Is this the required behaviour?<br>
<br>
</div>Well if it was saved into ftp-user1@ in the first place, then it wouldn't be<br>
used when doing <a href="ftp://yoursite" target="_blank">ftp://yoursite</a>, I think, since there is no explicit user in that username.<br>
The "-anonymous" is confusing, maybe it should be removed. But off the top of my<br>
head I don't see a way to do this differently, unless maybe we can iterate over all ftp-*@yoursite<br>
in kpasswdserver when looking for the available login+passwords. Feel free to have<br>
a look there (after all, this is kde-core-devel; if you want me to fix it, file a bug report<br>
and wait until it comes on top of the list - which can take a few years :-)</blockquote><div><br>I had no intention of waiting for you to do it, I want to get my hands dirty :-)<br><br>The reason I'm asking is that this seemed a bit flawed. Not the fact that the saved users / passwords are kept under the anonymous user but the fact that if I do specify a user on the URL, it doesn't remember the password. I'll do the change and post a patch but I thought that there might be a reason for the way it is now..<br>

<br><br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<font color="#888888"><br>
--<br>
David Faure, <a href="mailto:faure@kde.org" target="_blank">faure@kde.org</a>, sponsored by Qt Software @ Nokia to work on KDE,<br>
Konqueror (<a href="http://www.konqueror.org" target="_blank">http://www.konqueror.org</a>), and KOffice (<a href="http://www.koffice.org" target="_blank">http://www.koffice.org</a>).<br>
</font></blockquote></div><br></div>