Re: [Ldapdns-users] Ldapdns v3 questions
Brought to you by:
nimh
From: Mrs. B. <mrs...@ni...> - 2003-11-23 19:04:01
|
A couple things: 1. Instead of using sudo, set UID and GID to the uid and gid of the ldapdns user and let ldapdns-dg setuid/setgid itself. This way, when ready, you can set PORT to 53. 2. Make sure you can run ldapdns and _see_ that it starts up. This means essentially running your /usr/sbin/ldapdns script and seeing what output it provides. Send us that output. 3. That setting for /proc/cpuinfo won't work on anything but linux... 4. Your dig statement doesn't list a fully qualified domain name. Perhaps you meant: dig @localhost -p 5300 -t any ns.ambigc.com.sg 5. Your LDAP server needs to have an equality (exact) index for associatedDomain - OR your tree needs to be extremely small. 6. the $SELFNS and $REPLICAS environment variables are NECESSARY for creating NS and SOA RRs. On Sat, 2003-11-22 at 13:57, Chris Hamilton wrote: > I do not know what I am doing wrong. I have tried to get ldapdns 3 up > with the following: > > From my rc: > start) > title "Starting ldapdns." > touch $logfile;chown ldapdns $logfile || error=$? > sudo -u ldapdns -b "/usr/sbin/ldapdns" >$logfile 2>$logfile || > error=$? > status > ;; > > > /usr/sbin/ldapdns: > #!/bin/sh > source /etc/profile > cd /var/ldapdns > > rm -f root/ldap.tmp root/ldap > /usr/sbin/ldapdns-hosts hosts root/ldap root/ldap.tmp > > CPU=`cat /proc/cpuinfo | grep processor | wc -l` > ROOT=/var/ldapdns/root > source /etc/ldapdns.conf > > pre=$1 > shift > $pre /usr/sbin/ldapdns-dg "$@" > > /etc/ldapdns.conf: > SCHEMA=LDAPDNS > LISTEN=0:5300 > HOSTMASTER=hostmaster@localhost > #SELFNS=a.ns.myhostname > #REPLICAS=b.ns.myhostname:c.ns.myhostname > export ROOT CPU LISTEN SCHEMA HOSTMASTER SELFNS REPLICAS > > /var/ldapdns/hosts/ns: > base o=top > address 127.0.0.1 > dn cn=admin,o=top > password **** > method simple > is root > > And: > dn: dc=ns,ou=Hosts,ou=Network,o=top > objectClass: top > objectClass: dnsdomain > objectClass: domainRelatedObject > dc: ns > aRecord: 10.0.0.2 > mXRecord: mail.ambigc.com > associatedDomain: ns.ambigc.com.sg > > But: > # dig @localhost -p 5300 -t any ns > > ; <<>> DiG 9.2.2 <<>> @localhost -p 5300 -t any ns > ;; global options: printcmd > ;; connection timed out; no servers could be reached > > Any ideas on what to try would be appreciated. > > Thanks, > Chris Hamilton |