Hello! I run Samba 4.1.7 as a DC on Ubuntu 14.04 and try to use MS Azure Password Sync to Office 365. When I start the sync in samba log appears a kerberos WRONG PARAM Error and Azure is logging the following: Did anybody got the Office365 Passwork Sync to work already? Password synchronization failed for domain: domain.com. Details: Microsoft.Online.PasswordSynchronization.SynchronizationManagerException: Unable to open connection to domain: domain.com. Error: There was an error creating the connection context. ---> Microsoft.Online.PasswordSynchronization.DirectoryReplicationServices.DrsExc eption: There was an error creating the connection context. ---> Microsoft.Online.PasswordSynchronization.DirectoryReplicationServices.DrsCom municationException: RPC Error 1728 : A remote procedure call (RPC) protocol error occurred. Error creating DRS context handle. at Microsoft.Online.PasswordSynchronization.DirectoryReplicationServices.DrsRpc ConnectionContext.DrsBind(Void* rpcBindingHandle, SafePointer<_SEC_WINNT_AUTH_IDENTITY_W> authHandle, _GUID sourceDsaGuid, _DRS_EXTENSIONS_INT* clientExtensions, _DRS_EXTENSIONS** serverExtensions, RpcBindingSecurityCallbackHandler securityCallback) at Microsoft.Online.PasswordSynchronization.DirectoryReplicationServices.DrsRpc ConnectionContext.CreateDrsHandle(Void* rpcBindingHandle, SafePointer<_SEC_WINNT_AUTH_IDENTITY_W> authHandle) at Microsoft.Online.PasswordSynchronization.DirectoryReplicationServices.DrsRpc Connection.CreateConnectionContext(SourceDomainController sourceDomain) --- End of inner exception stack trace --- at Microsoft.Online.PasswordSynchronization.DirectoryReplicationServices.DrsRpc Connection.CreateConnectionContext(SourceDomainController sourceDomain) at Microsoft.Online.PasswordSynchronization.DirectoryReplicationServices.DrsCon nection.EstablishConnection() at Microsoft.Online.PasswordSynchronization.DirectoryReplicationServices.DrsCon nection.Connect() at Microsoft.Online.PasswordSynchronization.RetryUtility.<>c__DisplayClass1.<Ex ecuteWithRetry>b__0() at Microsoft.Online.PasswordSynchronization.RetryUtility.ExecuteWithRetry[T](Fu nc`1 operation, Func`1 shouldAbort, RetryPolicyHandler retryPolicy) at Microsoft.Online.PasswordSynchronization.RetryUtility.ExecuteWithRetry(Actio n operation, Func`1 shouldAbort, RetryPolicyHandler retryPolicy) at Microsoft.Online.PasswordSynchronization.PasswordSynchronizationTask.OpenCon nection(IDrsConnection connection) --- End of inner exception stack trace --- at Microsoft.Online.PasswordSynchronization.PasswordSynchronizationTask.OpenCon nection(IDrsConnection connection) at Microsoft.Online.PasswordSynchronization.PasswordSynchronizationTask.CreateC onnection() at Microsoft.Online.PasswordSynchronization.RecoveryTask.SynchronizeCredentials ToCloud() at Microsoft.Online.PasswordSynchronization.PasswordSynchronizationTask.Synchro nizeSecrets() at Microsoft.Online.PasswordSynchronization.SynchronizationExecutionContext.Syn chronizeDomain() at Microsoft.Online.PasswordSynchronization.SynchronizationManager.SynchronizeD omain(SynchronizationExecutionContext syncExecutionContext) Microsoft.Online.PasswordSynchronization.SynchronizationManagerException: Unable to open connection to domain: domain.com. Error: There was an error creating the connection context. ---> Microsoft.Online.PasswordSynchronization.DirectoryReplicationServices.DrsExc eption: There was an error creating the connection context. ---> Microsoft.Online.PasswordSynchronization.DirectoryReplicationServices.DrsCom municationException: RPC Error 1728 : A remote procedure call (RPC) protocol error occurred. Error creating DRS context handle. at Microsoft.Online.PasswordSynchronization.DirectoryReplicationServices.DrsRpc ConnectionContext.DrsBind(Void* rpcBindingHandle, SafePointer<_SEC_WINNT_AUTH_IDENTITY_W> authHandle, _GUID sourceDsaGuid, _DRS_EXTENSIONS_INT* clientExtensions, _DRS_EXTENSIONS** serverExtensions, RpcBindingSecurityCallbackHandler securityCallback) at Microsoft.Online.PasswordSynchronization.DirectoryReplicationServices.DrsRpc ConnectionContext.CreateDrsHandle(Void* rpcBindingHandle, SafePointer<_SEC_WINNT_AUTH_IDENTITY_W> authHandle) at Microsoft.Online.PasswordSynchronization.DirectoryReplicationServices.DrsRpc Connection.CreateConnectionContext(SourceDomainController sourceDomain) --- End of inner exception stack trace --- at Microsoft.Online.PasswordSynchronization.DirectoryReplicationServices.DrsRpc Connection.CreateConnectionContext(SourceDomainController sourceDomain) at Microsoft.Online.PasswordSynchronization.DirectoryReplicationServices.DrsCon nection.EstablishConnection() at Microsoft.Online.PasswordSynchronization.DirectoryReplicationServices.DrsCon nection.Connect() at Microsoft.Online.PasswordSynchronization.RetryUtility.<>c__DisplayClass1.<Ex ecuteWithRetry>b__0() at Microsoft.Online.PasswordSynchronization.RetryUtility.ExecuteWithRetry[T](Fu nc`1 operation, Func`1 shouldAbort, RetryPolicyHandler retryPolicy) at Microsoft.Online.PasswordSynchronization.RetryUtility.ExecuteWithRetry(Actio n operation, Func`1 shouldAbort, RetryPolicyHandler retryPolicy) at Microsoft.Online.PasswordSynchronization.PasswordSynchronizationTask.OpenCon nection(IDrsConnection connection) --- End of inner exception stack trace --- at Microsoft.Online.PasswordSynchronization.PasswordSynchronizationTask.OpenCon nection(IDrsConnection connection) at Microsoft.Online.PasswordSynchronization.PasswordSynchronizationTask.CreateC onnection() at Microsoft.Online.PasswordSynchronization.RecoveryTask.SynchronizeCredentials ToCloud() at Microsoft.Online.PasswordSynchronization.PasswordSynchronizationTask.Synchro nizeSecrets() at Microsoft.Online.PasswordSynchronization.SynchronizationExecutionContext.Syn chronizeDomain() at Microsoft.Online.PasswordSynchronization.SynchronizationManager.SynchronizeD omain(SynchronizationExecutionContext syncExecutionContext) Microsoft.Online.PasswordSynchronization.SynchronizationManagerException: Unable to open connection to domain: domain.com. Error: There was an error creating the connection context. ---> Microsoft.Online.PasswordSynchronization.DirectoryReplicationServices.DrsExc eption: There was an error creating the connection context. ---> Microsoft.Online.PasswordSynchronization.DirectoryReplicationServices.DrsCom municationException: RPC Error 1728 : A remote procedure call (RPC) protocol error occurred. Error creating DRS context handle. at Microsoft.Online.PasswordSynchronization.DirectoryReplicationServices.DrsRpc ConnectionContext.DrsBind(Void* rpcBindingHandle, SafePointer<_SEC_WINNT_AUTH_IDENTITY_W> authHandle, _GUID sourceDsaGuid, _DRS_EXTENSIONS_INT* clientExtensions, _DRS_EXTENSIONS** serverExtensions, RpcBindingSecurityCallbackHandler securityCallback) at Microsoft.Online.PasswordSynchronization.DirectoryReplicationServices.DrsRpc ConnectionContext.CreateDrsHandle(Void* rpcBindingHandle, SafePointer<_SEC_WINNT_AUTH_IDENTITY_W> authHandle) at Microsoft.Online.PasswordSynchronization.DirectoryReplicationServices.DrsRpc Connection.CreateConnectionContext(SourceDomainController sourceDomain) --- End of inner exception stack trace --- at Microsoft.Online.PasswordSynchronization.DirectoryReplicationServices.DrsRpc Connection.CreateConnectionContext(SourceDomainController sourceDomain) at Microsoft.Online.PasswordSynchronization.DirectoryReplicationServices.DrsCon nection.EstablishConnection() at Microsoft.Online.PasswordSynchronization.DirectoryReplicationServices.DrsCon nection.Connect() at Microsoft.Online.PasswordSynchronization.RetryUtility.<>c__DisplayClass1.<Ex ecuteWithRetry>b__0() at Microsoft.Online.PasswordSynchronization.RetryUtility.ExecuteWithRetry[T](Fu nc`1 operation, Func`1 shouldAbort, RetryPolicyHandler retryPolicy) at Microsoft.Online.PasswordSynchronization.RetryUtility.ExecuteWithRetry(Actio n operation, Func`1 shouldAbort, RetryPolicyHandler retryPolicy) at Microsoft.Online.PasswordSynchronization.PasswordSynchronizationTask.OpenCon nection(IDrsConnection connection) --- End of inner exception stack trace --- at Microsoft.Online.PasswordSynchronization.PasswordSynchronizationTask.OpenCon nection(IDrsConnection connection) at Microsoft.Online.PasswordSynchronization.PasswordSynchronizationTask.CreateC onnection() at Microsoft.Online.PasswordSynchronization.RecoveryTask.SynchronizeCredentials ToCloud() at Microsoft.Online.PasswordSynchronization.PasswordSynchronizationTask.Synchro nizeSecrets() at Microsoft.Online.PasswordSynchronization.SynchronizationExecutionContext.Syn chronizeDomain() at Microsoft.Online.PasswordSynchronization.SynchronizationManager.SynchronizeD omain(SynchronizationExecutionContext syncExecutionContext) Many Thank!