WRONG_PASSWORD is just an example. Actually I have other failure cases in other VFS operations. I want specific error message to be displayed at client side. I don't know if there is a way to do this.
Thanks Eric On Wed, Dec 19, 2012 at 7:59 PM, Volker Lendecke <volker.lende...@sernet.de>wrote: > On Tue, Dec 18, 2012 at 06:32:12PM +0800, Eric Liu wrote: > > I am writing a VFS module. In certain case, I need to set the error > number > > to NT_STATUS_WRONG_PASSWORD. At the client side, I wish I could see > "Wrong > > password" as error message. However, what I have seen is "No such device > or > > address". They look irrelevant at all. > > So, here is my question. In VFS module, is there any way to customize the > > error message seen at client side? So that the message can actually > reflect > > what has happened in VFS module. > > The SMB protocol allows a proper WRONG_PASSWORD message at > authentication time. When authentication is done, it is > unlikely that clients expect this error and behave according > to your requirements. > > With best regards, > > Volker Lendecke > > > > > Thanks > > Eric > > -- > > To unsubscribe from this list go to the following URL and read the > > instructions: https://lists.samba.org/mailman/options/samba > > -- > SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen > phone: +49-551-370000-0, fax: +49-551-370000-9 > AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen > http://www.sernet.de, mailto:kont...@sernet.de > -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba