[samba4] nt status returned when credentials are incorrect
abartlet at samba.org
Mon May 22 22:01:06 GMT 2006
On Mon, 2006-05-22 at 18:33 +0200, Rafal Szczesniak wrote:
> Recently, I've been implementing extension to libnet tests which
> attempts to do a rpc connect using incorrect credentials. If expected
> error code is returned, everything is ok. And that's where I encountered
> a small inconsistency. If I try to connect on ncacn_np transport,
> returned code is NT_STATUS_LOGON_FAILURE. If the transport is ncacn_ip_tcp
> or ncalrpc, samba4 returns NT_STATUS_ACCESS_DENIED.
> Note, this was only tested against samba4, I didn't have time to setup
> windows server to verify this behaviour.
> Is such difference ok, or perhaps we have wrong code returned somewhere ?
I was working on this when I flew back from the EU, because I too had
code which relied on the status codes (password callbacks, so you can be
prompted 3 times for a wrong password).
I need to revive at least that part of the patch, which maps bind
failures back to sensible error codes.
Andrew Bartlett http://samba.org/~abartlet/
Authentication Developer, Samba Team http://samba.org
Student Network Administrator, Hawker College http://hawkerc.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 191 bytes
Desc: This is a digitally signed message part
Url : http://lists.samba.org/archive/samba-technical/attachments/20060523/e9c448cf/attachment.bin
More information about the samba-technical