[Samba] Samba4.6 - Groups creation/import fails

Julien TEHERY julien.tehery at openevents.fr
Fri Jun 8 14:14:59 UTC 2018


Le 08/06/2018 à 15:44, Arnaud FLORENT via samba a écrit :
> hello
>
> another object (not a group) ie user / computer with the name mygroup 
> can also exist and prevent group creation...
>
> see
>
> https://wiki.samba.org/index.php/Migrating_a_Samba_NT4_Domain_to_Samba_AD_(Classic_Upgrade) 
>
>
>
>      Prevent failure due to common user/group names
>
> If you have any usernames that are the same as a groupname, you will 
> have to rename one of them. Otherwise the provisioning will fail 
> („ProvisioningError: Please remove common user/group names before 
> upgrade.“). Also, if you have unique groups that, for whatever 
> historical reason, share the same displayName, they will have to be 
> edited so that all the displayNames are different.
>
>
>
> Le 08/06/2018 à 15:36, Julien TEHERY via samba a écrit :
>> Hello,
>>
>> Actually migrating users/groups from samba3 to samba4 (in a separate 
>> domaine), i succeeded in importing users/gruops and their attributes.
>> But For a reason i don't know some (a few) groups are not being 
>> created, and i get this error:
>>
>> "Failed to create group "MYGROUP" - samldb: Account name 
>> (sAMAccountName) 'MYGROUP' already in use! "
>>
>> Searching in ADUC no such group exists.
>> Searching with "wbinfo -g" either
>>
>> I also tried a dbcheck in case something was corrupt, but had 0 
>> errors to fix.
>>
>> I also restarted samba/winbind just to see if there were any kind of 
>> cache or not. Nothing changed.
>>
>> Has any of you ever experienced such problems in creating objects 
>> that are told to already exist ?
>>
>>
>> My env: Samba 4.6.4
>>
>>
>> Regards,
>>
>>
>>
>
@Rowland : you're right getent shows me a user exists with this name.

@Arnaud: Thanks for your link, i didn't knew that.






More information about the samba mailing list