[Samba] 3.2.4 CreateDirectory panic

Volker Lendecke Volker.Lendecke at SerNet.DE
Mon Oct 20 11:55:49 GMT 2008


On Mon, Oct 20, 2008 at 01:18:11PM +0200, Peter Rindfuss wrote:
> Hi,
> 
> I have just set up a new 64bit server as PDC with opensuse 11 and samba 
> 3.2.4. The configuration was taken over from suse 10 with samba 3.0.24.
> 
> So far, everything on the new server works fine but this:
> 
> I have a C++ utility program running under win xp which creates users 
> and home directories usind win32 api calls. It worked fine with samba 
> 3.0.24 and before, but causes a samba panic when it executes the 
> CreateDirectory win32 api call for the home directory. A log file 
> snippet is attached.
> 
> My own testing shows that the panic only happens when CreateDirectory is 
> called with a SECURITY_ATTRIBUTES structure in order to set the correct 
> acls for the new directory:
> 
> CreateDirectory(HomePath, &security_attributes); -> panic
> 
> whereas
> CreateDirectory(HomePath, NULL); -> ok
> 
> I tried some variants like
> CreateDirectory ( HomePath, NULL ) ; -> ok
> SetFileSecurity(Homepath, ..., security_descriptor); -> panic
> 
> and finally came up with this solution
> CreateDirectory(HomePath, NULL); -> ok
> SetNamedSecurityInfo( .... ); -> ok
> 
> Strange thing is that in all variants I start out with the same 
> SECURITY_DESCRIPTOR structure.

Can you send me that utility or a sniff?

Volker
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba/attachments/20081020/5a82ab15/attachment.bin


More information about the samba mailing list