You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@directory.apache.org by Pierre Smits <pi...@gmail.com> on 2012/01/12 09:57:22 UTC

Configuring the NTP server

Hi All,

How do I configure the NTP service in ApacheDS?

With regards,

Pierre

Re: Configuring the NTP server

Posted by STF <la...@gmail.com>.
A proof of concept.  I see.  Thanks

On Wed, Jan 18, 2012 at 16:19, Emmanuel Lecharny <el...@gmail.com>wrote:

> On 1/18/12 3:07 PM, Alex Karasulu wrote:
>
>> On Wed, Jan 18, 2012 at 3:44 PM, STF<la...@gmail.com>  wrote:
>>
>>  I'm wondering why ApacheDS also provides NTP service.  Is NTP a
>>> compulsory
>>> part of LDAP?
>>>
>>>  NTP is not a compulsory part of ApacheDS. ApacheDS has a modular network
>> layer to allow any kind of directory backed protocol to be plugged into it
>> to serve directory data in another protocol like DNS, DHCP, or Kerberos.
>>
>> Now we just wrote an NTP module because (1) it was easy to do so to test
>> the layer along side LDAP and Kerberos (2) Kerberos might need it to
>> synchronize time across ApacheDS instances. Kerberos is time sensitive.
>>
>>
>>  Not that I don't like it, but normally it would be better to have
>>> specialized softwares (ie concentrate in one thing) than "Swiss army
>>> knife"
>>> softwares which normally would tend to have average performance.
>>>
>>>  Understood this does not at first seem close to the very important UNIX
>> philosophy making a single thing do that thing really well. We do have
>> this
>> philosophy for the modules. If you want it plug it in if not don't.
>>
>>
>>
>>  And NTP service could be provided either by another software or by the
>>> underlying O/S
>>>
>>>  Sometimes people screw up and don't do this right so we included it in
>> case
>> it's needed for Kerberos. It was really easy to do so we did it. Later on
>> it might prove very useful when the Kerberos becomes more popular.
>>
>
> Also note that this is not even close to be a NTP server : it just
> delivers the local computer time, nothing more, so if your local computer
> is not NTP synchronized itself, then it may be totally inaccurate.
>
> Pretty much a proof of concept, as Alex said...
>
> --
> Regards,
> Cordialement,
> Emmanuel Lécharny
> www.iktek.com
>
>

Re: Configuring the NTP server

Posted by Emmanuel Lecharny <el...@gmail.com>.
On 1/18/12 3:07 PM, Alex Karasulu wrote:
> On Wed, Jan 18, 2012 at 3:44 PM, STF<la...@gmail.com>  wrote:
>
>> I'm wondering why ApacheDS also provides NTP service.  Is NTP a compulsory
>> part of LDAP?
>>
> NTP is not a compulsory part of ApacheDS. ApacheDS has a modular network
> layer to allow any kind of directory backed protocol to be plugged into it
> to serve directory data in another protocol like DNS, DHCP, or Kerberos.
>
> Now we just wrote an NTP module because (1) it was easy to do so to test
> the layer along side LDAP and Kerberos (2) Kerberos might need it to
> synchronize time across ApacheDS instances. Kerberos is time sensitive.
>
>
>> Not that I don't like it, but normally it would be better to have
>> specialized softwares (ie concentrate in one thing) than "Swiss army knife"
>> softwares which normally would tend to have average performance.
>>
> Understood this does not at first seem close to the very important UNIX
> philosophy making a single thing do that thing really well. We do have this
> philosophy for the modules. If you want it plug it in if not don't.
>
>
>
>> And NTP service could be provided either by another software or by the
>> underlying O/S
>>
> Sometimes people screw up and don't do this right so we included it in case
> it's needed for Kerberos. It was really easy to do so we did it. Later on
> it might prove very useful when the Kerberos becomes more popular.

Also note that this is not even close to be a NTP server : it just 
delivers the local computer time, nothing more, so if your local 
computer is not NTP synchronized itself, then it may be totally inaccurate.

Pretty much a proof of concept, as Alex said...

-- 
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com


