]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
nbt: fix WinXP S3 domain join: alignment of nbt_netlogon_response_from_pdc
authorAndrew Bartlett <abartlet@samba.org>
Wed, 27 Jul 2011 02:04:26 +0000 (12:04 +1000)
committerKarolin Seeger <kseeger@samba.org>
Fri, 29 Jul 2011 19:00:57 +0000 (21:00 +0200)
This fixes WinXP joining a Samba3 domain, which was broken on hosts
with an even number of characters in the host name.  The alignment
requested in the structure was ignored because of the overall
NDR_NOALIGN set on the packet.

Andrew Bartlett

Fix bug #8326 (WinXP cannot join a Samba3 domain with a 'even' hostname).

librpc/idl/nbt.idl

index cbfa9666701bb3862b88c440428e077d4cbb5c7f..ee9a64ed3e588ef9d861f2a4496e40559ede347d 100644 (file)
@@ -494,7 +494,7 @@ interface nbt
        } nbt_netlogon_query_for_pdc;
 
        /* response from pdc */
-       typedef [flag(NDR_NOALIGN),public] struct {
+       typedef [public] struct {
                netlogon_command command;
                astring pdc_name;
                [flag(NDR_ALIGN2)]   DATA_BLOB _pad;