Hi folks, I manage the AD with rsat and recently we had problems with the CN of some users that have accentuation. When checking the user configuration via samba-tool user edit <username> in the location where the CN should be readable, a hexadecimal or something of that type appears. E.g: Acentuação da Silva dn: CN=Acentuação da Silva,OU=TESTE,DC=teste,DC=intra objectClass: top objectClass: person objectClass: organizationalPerson objectClass: user cn:: QWNlbnR1YcOnw6NvIGRhIFNpbHZh sn: da Silva givenName:: QWNlbnR1YcOnw6Nv instanceType: 4 whenCreated: 20180312195626.0Z whenChanged: 20180312195626.0Z displayName:: QWNlbnR1YcOnw6NvIGRhIFNpbHZh uSNCreated: 114017 name:: QWNlbnR1YcOnw6NvIGRhIFNpbHZh objectGUID: b4e527e8-229a-46f5-8c6e-33fe7a6b034d badPwdCount: 0 codePage: 0 countryCode: 0 badPasswordTime: 0 lastLogoff: 0 lastLogon: 0 primaryGroupID: 513 objectSid: S-1-5-21-2137976744-3574706186-1594704298-5551 accountExpires: 9223372036854775807 logonCount: 0 sAMAccountName: usuario777 sAMAccountType: 805306368 userPrincipalName: usuario777 at campus.sertao.ifrs.edu.br objectCategory: CN=Person,CN=Schema,CN=Configuration, DC=teste,DC=intra pwdLastSet: 131653581863461020 userAccountControl: 512 uSNChanged: 114020 distinguishedName:: Q049QWNlbnR1YcOnw6NvIGRhIFNpbHZhLE9VPVRFU1RFLE9VPVVTVUFSSU 9TLE9VPUNBTVBVUyxEQz1jYW1wdXMsREM9c2VydGFvLERDPWlmcnMsREM9ZWR1LERDPWJy Any configuration I need to put in smb.conf? -- Elias Pereira
Am Montag, 12. März 2018, 17:01:24 CET schrieb Elias Pereira via samba:> Hi folks, > > I manage the AD with rsat and recently we had problems with the CN of > some users that have accentuation. When checking the user > configuration via samba-tool user edit <username> in the location > where the CN should be readable, a hexadecimal or something of that > type appears. > > E.g: Acentuação da Silva > > dn: CN=Acentuação da Silva,OU=TESTE,DC=teste,DC=intra > objectClass: top > objectClass: person > objectClass: organizationalPerson > objectClass: user > cn:: QWNlbnR1YcOnw6NvIGRhIFNpbHZh > sn: da Silva > givenName:: QWNlbnR1YcOnw6Nv > instanceType: 4 > whenCreated: 20180312195626.0Z > whenChanged: 20180312195626.0Z > displayName:: QWNlbnR1YcOnw6NvIGRhIFNpbHZh > uSNCreated: 114017 > name:: QWNlbnR1YcOnw6NvIGRhIFNpbHZh > objectGUID: b4e527e8-229a-46f5-8c6e-33fe7a6b034d > badPwdCount: 0 > codePage: 0 > countryCode: 0 > badPasswordTime: 0 > lastLogoff: 0 > lastLogon: 0 > primaryGroupID: 513 > objectSid: S-1-5-21-2137976744-3574706186-1594704298-5551 > accountExpires: 9223372036854775807 > logonCount: 0 > sAMAccountName: usuario777 > sAMAccountType: 805306368 > userPrincipalName: usuario777 at campus.sertao.ifrs.edu.br > objectCategory: CN=Person,CN=Schema,CN=Configuration, > DC=teste,DC=intra > pwdLastSet: 131653581863461020 > userAccountControl: 512 > uSNChanged: 114020 > distinguishedName:: > Q049QWNlbnR1YcOnw6NvIGRhIFNpbHZhLE9VPVRFU1RFLE9VPVVTVUFSSU > 9TLE9VPUNBTVBVUyxEQz1jYW1wdXMsREM9c2VydGFvLERDPWlmcnMsREM9ZWR1LERDPWJ > y > > Any configuration I need to put in smb.conf?No, it is just ldap standard to base64 encode such strings. $ echo QWNlbnR1YcOnw6NvIGRhIFNpbHZh|base64 -d;echo Acentuação da Silva $ echo Q049QWNlbnR1YcOnw6NvIGRhIFNpbHZhLE9VPVRFU1RFLE9VPVVTVUFSSU9TLE9VPUNBTVBVUyxEQz1jYW1wdXMsREM9c2VydGFvLERDPWlmcnMsREM9ZWR1LERDPWJy|base64 -d;echo CN=Acentuação da Silva,OU=TESTE,OU=USUARIOS,OU=CAMPUS,DC=campus,DC=sertao,DC=ifrs,DC=edu,DC=br -- Gruss Harry Jede
Ok. Thanks for the help Harry! :D On Mon, Mar 12, 2018 at 6:12 PM, Harry Jede <walk2sun at arcor.de> wrote:> Am Montag, 12. März 2018, 17:01:24 CET schrieb Elias Pereira via samba: > > > Hi folks, > > > > > > I manage the AD with rsat and recently we had problems with the CN of > > > some users that have accentuation. When checking the user > > > configuration via samba-tool user edit <username> in the location > > > where the CN should be readable, a hexadecimal or something of that > > > type appears. > > > > > > E.g: Acentuação da Silva > > > > > > dn: CN=Acentuação da Silva,OU=TESTE,DC=teste,DC=intra > > > objectClass: top > > > objectClass: person > > > objectClass: organizationalPerson > > > objectClass: user > > > cn:: QWNlbnR1YcOnw6NvIGRhIFNpbHZh > > > sn: da Silva > > > givenName:: QWNlbnR1YcOnw6Nv > > > instanceType: 4 > > > whenCreated: 20180312195626.0Z > > > whenChanged: 20180312195626.0Z > > > displayName:: QWNlbnR1YcOnw6NvIGRhIFNpbHZh > > > uSNCreated: 114017 > > > name:: QWNlbnR1YcOnw6NvIGRhIFNpbHZh > > > objectGUID: b4e527e8-229a-46f5-8c6e-33fe7a6b034d > > > badPwdCount: 0 > > > codePage: 0 > > > countryCode: 0 > > > badPasswordTime: 0 > > > lastLogoff: 0 > > > lastLogon: 0 > > > primaryGroupID: 513 > > > objectSid: S-1-5-21-2137976744-3574706186-1594704298-5551 > > > accountExpires: 9223372036854775807 > > > logonCount: 0 > > > sAMAccountName: usuario777 > > > sAMAccountType: 805306368 > > > userPrincipalName: usuario777 at campus.sertao.ifrs.edu.br > > > objectCategory: CN=Person,CN=Schema,CN=Configuration, > > > DC=teste,DC=intra > > > pwdLastSet: 131653581863461020 > > > userAccountControl: 512 > > > uSNChanged: 114020 > > > distinguishedName:: > > > Q049QWNlbnR1YcOnw6NvIGRhIFNpbHZhLE9VPVRFU1RFLE9VPVVTVUFSSU > > > 9TLE9VPUNBTVBVUyxEQz1jYW1wdXMsREM9c2VydGFvLERDPWlmcnMsREM9ZWR1LERDPWJ > > > y > > > > > > Any configuration I need to put in smb.conf? > > No, it is just ldap standard to base64 encode such strings. > > > > $ echo QWNlbnR1YcOnw6NvIGRhIFNpbHZh|base64 -d;echo > > Acentuação da Silva > > > > $ echo Q049QWNlbnR1YcOnw6NvIGRhIFNpbHZhLE9VPVRFU1RFLE9VPVVTVUFSSU9T > LE9VPUNBTVBVUyxEQz1jYW1wdXMsREM9c2VydGFvLERDPWlmcnMsREM9ZWR1LERDPWJy|base64 > -d;echo > > CN=Acentuação da Silva,OU=TESTE,OU=USUARIOS,OU> CAMPUS,DC=campus,DC=sertao,DC=ifrs,DC=edu,DC=br > > > > > > -- > > > > Gruss > > Harry Jede >-- Elias Pereira