Samba4 AD 시간 동기화

Samba4 AD 시간 동기화

이 질문이 많이 묻는다는 것을 알고 며칠 동안 Google을 검색했지만 지금까지 찾은 솔루션 중 아무 것도 작동하지 않습니다. 내 문제는 이것이다:

Windows 10 워크스테이션이 Samba4 도메인 컨트롤러와 시간을 동기화하지 않습니다.

ntpd가 실행 중인지 확인했습니다. 이 기사에 따라 ntpd 및 도메인 정책을 구성했습니다. https://wiki.samba.org/index.php/Time_Synchronisation

관리자 권한으로 "net time /domain /set /Y"를 실행하면 시간은 올바르게 동기화되지만 자동 동기화가 작동하지 않습니다.

"w32tm /resync"는 다음을 반환합니다: "https://wiki.samba.org/index.php/Time_Synchronisation"

w32tm /query /status는 다음을 반환합니다.

Leap Indicator: 3(last minute has 61 seconds)
Stratum: 0 (unspecified)
Precision: -23 (119.209ns per tick)
Root Delay: 0.0000000s
Root Dispersion: 0.0000000s
ReferenceId: 0x00000000 (unspecified)
Last Successful Sync Time: unspecified
Source: Local CMOS Clock
Poll Interval: 6 (64s)

w32tm /query /configuration은 다음을 반환합니다.

[Configuration]

EventLogFlags: 2 (Policy)
AnnounceFlags: 10 (Policy)
TimeJumpAuditOffset: 28800 (Local)
MinPollInterval: 6 (Policy)
MaxPollInterval: 10 (Policy)
MaxNegPhaseCorrection: 172800 (Policy)
MaxPosPhaseCorrection: 172800 (Policy)
MaxAllowedPhaseOffset: 300 (Policy)

FrequencyCorrectRate: 4 (Policy)
PollAdjustFactor: 5 (Policy)
LargePhaseOffset: 50000000 (Policy)
SpikeWatchPeriod: 900 (Policy)
LocalClockDispersion: 10 (Policy)
HoldPeriod: 5 (Policy)
PhaseCorrectRate: 1 (Policy)
UpdateInterval: 100 (Policy)

FileLogName: c:\temp\time_debug.log (Local)
FileLogEntries: 0-300 (Local)
FileLogSize: 100000 (Local)

[TimeProviders]

NtpClient (Local)
DllName: C:\WINDOWS\SYSTEM32\w32time.DLL (Local)
Enabled: 1 (Local)
InputProvider: 1 (Local)
CrossSiteSyncFlags: 2 (Policy)
AllowNonstandardModeCombinations: 1 (Local)
ResolvePeerBackoffMinutes: 15 (Policy)
ResolvePeerBackoffMaxTimes: 7 (Policy)
CompatibilityFlags: 2147483648 (Local)
EventLogFlags: 0 (Policy)
LargeSampleSkew: 3 (Local)
SpecialPollInterval: 3600 (Policy)
Type: NT5DS (Policy)

어디를 봐야 할지 난감합니다.

답변1

방금 비슷한 답변을 게시했습니다.슈퍼유저. 즉, 다음 줄 ntpsigndsocket에 올바른 줄을 추가하여 문제를 해결했습니다 /etc/ntp.conf.

ntpsigndsocket  /var/lib/ntp_signd/

소켓 경로는 다음을 통해 확인할 수 있습니다.

% sudo lsof -Un | grep signd
samba       525            root   23u  unix 0x0000000029f51b41      0t0 15061 /var/lib/samba/ntp_signd/socket type=STREAM

시간 공급자 서비스를 중지하고 다시 등록한 후 서비스를 다시 시작하여 Windows 멤버를 수정했습니다.

net stop w32time
w32tm /unregister
w32tm /register
net start w32time

그러면 도메인 컨트롤러가 로 표시됩니다 w32tm /query /source.

크레딧과 명예는 다음 사용자에게 전달됩니다 mfoley.LinuxQuestions.org. 고마워!

관련 정보