samba-technical Digest, Vol 90, Issue 7

mariA Montilla srmaria_123 at hotmail.com
Sun Jun 6 13:19:39 MDT 2010



 
From: samba-technical-request at lists.samba.org
Subject: samba-technical Digest, Vol 90, Issue 7
To: samba-technical at lists.samba.org
Date: Sun, 6 Jun 2010 12:00:02 -0600

Send samba-technical mailing list submissions to
	samba-technical at lists.samba.org
 
To subscribe or unsubscribe via the World Wide Web, visit
	https://lists.samba.org/mailman/listinfo/samba-technical
or, via email, send a message with subject or body 'help' to
	samba-technical-request at lists.samba.org
 
You can reach the person managing the list at
	samba-technical-owner at lists.samba.org
 
When replying, please edit your Subject line so it is more specific
than "Re: Contents of samba-technical digest..."


--Archivo adjunto de mensaje reenviado--
From: mat at samba.org
To: samba-technical at lists.samba.org
Date: Sat, 5 Jun 2010 23:31:04 +0400
Subject: Re: removing previously stored generated attributes

On 05/06/2010 19:59, Matthieu Patou wrote:
> On 05/06/2010 03:49, Andrew Bartlett wrote:
>> On Fri, 2010-06-04 at 17:09 +0400, Matthieu Patou wrote:
>>> Hi Andrew,
>>> On 04/06/2010 15:48, Andrew Bartlett wrote:
>>>> On Fri, 2010-06-04 at 09:53 +0400, Matthieu Patou wrote:
>>>>
>>>>> Hello,
>>>>>
>>>>> While trying to do it with msds-keyversionnumber I find the pb far 
>>>>> from
>>>>> being trivial.
>>>>>
>>>>> The thing is that with a given provision we have some attributes that
>>>>> are marked as automatically generated and that used to be stored 
>>>>> in the
>>>>> database.
>>>>> A search with an "old" provision but new code will return the 
>>>>> calculated
>>>>> attribute what ever the stored version is.
>>>>> So to access to the stored version I have the impression that I 
>>>>> should
>>>>> go without the modules and access the ldb at the low level.
>>>>>
>>>>> Well accessing at low level is not such big problem I think, but 
>>>>> if we
>>>>> want also to get rid of previously stored values we have also to 
>>>>> remove
>>>>> old version.
>>>>>
>>>>> I can really well remember andrew B. saying that this should not 
>>>>> be done
>>>>> otherwise we have the risk to broke or mess indexes.
>>>>>
>>>> Correct.  It is quite dangerous to access the DB for write access
>>>> without the schema loaded.
>>>>
>>> Well loading the schema is useless without the modules I guess. What is
>>> the risk when messing with not anymore used attribute ?
>> If a reindex is somehow triggered, yes.
> After digging in the code I found that it could be possible to add a 
> special rule in objectclass to authorize the deletion of a constructed 
> attribute when the relax control is used.
>
> What do you think of this idea, it allow to clean our databases 
> without going raw access.
>
 
Well in fact it turns out that I can remove the attribute from the db 
with a small change on objectclass.c but the side effect is that after 
the attribute is not searchable anymore even without any controls. I 
suppose that it is written has removed in the replPropertyMetaData and 
so not returned to the caller.
 
Matthieu.
 
-- 
Matthieu Patou
Samba Team        http://samba.org
 
 


--Archivo adjunto de mensaje reenviado--
From: mat at samba.org
To: samba-technical at lists.samba.org
Date: Sat, 5 Jun 2010 23:31:53 +0400
Subject: Re: removing previously stored generated attributes

On 05/06/2010 10:35, Matthieu Patou wrote:
> On 05/06/2010 07:16, simo wrote:
>> On Sat, 2010-06-05 at 09:49 +1000, Andrew Bartlett wrote:
>>> A custom control to stop this behaviour in the operational module
>>> would
>>> seem to be the right thing.
>> We should probably implement and use the ManageDsaIT control for this
>> (see RFC 3296), not invent a custom control.
>> This control is explicitly built to "manage" attributes that you would
>> normally not be able to manipulate.
>>
> Well I wasn't too willing to implement one more control, but it seems 
> that it's the best idea.
> My plan is to make this control only available from local, any 
> objections ?
>
> Matthieu.
>
Find attached 2 patchs for implementing this.
 
