[Samba] Errors connecting to Windows Domain with Samba 4.

todd kman tkman26 at yahoo.com
Wed Dec 19 14:10:03 MST 2012


Hi all.
It's great to see Samba4 has gone generally available.
  
I am trying to set up a Samba4 server to connect to an existing Windows domain with a windows AD server.
I am able to follow the instructions here: https://wiki.samba.org/index.php/Samba4/HOWTO#HOWTO_to_set_up_a_AD_DC
I can download using git. Compile. Make. And install.
This seems to all work.
I then follow the instructions for connecting to an existing domain from here:
https://wiki.samba.org/index.php/Samba4/HOWTO/Join_a_domain_as_a_DC
When I attempt the join it starts well but then I receive an error:
Failed to apply records: attribute 'msExchOWATranscodingFileTypes': v
 
Does anyone have suggestions for investigating this error?
 
Do I need to create a special user in the Samba server?
 
So far I have assumed whenever it asked for an administrator user ID that I should be using one that is valid in the existing Windows domain.
I have no problem with the kinit and klist commands. These work.
Samba version is 4.0.0alpha18
root at com30:~# samba -V 
Version 4.0.0alpha18
When I do the client list I don't see any netlogon or sysvol. Is this part of the problem?
root at com30:~# /usr/local/samba/bin/smbclient -L localhost -U%
>>Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.6.3]
>>Sharename Type Comment
>>--------- ---- -------
>>print$ Disk Printer Drivers
>>IPC$ IPC IPC Service (com30 server (Samba, Ubuntu))
>>
>> 

The full output from the Join is below.


root at com30://usr/local/samba/sbin# //usr/local/samba/bin/samba-tool domain join company.local DC -Uadmin --realm=company.local
Finding a writeable DC for domain 'company.local'
Found DC com-server-2.company.local
Password for [company\admin]:
workgroup is company
realm is company.local
checking sAMAccountName
Adding CN=com30,OU=Domain Controllers,DC=company,DC=local
Adding CN=com30,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=company,DC=local
Adding CN=NTDS Settings,CN=com30,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=company,DC=local
Adding SPNs to CN=com30,OU=Domain Controllers,DC=company,DC=local
Setting account password for com30$
Enabling account
Calling bare provision
No IPv6 address will be assigned
Provision OK for domain DN DC=company,DC=local
Starting replication
Schema-DN[CN=Schema,CN=Configuration,DC=company,DC=local] objects[402] linked_values[0]
Schema-DN[CN=Schema,CN=Configuration,DC=company,DC=local] objects[804] linked_values[0]
Schema-DN[CN=Schema,CN=Configuration,DC=company,DC=local] objects[1206] linked_values[0]
Schema-DN[CN=Schema,CN=Configuration,DC=company,DC=local] objects[1608] linked_values[0]
Schema-DN[CN=Schema,CN=Configuration,DC=company,DC=local] objects[2010] linked_values[0]
Schema-DN[CN=Schema,CN=Configuration,DC=company,DC=local] objects[2412] linked_values[0]
Schema-DN[CN=Schema,CN=Configuration,DC=company,DC=local] objects[2814] linked_values[0]
Schema-DN[CN=Schema,CN=Configuration,DC=company,DC=local] objects[3032] linked_values[0]
Analyze and apply schema objects
Partition[CN=Configuration,DC=company,DC=local] objects[402] linked_values[0]
Partition[CN=Configuration,DC=company,DC=local] objects[804] linked_values[0]
Partition[CN=Configuration,DC=company,DC=local] objects[1206] linked_values[0]
Partition[CN=Configuration,DC=company,DC=local] objects[1608] linked_values[0]
Partition[CN=Configuration,DC=company,DC=local] objects[2010] linked_values[0]
Partition[CN=Configuration,DC=company,DC=local] objects[2412] linked_values[0]
Partition[CN=Configuration,DC=company,DC=local] objects[2814] linked_values[0]
Partition[CN=Configuration,DC=company,DC=local] objects[3216] linked_values[0]
Partition[CN=Configuration,DC=company,DC=local] objects[3618] linked_values[0]
Partition[CN=Configuration,DC=company,DC=local] objects[4009] linked_values[0]
Partition[CN=Configuration,DC=company,DC=local] objects[4238] linked_values[0]
Partition[CN=Configuration,DC=company,DC=local] objects[4395] linked_values[0]
Partition[CN=Configuration,DC=company,DC=local] objects[4554] linked_values[0]
Partition[CN=Configuration,DC=company,DC=local] objects[4737] linked_values[0]
Partition[CN=Configuration,DC=company,DC=local] objects[4837] linked_values[0]
Partition[CN=Configuration,DC=company,DC=local] objects[4922] linked_values[0]
Partition[CN=Configuration,DC=company,DC=local] objects[5010] linked_values[0]
Partition[CN=Configuration,DC=company,DC=local] objects[5097] linked_values[0]
Partition[CN=Configuration,DC=company,DC=local] objects[5183] linked_values[0]
Partition[CN=Configuration,DC=company,DC=local] objects[5272] linked_values[0]
Partition[CN=Configuration,DC=company,DC=local] objects[5411] linked_values[0]
Failed to apply records: attribute 'msExchOWATranscodingFileTypes': value #1 on 'CN=owa (Default Web Site),CN=HTTP,CN=Protocols,CN=com-SERVER-2,CN=Servers,CN=Exchange Administrative Group (FYDIBOHF23SPDLT),CN=Administrative Groups,CN=First Organization,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=company,DC=local' provided more than once: Attribute or value exists
Failed to commit objects: WERR_GENERAL_FAILURE
Join failed - cleaning up
checking sAMAccountName
Deleted CN=com30,OU=Domain Controllers,DC=company,DC=local
Deleted CN=NTDS Settings,CN=com30,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=company,DC=local
Deleted CN=com30,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=company,DC=local
ERROR(<type 'exceptions.TypeError'>): uncaught exception - Failed to process chunk: NT_STATUS_UNSUCCESSFUL
File "/usr/local/samba/lib/python2.7/site-packages/samba/netcmd/__init__.py", line 175, in _run
return self.run(*args, **kwargs)
File "/usr/local/samba/lib/python2.7/site-packages/samba/netcmd/domain.py", line 552, in run
machinepass=machinepass, use_ntvfs=use_ntvfs, dns_backend=dns_backend)
File "/usr/local/samba/lib/python2.7/site-packages/samba/join.py", line 1104, in join_DC
ctx.do_join()
File "/usr/local/samba/lib/python2.7/site-packages/samba/join.py", line 1009, in do_join
ctx.join_replicate()
File "/usr/local/samba/lib/python2.7/site-packages/samba/join.py", line 734, in join_replicate
replica_flags=ctx.replica_flags)
File "/usr/local/samba/lib/python2.7/site-packages/samba/drs_utils.py", line 252, in replicate
schema=schema, req_level=req_level, req=req)
root at com30://usr/local/samba/sbin#


More information about the samba mailing list