Hello,
I'm trying to use the "notify" API of libsmbclient, testing
against a
Samba AD DC. The function is returning with errno=22 (mapped from
NT_STATUS_REVISION_MISMATCH), and I'm getting the following error
message:
smb1cli_req_writev_submit: called for dialect[SMB3_11]
server[dc1.example.com]
It looks like libsmbclient is, for some reason, using SMB1 but needs
to be using SMB3_11.
Note that the following command (which, like my code, forces the use
of Kerberos) works just fine:
$ smbclient -kN //dc1.example.com/sysvol -c 'notify /'
See my proof-of-concept source code here:
https://gitlab.com/JonathonReinhart/libsmbclient-notify-test
Please let me know if I should proceed to open a bug.
Cheers,
Jonathon Reinhart
On Tue, Jul 02, 2019 at 11:24:55PM -0400, Jonathon Reinhart via samba wrote:> Hello, > > I'm trying to use the "notify" API of libsmbclient, testing against a > Samba AD DC. The function is returning with errno=22 (mapped from > NT_STATUS_REVISION_MISMATCH), and I'm getting the following error > message: > > smb1cli_req_writev_submit: called for dialect[SMB3_11] > server[dc1.example.com] > > It looks like libsmbclient is, for some reason, using SMB1 but needs > to be using SMB3_11. > > Note that the following command (which, like my code, forces the use > of Kerberos) works just fine: > > $ smbclient -kN //dc1.example.com/sysvol -c 'notify /' > > See my proof-of-concept source code here: > https://gitlab.com/JonathonReinhart/libsmbclient-notify-test > > Please let me know if I should proceed to open a bug.Yes, please open a bug but specify exactly what version of Samba (client and server) you're using for this. It may have already been fixed upstream (I remember Volker doing something around this :-). Thanks ! Jeremy.
On Wed, Jul 3, 2019 at 12:02 PM Jeremy Allison <jra at samba.org> wrote:> > On Tue, Jul 02, 2019 at 11:24:55PM -0400, Jonathon Reinhart via samba wrote: > > Hello, > > > > I'm trying to use the "notify" API of libsmbclient, testing against a > > Samba AD DC. The function is returning with errno=22 (mapped from > > NT_STATUS_REVISION_MISMATCH), and I'm getting the following error > > message: > > > > smb1cli_req_writev_submit: called for dialect[SMB3_11] > > server[dc1.example.com] > > > > It looks like libsmbclient is, for some reason, using SMB1 but needs > > to be using SMB3_11. > > > > Note that the following command (which, like my code, forces the use > > of Kerberos) works just fine: > > > > $ smbclient -kN //dc1.example.com/sysvol -c 'notify /' > > > > See my proof-of-concept source code here: > > https://gitlab.com/JonathonReinhart/libsmbclient-notify-test > > > > Please let me know if I should proceed to open a bug. > > Yes, please open a bug but specify exactly what version > of Samba (client and server) you're using for this. > > It may have already been fixed upstream (I remember > Volker doing something around this :-). > > Thanks ! > > Jeremy.Thanks Jeremy, I've opened this bug: https://bugzilla.samba.org/show_bug.cgi?id=14025 Jonathon