Ben Klang
04aa86aeb5
One more place to fix length of the CNAME field
2013-01-01 18:41:53 -05:00
Stephen Ayotte
fd74959a2f
Right, C doesn't use # for comments...
2012-12-30 21:01:28 -05:00
Stephen Ayotte
2bafa67f3e
Increased size of 'cname' member of struct resourcerecord to 1024 from 64.
...
This was causing DKIM entries (http://tools.ietf.org/html/rfc5585#page-12 ) to be truncated, since they are frequently longer than 64 chars.
DKIM signatures are the same as those in RFC 5322 (internet message format), which in the text says they may be as large as 998 chars (http://tools.ietf.org/html/rfc5322#section-2.1.1 ).
1024 seems like a reasonable, round number.
2012-12-30 20:52:06 -05:00
Ben Klang
08696dc541
Properly quote TXT records for BIND (thanks again Alex)
2011-05-10 12:19:13 -04:00
Ben Klang
b03539650f
Fix TXT records under Bind (thanks Alex Sanderson for the patch)
2011-05-10 07:47:46 -04:00
Ben Klang
848069a058
Do a better job of documenting the license
2011-04-11 08:45:32 -04:00
Ben Klang
6487c8e012
Make sure we have room to store long domain names (such as IPv6 reverse DNS entries)
...
git-svn-id: https://svn.alkaloid.net/gpl/ldap2dns/trunk@520 06cd67b6-e706-0410-b29e-9de616bca6e9
2010-02-25 23:39:11 +00:00
Ben Klang
e29f21085a
Make sure we check for IPv6 addresses with DNScipaddr too
...
git-svn-id: https://svn.alkaloid.net/gpl/ldap2dns/trunk@519 06cd67b6-e706-0410-b29e-9de616bca6e9
2010-02-18 20:51:06 +00:00
Ben Klang
e1e24f7abb
Copyright updates
...
git-svn-id: https://svn.alkaloid.net/gpl/ldap2dns/trunk@517 06cd67b6-e706-0410-b29e-9de616bca6e9
2010-02-18 20:12:19 +00:00
Ben Klang
f8a79c72fe
Change flags from db|data to bind|tinydns (yes, we are backward-compatible)
...
git-svn-id: https://svn.alkaloid.net/gpl/ldap2dns/trunk@515 06cd67b6-e706-0410-b29e-9de616bca6e9
2010-02-18 20:05:44 +00:00
Ben Klang
352965c823
Add initial IPv6 support
...
Fix compiler warnings
git-svn-id: https://svn.alkaloid.net/gpl/ldap2dns/trunk@513 06cd67b6-e706-0410-b29e-9de616bca6e9
2010-02-18 20:00:17 +00:00
Ben Klang
1a3dbe38c0
Fix error messages when a zone is defined with no records
...
git-svn-id: https://svn.alkaloid.net/gpl/ldap2dns/trunk@463 06cd67b6-e706-0410-b29e-9de616bca6e9
2008-07-24 19:18:47 +00:00
Ben Klang
aa9f0e5da7
I'm getting commit happy...forgot to check for the flags in the switch statement
...
git-svn-id: https://svn.alkaloid.net/gpl/ldap2dns/trunk@462 06cd67b6-e706-0410-b29e-9de616bca6e9
2008-07-24 19:04:57 +00:00
Ben Klang
0af354243e
Fix getopt call to include new flags
...
git-svn-id: https://svn.alkaloid.net/gpl/ldap2dns/trunk@461 06cd67b6-e706-0410-b29e-9de616bca6e9
2008-07-24 18:57:34 +00:00
Ben Klang
37a71f6fa2
Fix daemon mode handling
...
Add option to stay in the foreground
git-svn-id: https://svn.alkaloid.net/gpl/ldap2dns/trunk@460 06cd67b6-e706-0410-b29e-9de616bca6e9
2008-07-24 18:51:26 +00:00
Ben Klang
797afe85d2
Make sure we use the correct attribute when printing DNS TXT records
...
git-svn-id: https://svn.alkaloid.net/gpl/ldap2dns/trunk@459 06cd67b6-e706-0410-b29e-9de616bca6e9
2008-07-24 18:29:14 +00:00
Ben Klang
293e832003
* Add new TXT record handling
...
* Change struct resourcerecord SRV member names to be consistent with other members
git-svn-id: https://svn.alkaloid.net/gpl/ldap2dns/trunk@457 06cd67b6-e706-0410-b29e-9de616bca6e9
2008-07-24 18:16:47 +00:00
Ben Klang
79ddabdf6b
* Fix output of SRV records when using BIND (-o db)
...
* Add TTL information to records when using BIND
git-svn-id: https://svn.alkaloid.net/gpl/ldap2dns/trunk@447 06cd67b6-e706-0410-b29e-9de616bca6e9
2008-05-15 01:02:59 +00:00
Ben Klang
d41e01a4d4
Happy New Year 2008
...
git-svn-id: https://svn.alkaloid.net/gpl/ldap2dns/trunk@418 06cd67b6-e706-0410-b29e-9de616bca6e9
2008-01-21 20:39:55 +00:00
Ben Klang
65ded8c69e
* Clear the password from the environment for security
...
* Only convert the host list to URI at initialization
git-svn-id: https://svn.alkaloid.net/gpl/ldap2dns/trunk@396 06cd67b6-e706-0410-b29e-9de616bca6e9
2006-12-27 23:17:04 +00:00
Ben Klang
ab63b6ed4f
Typo fix LDAP2DNS_TINYDNSDIR check
...
Add missing check for LDAP2DNS_URI
git-svn-id: https://svn.alkaloid.net/gpl/ldap2dns/trunk@389 06cd67b6-e706-0410-b29e-9de616bca6e9
2006-12-25 06:37:03 +00:00
Ben Klang
9703996908
Update env var to be more consistent (leaving backwards compatibility)
...
git-svn-id: https://svn.alkaloid.net/gpl/ldap2dns/trunk@388 06cd67b6-e706-0410-b29e-9de616bca6e9
2006-12-25 06:25:41 +00:00
Ben Klang
c365ed525c
* Ensure all options get initialized to defaults before any attempts at setting
...
them via configuration, environment, or cmdline args.
* Allow all cmdline args to be set optionally using environment variables
* Updated documentation and added plaintext version
git-svn-id: https://svn.alkaloid.net/gpl/ldap2dns/trunk@386 06cd67b6-e706-0410-b29e-9de616bca6e9
2006-12-23 05:42:10 +00:00
Ben Klang
76b51f23ee
Fix password read from environment variable. Thanks Nick Gregory for the report.
...
git-svn-id: https://svn.alkaloid.net/gpl/ldap2dns/trunk@380 06cd67b6-e706-0410-b29e-9de616bca6e9
2006-10-17 22:58:39 +00:00
Ben Klang
64e7e2df2b
Default to no search limit
...
git-svn-id: https://svn.alkaloid.net/gpl/ldap2dns/trunk@378 06cd67b6-e706-0410-b29e-9de616bca6e9
2006-10-05 21:45:15 +00:00
Ben Klang
4602373284
Add getopt option to parse max record count (Thanks Jason Chambers)
...
git-svn-id: https://svn.alkaloid.net/gpl/ldap2dns/trunk@373 06cd67b6-e706-0410-b29e-9de616bca6e9
2006-07-20 18:15:45 +00:00
Ben Klang
59a91b5706
Change ldap2dns to only search onelevel when pulling zone serials. Performance
...
tweak suggested by Jason Chambers
git-svn-id: https://svn.alkaloid.net/gpl/ldap2dns/trunk@367 06cd67b6-e706-0410-b29e-9de616bca6e9
2006-07-14 22:17:36 +00:00
Ben Klang
304a172b2c
Only print loccode header if we have actual records
...
Add whitespace to version banner in zone output
git-svn-id: https://svn.alkaloid.net/gpl/ldap2dns/trunk@332 06cd67b6-e706-0410-b29e-9de616bca6e9
2006-06-13 17:03:41 +00:00
Ben Klang
793ec55e98
Check for zero records and warn
...
git-svn-id: https://svn.alkaloid.net/gpl/ldap2dns/trunk@329 06cd67b6-e706-0410-b29e-9de616bca6e9
2006-06-13 16:42:14 +00:00
Ben Klang
fc9cf47e1e
Adding header for portability
...
git-svn-id: https://svn.alkaloid.net/gpl/ldap2dns/trunk@327 06cd67b6-e706-0410-b29e-9de616bca6e9
2006-06-12 21:50:07 +00:00
Ben Klang
6c91b5cda5
One more deprecated LDAP API call
...
git-svn-id: https://svn.alkaloid.net/gpl/ldap2dns/trunk@326 06cd67b6-e706-0410-b29e-9de616bca6e9
2006-06-12 21:48:34 +00:00
Ben Klang
297073eb3d
+ Updated INSTALL and FAQ
...
+ Replaced all remaining deprecated LDAP API calls
+ Converted to getopt_long and added double-dash options (--help)
+ Added search timeout and max record count options
git-svn-id: https://svn.alkaloid.net/gpl/ldap2dns/trunk@325 06cd67b6-e706-0410-b29e-9de616bca6e9
2006-06-12 21:43:55 +00:00
Ben Klang
4a96a8456d
Don't print_usage all the time, too noisy. Include a referral for more info
...
git-svn-id: https://svn.alkaloid.net/gpl/ldap2dns/trunk@322 06cd67b6-e706-0410-b29e-9de616bca6e9
2006-06-08 18:02:06 +00:00
Ben Klang
5e7ac922fd
Fix one more Makefile formatting issue
...
Improve debugging support
Make SRV records work for BIND outputs
git-svn-id: https://svn.alkaloid.net/gpl/ldap2dns/trunk@321 06cd67b6-e706-0410-b29e-9de616bca6e9
2006-06-08 16:48:46 +00:00
Ben Klang
4761d901cc
* Fix error output
...
* Update the data files even when not in daemon mode
git-svn-id: https://svn.alkaloid.net/gpl/ldap2dns/trunk@319 06cd67b6-e706-0410-b29e-9de616bca6e9
2006-06-04 01:45:56 +00:00
Ben Klang
610105004f
* Replaced deprecated ldap_bind_s function call
...
* Improved sanity checking (won't seg if -o isn't passed now)
* Added version number to data output
git-svn-id: https://svn.alkaloid.net/gpl/ldap2dns/trunk@318 06cd67b6-e706-0410-b29e-9de616bca6e9
2006-06-03 20:40:15 +00:00
Ben Klang
221e666036
* Catch errors where ldap2dns doesn't know any hosts to connect
...
* Clean up usage output
git-svn-id: https://svn.alkaloid.net/gpl/ldap2dns/trunk@317 06cd67b6-e706-0410-b29e-9de616bca6e9
2006-06-02 21:19:33 +00:00
Ben Klang
f0d1c5d399
Fix inverted test
...
git-svn-id: https://svn.alkaloid.net/gpl/ldap2dns/trunk@316 06cd67b6-e706-0410-b29e-9de616bca6e9
2006-06-02 20:30:29 +00:00
Ben Klang
e146a543d6
Clean up version output
...
Fix problem with getopt and -V flag
Handle LDAP connection problems more gracefully
git-svn-id: https://svn.alkaloid.net/gpl/ldap2dns/trunk@315 06cd67b6-e706-0410-b29e-9de616bca6e9
2006-05-30 21:53:50 +00:00
Ben Klang
d08eba4875
* Fixed off-by-one when null-terminating password strings which could have led
...
to LDAP connection errors
* Only print startup message when in daemon mode
* Fix regex when computing the domain name of a FQDN (now properly supports
FQDNs more than two levels deep)
* Create baseDN when converting data to ldif
git-svn-id: https://svn.alkaloid.net/gpl/ldap2dns/trunk@314 06cd67b6-e706-0410-b29e-9de616bca6e9
2006-05-30 19:34:35 +00:00
Ben Klang
c2a8458283
Fixed comment when generating BIND configuration files.
...
Thanks to Fleischmann Bonaventura for reporting the problem.
git-svn-id: https://svn.alkaloid.net/gpl/ldap2dns/trunk@308 06cd67b6-e706-0410-b29e-9de616bca6e9
2006-05-10 02:38:02 +00:00
Ben Klang
8ffab03cef
Polishing 0.3.7 release. New focus is ldap2dns 1.0.
...
git-svn-id: https://svn.alkaloid.net/gpl/ldap2dns/trunk@296 06cd67b6-e706-0410-b29e-9de616bca6e9
2006-03-15 20:08:59 +00:00
Ben Klang
830c3395d3
+ Bumped version to 0.3.7
...
+ Changed default location of ldap.conf to /etc/ldap.conf
+ Added note on potential security vulns in deprecated/webadmin to README
+ Change port declarations and format strings from int to unsigned short to
match standards
+ Updated doc/README.html
git-svn-id: https://svn.alkaloid.net/gpl/ldap2dns/trunk@216 06cd67b6-e706-0410-b29e-9de616bca6e9
2005-12-22 20:35:09 +00:00
Ben Klang
c06e92bc90
Fix typo for copyright in ldap2dns.c
...
Clarify usage in ldap2tinydns-conf
git-svn-id: https://svn.alkaloid.net/gpl/ldap2dns/trunk@183 06cd67b6-e706-0410-b29e-9de616bca6e9
2005-12-19 06:08:17 +00:00
Ben Klang
fcfc8f494b
Added usage to scripts/data2ldap.pl
...
Added default serial of now() in YYYYMMDD01 format to data2ldap.pl for
better compatibility with ldap2dns
git-svn-id: https://svn.alkaloid.net/gpl/ldap2dns/trunk@158 06cd67b6-e706-0410-b29e-9de616bca6e9
2005-12-11 15:29:00 +00:00
Ben Klang
882629bf74
Updated TODO
...
data2ldap.pl now works for all but unknown records and TXT records
Bumped Makefile version
Updated copyright information
Escaped TINYDNSDIR in ldap2tinydns-conf so it will always read the current value
git-svn-id: https://svn.alkaloid.net/gpl/ldap2dns/trunk@136 06cd67b6-e706-0410-b29e-9de616bca6e9
2005-12-08 17:27:56 +00:00
Ben Klang
14e06302a8
Added DNS SRV record support in TinyDNS "unknown record" format
...
git-svn-id: https://svn.alkaloid.net/gpl/ldap2dns/trunk@8 06cd67b6-e706-0410-b29e-9de616bca6e9
2005-12-02 04:28:28 +00:00
Ben Klang
24f0ba9a9c
Importing version 0.3.4
...
git-svn-id: https://svn.alkaloid.net/gpl/ldap2dns/trunk@7 06cd67b6-e706-0410-b29e-9de616bca6e9
2005-12-02 04:26:14 +00:00
Ben Klang
8e85c2c2be
Importing version 0.2.6
...
git-svn-id: https://svn.alkaloid.net/gpl/ldap2dns/trunk@6 06cd67b6-e706-0410-b29e-9de616bca6e9
2005-12-02 04:23:05 +00:00
Ben Klang
80c9334000
Importing version 0.2.5
...
git-svn-id: https://svn.alkaloid.net/gpl/ldap2dns/trunk@5 06cd67b6-e706-0410-b29e-9de616bca6e9
2005-12-02 04:22:14 +00:00