svn commit: samba r8148 - in branches/SAMBA_4_0/source:
auth/kerberos include librpc librpc/idl librpc/ndr torture/auth
metze at samba.org
metze at samba.org
Mon Jul 4 15:42:08 GMT 2005
Author: metze
Date: 2005-07-04 15:42:08 +0000 (Mon, 04 Jul 2005)
New Revision: 8148
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=8148
Log:
- make the PAC generation code a bit more readable and add some outof memory checks
- move to handmodified pull/push code for PAC_BUFFER
to get the _ndr_size field and the subcontext size right
- after looking closely to the sample w2k3 PAC in our torture test (and some more in my archive)
I found out that the first uint32 before the netr_SamInfo3 was also a pointer,
(and we passed a NULL pointer there before, so I think that was the reason why the windows clients doesn't want our PAC)
w2k3 uses this for unique pointers:
ptr = ndr->ptr_count * 4;
ptr |= 0x00020000;
ndr->ptr_count;
- do one more pull/push round with the sample PAC
metze
Added:
branches/SAMBA_4_0/source/librpc/ndr/ndr_krb5pac.c
Modified:
branches/SAMBA_4_0/source/auth/kerberos/kerberos_pac.c
branches/SAMBA_4_0/source/include/structs.h
branches/SAMBA_4_0/source/librpc/config.mk
branches/SAMBA_4_0/source/librpc/idl/krb5pac.idl
branches/SAMBA_4_0/source/librpc/ndr/libndr.h
branches/SAMBA_4_0/source/torture/auth/pac.c
Changeset:
Sorry, the patch is too large (536 lines) to include; please use WebSVN to see it!
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=8148
More information about the samba-cvs
mailing list