Module: sip-router
Branch: janakj/ldap
Commit: 6e68733f114b94c51fb265048448ab881677696a
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=6e68733…
Author: Jan Janak <jan(a)iptel.org>
Committer: Jan Janak <jan(a)iptel.org>
Date: Tue May 13 12:31:34 2008 +0000
- syntax added where necessary in field maps
---
modules/db_ldap/ldap.cfg | 26 ++++++++++++++++++--------
1 files changed, 18 insertions(+), 8 deletions(-)
diff --git a/modules/db_ldap/ldap.cfg b/modules/db_ldap/ldap.cfg
index f8ef551..16fe984 100644
--- a/modules/db_ldap/ldap.cfg
+++ b/modules/db_ldap/ldap.cfg
@@ -5,6 +5,15 @@
# configure the LDAP search filter and maps database field names to
# LDAP attribute names and vice versa.
#
+# Supported Attribute Type Names:
+# * GeneralizedTime
+# * Integer
+# * BitString
+# * Boolean
+# * String
+# * Binary
+# * Float
+#
#
# Table credentials contains SIP digest authentication credentials.
@@ -25,12 +34,13 @@ filter = "(objectClass=digestAuthCredentials)"
# Mapping of field names to LDAP attribute names and vice versa. Names are
# delimited using ':', the first name is database field name as used in SER
-# modules, the second name (after :) is corresponding LDAP attribute name.
-field_map = password : digestPassword
+# modules, the second name (after :) is corresponding LDAP attribute name,
+# optionally preceeded with LDAP attribute syntax name in parentheses.
+field_map = password : (Binary) digestPassword
field_map = realm : digestRealm
field_map = auth_username : digestUsername
field_map = uid : serUID
-field_map = flags : serFlags
+field_map = flags : (BitString) serFlags
#
# Domain table stores information about virtual domains
@@ -47,9 +57,9 @@ scope = children
# about virtual domains.
filter = "(objectClass=serDomain)"
-field_map = did : serDID
-field_map = domain : serDomain
-field_map = flags : serFlags
+field_map = did : (String) serDID
+field_map = domain : (String) serDomain
+field_map = flags : (BitString) serFlags
#
# Table domain_attrs contains domain attributes, domain attributes store
@@ -63,6 +73,6 @@ filter = "(objectClass=serDomainAttr)"
field_map = did : serDID
field_map = name : serAttrName
-field_map = type : serAttrType
+field_map = type : (Integer) serAttrType
field_map = value : serAttrValue
-field_map = flags : serFlags
+field_map = flags : (BitString) serFlags