Feel free to give me some feeback.
 
-- 
Matthieu Patou
Samba Team        http://samba.org
 


--Archivo adjunto de mensaje reenviado--
From: uri_simchoni at hotmail.com
CC: samba-technical at lists.samba.org
To: longli at microsoft.com; volker.lendecke at sernet.de
Date: Sun, 6 Jun 2010 07:39:44 +0300
Subject: RE: Win7 blue screen when accessing previous version of a share

 
Hi Long,
 
Attached pls find the smb.conf. The file system is ext3 with options acl,user_xattr
I'm sending you the other stuff in a private message (too large for the list).
 
Thanks,
Uri.
 
> From: longli at microsoft.com
> To: uri_simchoni at hotmail.com; volker.lendecke at sernet.de
> CC: samba-technical at lists.samba.org
> Subject: RE: Win7 blue screen when accessing previous version of a share
> Date: Fri, 4 Jun 2010 07:15:01 +0000
> 
> Hi Uri,
> 
> I'm working on a repro so we can debug this issue at Windows side. But I'm having some bad luck repro it :)
> 
> Can you share your smb.conf file and log.smbd (or <windows-host>.smbd) at the time of crash? What file system and mounting options do you use?
> 
> Thanks!
> 
> Long
> 
> 
> -----Original Message-----
> From: Uri Simchoni [mailto:uri_simchoni at hotmail.com] 
> Sent: Wednesday, June 02, 2010 12:17 AM
> To: volker.lendecke at sernet.de
> Cc: samba-technical at lists.samba.org
> Subject: RE: Win7 blue screen when accessing previous version of a share
> 
> 
> Attached.
> 
> The odd W2K3 server behavior appears to begin in packet 250.
> 
>  
> 
> Thanks!
> 
> Uri.
>  
> > Date: Tue, 1 Jun 2010 17:13:20 +0200
> > From: Volker.Lendecke at SerNet.DE
> > To: uri_simchoni at hotmail.com
> > CC: samba-technical at lists.samba.org
> > Subject: Re: Win7 blue screen when accessing previous version of a 
> > share
> > 
> > 
> > Can you get us network traces of Windows 7 running both against 
> > Windows server and Samba?
> > 
> > http://wiki.samba.org/index.php/Capture_Packets
> > 
> > Thanks,
> > 
> > Volker
>  		 	   		  
> _________________________________________________________________
> Your E-mail and More On-the-Go. Get Windows Live Hotmail Free.
> https://signup.live.com/signup.aspx?id=60969
 		 	   		  
_________________________________________________________________
Hotmail: Free, trusted and rich email service.
https://signup.live.com/signup.aspx?id=60969


--Archivo adjunto de mensaje reenviado--
From: mdw at samba.org
CC: samba-technical at lists.samba.org
To: mat at samba.org
Date: Sun, 6 Jun 2010 18:52:14 +0200
Subject: Re: removing previously stored generated attributes

Hi ekacnet,
 
I would like to remind you that we perform indentations in C source 
always using tabs (in Python it's the opposite I know). Please adjust 
this in your "operational.c" patch. This will also make the review a lot 
easier.
 
Greets,
Matthias
 
Matthieu Patou wrote:
> On 05/06/2010 10:35, Matthieu Patou wrote:
>> On 05/06/2010 07:16, simo wrote:
>>> On Sat, 2010-06-05 at 09:49 +1000, Andrew Bartlett wrote:
>>>> A custom control to stop this behaviour in the operational module
>>>> would
>>>> seem to be the right thing.
>>> We should probably implement and use the ManageDsaIT control for this
>>> (see RFC 3296), not invent a custom control.
>>> This control is explicitly built to "manage" attributes that you would
>>> normally not be able to manipulate.
>>>
>> Well I wasn't too willing to implement one more control, but it seems 
>> that it's the best idea.
>> My plan is to make this control only available from local, any 
>> objections ?
>>
>> Matthieu.
>>
> Find attached 2 patchs for implementing this.
>
> Feel free to give me some feeback.
>
 
 
 		 	   		  
_________________________________________________________________
Discover the new Windows Vista
http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE


More information about the samba-technical mailing list