profile bug and 2.2alpha2

Jeremy Allison jeremy at valinux.com
Sat Feb 3 16:58:32 GMT 2001


On Sat, Feb 03, 2001 at 04:11:33PM +0100, Jean Francois Micouleau wrote:
> 
> 
> samba 2.2alpha2 (and current CVS) is crashing when writing the user's
> profile to the server from a W2K box as reported by others already.
> 
> 
> It's coredumping in unpack_nt_owners():
> 
> 	if (security_info_sent & OWNER_SECURITY_INFORMATION) {
> 		sid_copy(&owner_sid, psd->owner_sid);
> 		if (!sid_to_uid( &owner_sid, puser, &sid_type))
> 			DEBUG(3,("unpack_nt_owners: unable to validate owner sid.\n"));
> 
> exactly in the sid_copy() call.
> 
> now the why: easy there is not owner_sid in the ACL and there is no
> group_sid neither ! 

Thanks JF - I changed that code recently to allow it
to be called from the NTtrans create with SD call - and
I forgot to add the checks on the validity of that
bitfield.

It's a stupid bitfield, as the SD is self describing
anyway :-) :-). Sorry - thanks for the fix.

Jeremy.

- 
--------------------------------------------------------
Buying an operating system without source is like buying
a self-assembly Space Shuttle with no instructions.
--------------------------------------------------------




More information about the samba-technical mailing list