Does samba4 support to join windows server 2003 domain as RODC ?

hy wu wuhysmb at
Mon Aug 10 09:14:15 UTC 2015

Hi list,

I created a domain by using windows server 2003r2, then I tried to join as
RODC , it failed.

[/mnt/HDA_ROOT] # /usr/local/samba/bin/samba-tool domain join test.ork RODC
Finding a writeable DC for domain 'test.ork'
Found DC qnap03r2.test.ork
Password for [WORKGROUP\administrator]:
workgroup is TEST
realm is test.ork
ERROR(<type 'exceptions.KeyError'>): uncaught exception - 'No such element'
line 175, in _run
    return*args, **kwargs)
"/usr/local/samba/lib/python2.7/site-packages/samba/netcmd/", line
558, in run
  File "/usr/local/samba/lib/python2.7/site-packages/samba/", line
1047, in join_RODC
    mysid = ctx.get_mysid()
  File "/usr/local/samba/lib/python2.7/site-packages/samba/", line
298, in get_mysid
    binsid = res[0]["tokenGroups"][0]


I checked get_mysid function in, I found follow comment.

        '''get the SID of the connected user. Only works with w2k8 and
           so only used for RODC join'''


 If samba4 support join to 2003r2 domain as RODC in current verions ??


More information about the samba-technical mailing list