Difference between revisions of "Talk:PowerDNS LDAP Backend/Installation"

From Linuxnetworks
Jump to: navigation, search
(parameter in config file)
 
Line 1: Line 1:
 +
== Parameter in config file ==
 +
 
Hi I am tring to install powerdns with ldap backend.
 
Hi I am tring to install powerdns with ldap backend.
 +
In /usr/local/pdns/etc/pdns.conf I added.
  
I use debian etch:
+
* launch=ldap
 
+
* ldap-host (default "ldap://127.0.0.1:389/")
I downloaded pdns-2.9.21
+
* ldap-basedn (default "ou=hosts,dc=exemple,dc=net")
 
+
* ldap-binddn (default "cn=admin,dc=exemple,dc=net")
I installed libldap2-dev
+
* ldap-secret (default "password")
 
+
* ldap-method (default "simple")
then I did
+
./configure --prefix=/usr/local/pdns --with-modules= --with-dynmodules=ldap
+
 
+
make
+
 
+
make install.
+
 
+
 
+
 
+
in /usr/local/pdns/etc/pdns.conf
+
I added.
+
 
+
launch=ldap
+
 
+
ldap-host (default "ldap://127.0.0.1:389/")
+
 
+
ldap-basedn (default "ou=hosts,dc=exemple,dc=net")
+
 
+
ldap-binddn (default "cn=admin,dc=exemple,dc=net")
+
 
+
ldap-secret (default "password")
+
 
+
ldap-method (default "simple")
+
 
+
  
 
and I get this error in /varf/log/syslog:
 
and I get this error in /varf/log/syslog:
Line 37: Line 16:
 
  pdns[30325]: Guardian is launching an instance
 
  pdns[30325]: Guardian is launching an instance
 
  pdns[30325]: This is a guarded instance of pdns
 
  pdns[30325]: This is a guarded instance of pdns
  pdns[30325]: Fatal error: Trying to set unexisting parameter 'ldap-host (default "ldap://127.0.0.1:389/")'
+
  pdns[30325]: Fatal error: Trying to set unexisting parameter 'ldap-host
 +
(default "ldap://127.0.0.1:389/")'
 
  pdns[22533]: Our pdns instance exited with code 1
 
  pdns[22533]: Our pdns instance exited with code 1
Thanks
+
 
 +
The correct syntax is:
 +
* launch=ldap
 +
* ldap-host=ldap://127.0.0.1:389/
 +
* ldap-basedn=ou=hosts,dc=exemple,dc=net
 +
* ldap-binddn=cn=admin,dc=exemple,dc=net
 +
* ldap-secret=password
 +
* ldap-method=simple
 +
 
 +
Keyword and value must be separated by an equal sign.
 +
 
 +
--[[User:Nose|Nose]] 00:25, 1 May 2008 (CEST)

Latest revision as of 23:25, 30 April 2008

Parameter in config file

Hi I am tring to install powerdns with ldap backend. In /usr/local/pdns/etc/pdns.conf I added.

  • launch=ldap
  • ldap-host (default "ldap://127.0.0.1:389/")
  • ldap-basedn (default "ou=hosts,dc=exemple,dc=net")
  • ldap-binddn (default "cn=admin,dc=exemple,dc=net")
  • ldap-secret (default "password")
  • ldap-method (default "simple")

and I get this error in /varf/log/syslog:

Respawning
pdns[30325]: Guardian is launching an instance
pdns[30325]: This is a guarded instance of pdns
pdns[30325]: Fatal error: Trying to set unexisting parameter 'ldap-host
(default "ldap://127.0.0.1:389/")'
pdns[22533]: Our pdns instance exited with code 1

The correct syntax is:

  • launch=ldap
  • ldap-host=ldap://127.0.0.1:389/
  • ldap-basedn=ou=hosts,dc=exemple,dc=net
  • ldap-binddn=cn=admin,dc=exemple,dc=net
  • ldap-secret=password
  • ldap-method=simple

Keyword and value must be separated by an equal sign.

--Nose 00:25, 1 May 2008 (CEST)