Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 119247

Summary: ntpdate fails when configured with ldap
Product: Gentoo Linux Reporter: Brett Boren <brett.boren>
Component: [OLD] ServerAssignee: SpanKY <vapier>
Status: RESOLVED WORKSFORME    
Severity: normal CC: fernando.ribeiro
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Brett Boren 2006-01-16 17:42:03 UTC
when setup as an ldap client, ntpdate fails with the following message:

Error : Servname not supported for ai_socktype
16 Jan 19:38:36 ntpdate[29656]: can't find host time.nist.gov

16 Jan 19:38:36 ntpdate[29656]: no servers can be used, exiting

Switching back to a non-ldap nsswitch.conf causes ntpdate to run correctly.
Comment 1 Fernando Ribeiro 2006-03-21 20:09:57 UTC
Have you add ldap in hosts?

fernando ~ # cat /etc/nsswitch.conf | grep -i hosts
hosts:       files dns

I look a dns resolv problem.
Comment 2 SpanKY gentoo-dev 2006-07-15 23:58:02 UTC
looks like a configuration bug, not a bug in ntp