[SR-Dev] git:janakj/ldap: - domain_attrs table mapping added

Jan Janak jan at iptel.org
Fri Feb 13 00:57:03 CET 2009


Module: sip-router
Branch: janakj/ldap
Commit: 06ebc89d3302a11654e42fa75bccf9404e1d3188
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=06ebc89d3302a11654e42fa75bccf9404e1d3188

Author: Jan Janak <jan at iptel.org>
Committer: Jan Janak <jan at iptel.org>
Date:   Tue May 13 09:11:45 2008 +0000

- domain_attrs table mapping added

---

 modules/db_ldap/ldap.cfg |   37 +++++++++++++++++++++++++++++++++++++
 1 files changed, 37 insertions(+), 0 deletions(-)

diff --git a/modules/db_ldap/ldap.cfg b/modules/db_ldap/ldap.cfg
index 6e69119..f8ef551 100644
--- a/modules/db_ldap/ldap.cfg
+++ b/modules/db_ldap/ldap.cfg
@@ -6,7 +6,9 @@
 # LDAP attribute names and vice versa.
 #
 
+#
 # Table credentials contains SIP digest authentication credentials.
+#
 [credentials]
 
 # In our LDAP directory we store SIP digest credentials under 
@@ -29,3 +31,38 @@ field_map = realm : digestRealm
 field_map = auth_username : digestUsername
 field_map = uid : serUID
 field_map = flags : serFlags
+
+#
+# Domain table stores information about virtual domains
+#
+[domain]
+
+# Objects mapping domain IDs to domain names and vice versa are stored
+# in the subtree with the following root:
+base = "ou=Domains,dc=iptel,dc=org"
+
+scope = children
+
+# We are only interested in serDomain objects when looking up information
+# about virtual domains.
+filter = "(objectClass=serDomain)"
+
+field_map = did : serDID
+field_map = domain : serDomain
+field_map = flags : serFlags
+
+#
+# Table domain_attrs contains domain attributes, domain attributes store
+# extra information about virtual domains.
+#
+[domain_attrs]
+base = "ou=Domains, dc=iptel,dc=org"
+scope = children
+
+filter = "(objectClass=serDomainAttr)"
+
+field_map = did : serDID
+field_map = name : serAttrName
+field_map = type : serAttrType
+field_map = value : serAttrValue
+field_map = flags : serFlags




More information about the sr-dev mailing list