serveradmin settings & IP addresses
Mon Sep 01, 2008 · 99 words

In 2005 I complained about a bug in serveradmin which resulted in garbled input when using IP numbers. It's not just with DNS either, the same problem exists also with VPN settings. 10.4.11 has this bug as well:

machine:~ root# serveradmin settings \
    vpn:Servers:com.apple.ppp.pptp:IPv4:DestAddressRanges:_array_index:0 = "192.168.2.200"
vpn:Servers:com.apple.ppp.pptp:IPv4:DestAddressRanges:_array_index:0 = 192.167999

Gross. Here's the “workaround”:

machine:~ root# serveradmin settings \
    vpn:Servers:com.apple.ppp.pptp:IPv4:DestAddressRanges:_array_index:0 = \"192.168.2.200\"

In other words, shell is chomping the quotes and serveradmin gets confused with the dotted quad. I still think this is a bug with serveradmin, or with the documentation, at least. :-/

Oh, and BBEdit 9 is out


back · essays · credits ·