moving users and groups to an ou ?

denis bonnenfant denis.bonnenfant at diderot.org
Thu Jun 7 14:40:28 MDT 2012


Le 07/06/2012 18:58, denis bonnenfant a écrit :
> Le 07/06/2012 14:35, denis bonnenfant a écrit :
>> Le 07/06/2012 13:07, Lukasz Zalewski a écrit :
>>> On 07/06/12 11:25, Andrew Bartlett wrote:
>>>> On Thu, 2012-06-07 at 10:49 +0200, denis.bonnenfant wrote:
>>>>> Hello,
>>>>> I'm working on adding support in samba-tool for moving users and 
>>>>> groups
>>>>> to OUs, just like the windows mmc utility does. This is required for
>>>>> command-line GPO support.
>>>>> ....
>>>>> I tried with an ldif message, but i get the same errors. My 
>>>>> conclusion
>>>>> is that I have to bypass the samdb module constraints,  is there a 
>>>>> way
>>>>> to do that in python ? And in this case, does the groups memberships
>>>>> will be updated ?
>>>>
>>>> Why are you not just renaming the users?  You cannot just delete 
>>>> and add
>>>> users like that.
> I have an  error :
>
> ERROR(ldb): Failed to move user "some.user" - objectclass_attrs: 
> attribute 'newrdn' on entry 
> 'CN=some.user,OU=Test2,OU=Parcs,DC=diderot,DC=org' was not found in 
> the schema!
>
>  I dig in the code and found nothing related to modifydn operations. 
> Did I missed something ?

Forgot it. I was searching modifydn and it was just called rename...




More information about the samba-technical mailing list