Re: Configuring the NTP server

Posted by Alex Karasulu <ak...@apache.org>.
On Wed, Jan 18, 2012 at 3:44 PM, STF <la...@gmail.com> wrote:

>
> I'm wondering why ApacheDS also provides NTP service.  Is NTP a compulsory
> part of LDAP?
>

NTP is not a compulsory part of ApacheDS. ApacheDS has a modular network
layer to allow any kind of directory backed protocol to be plugged into it
to serve directory data in another protocol like DNS, DHCP, or Kerberos.

Now we just wrote an NTP module because (1) it was easy to do so to test
the layer along side LDAP and Kerberos (2) Kerberos might need it to
synchronize time across ApacheDS instances. Kerberos is time sensitive.


> Not that I don't like it, but normally it would be better to have
> specialized softwares (ie concentrate in one thing) than "Swiss army knife"
> softwares which normally would tend to have average performance.
>

Understood this does not at first seem close to the very important UNIX
philosophy making a single thing do that thing really well. We do have this
philosophy for the modules. If you want it plug it in if not don't.



>
> And NTP service could be provided either by another software or by the
> underlying O/S
>

Sometimes people screw up and don't do this right so we included it in case
it's needed for Kerberos. It was really easy to do so we did it. Later on
it might prove very useful when the Kerberos becomes more popular.

-- 
Best Regards,
-- Alex

Re: Configuring the NTP server

Posted by STF <la...@gmail.com>.
On Thu, Jan 12, 2012 at 10:31, Emmanuel Lecharny <el...@gmail.com>wrote:

> On 1/12/12 9:57 AM, Pierre Smits wrote:
>
>> Hi All,
>>
> Hi,
>
>
>> How do I configure the NTP service in ApacheDS?
>>
> Actually, it's not really functional.The server returns a time which  is
> computed using a new Date(), with an accuracy far from being good.
>

I'm wondering why ApacheDS also provides NTP service.  Is NTP a compulsory
part of LDAP?
Not that I don't like it, but normally it would be better to have
specialized softwares (ie concentrate in one thing) than "Swiss army knife"
softwares which normally would tend to have average performance.

And NTP service could be provided either by another software or by the
underlying O/S

Re: Configuring the NTP server

Posted by Emmanuel Lecharny <el...@gmail.com>.
On 1/12/12 9:57 AM, Pierre Smits wrote:
> Hi All,
Hi,
>
> How do I configure the NTP service in ApacheDS?
Actually, it's not really functional.The server returns a time which  is 
computed using a new Date(), with an accuracy far from being good.

Otherwise, you just have to add those lines in your config (ApacheDS 
1.5.7) :
<!--ntpServer>
<transports>
<tcpTransport port="60123"/>
<udpTransport port="60123" nbThreads="1"/>
</transports>
</ntpServer-->
(the port can be modified)

or in 2.0.0-M3, by adding those entries :

dn: ads-serverId=ntpServer,ou=servers,ads-directoryServiceId=default,ou=config
ads-serverid: ntpServer
ads-enabled: FALSE
objectclass: ads-server
objectclass: ads-ntpServer
objectclass: ads-base
objectclass: top
ads-transports: tcp
ads-transports: udp

dn: ou=transports,ads-serverId=ntpServer,ou=servers,ads-directoryServiceId=default,ou=config
ou: transports
objectclass: organizationalUnit
objectclass: top

dn: ads-transportId=tcp,ou=transports,ads-serverId=ntpServer,ou=servers,ads-directoryServiceId=default,ou=config
ads-systemport: 60123
ads-transportid: tcp
objectclass: ads-transport
objectclass: ads-tcpTransport
objectClass: ads-base
objectclass: top
ads-enabled: TRUE

dn: ads-transportId=udp,ou=transports,ads-serverId=ntpServer,ou=servers,ads-directoryServiceId=default,ou=config
ads-systemport: 60123
ads-transportnbthreads: 1
ads-transportid: udp
objectclass: ads-transport
objectclass: ads-udpTransport
objectClass: ads-base
objectclass: top
ads-enabled: TRUE




-- 
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com