📄 install.ldap
字号:
This is the INSTALL file for 0.9. Seehttp://www.venaas.no/ldap/bind-sdb/ for updates or other information.BUILDINGYou need the source for BIND 9.1.0 or newer (for zone transfers youwill need at least 9.1.1rc3 due to a bug). Basically you need to followthe instructions in doc/misc/sdb, if my instructions doesn't make sense,please have a look at that as well.Copy ldapdb.c to bin/named and ldapdb.h to bin/named/include in thesource tree.Next alter bin/named/Makefile.in. Add ldapdb.@O@ to DBDRIVER_OBJS andldapdb.c to DBDRIVER_SRCS. You also need to add something like-I/usr/local/include to DBDRIVER_INCLUDES and-L/usr/local/lib -lldap -llber -lresolv to DBDRIVER_LIBSdepending on what LDAP library you have and where you installed it.Finally you need to edit bin/named/main.c. Below where it says"#include "xxdb.h"", add the line "#include <ldapdb.h>". Below whereit says "xxdb_init();" add the line "ldapdb_init();", and finallybelow where it says "xxdb_clear();", add "ldapdb_clear();".Now you should hopefully be able to build it. If you get an errormessage about ldap_memfree() not being defined, you're probablyusing an LDAP library with the interface defined in RFC 1823. Tobuild, uncomment the #define RFC1823API line near the top of ldapdb.c.CONFIGURINGBefore you do any configuring of LDAP stuff, please try to configureand start bind as usual to see if things work.To do anything useful, you need to store a zone in some LDAP server.From this release on, you must use a schema called dNSZone. Note thatit relies on some attribute definitions in the Cosine schema, so thatmust be included as well. The Cosine schema probably comes with yourLDAP server. You can find dNSZone and further details on how to storethe data in your LDAP server athttp://www.venaas.no/ldap/bind-sdb/For an example, have a look at my venaas.com zone. Try a subtree searchfor objectClass=* atldap ldap://129.241.20.67/dc=venaas,dc=com,o=DNS,dc=venaas,dc=noTo use it with BIND, I've added the following to named.conf:zone "venaas.com" { type master; database "ldap ldap://129.241.20.67/dc=venaas,dc=com,o=DNS,dc=venaas,dc=no 172800";};When doing lookups BIND will do a sub-tree search below the base in theURL. The number 172800 is the TTL which will be used for all entries thathaven't got the dNSTTL attribute. It is also possible to add an filter tothe URL, say ldap://host/base???(o=internal)Stig Venaas <venaas@uninett.no> 2002-04-17
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -